User Tools

Site Tools


wiki:latex_mathematics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:latex_mathematics [2019/05/19 03:19]
zhwiki [数学环境]
wiki:latex_mathematics [2022/06/16 05:17]
zhwiki [数学环境]
Line 35: Line 35:
   - 百分号 % 后面的内容都表示注释,如果要输入百分号,使用''​\%''​   - 百分号 % 后面的内容都表示注释,如果要输入百分号,使用''​\%''​
  
-数学公式需要换行的地方使用''​\\''​,如果需要对齐等号,需要使用环境''​aligned''​,等号前加&​。+多行的数学公式使用环境''​align''​,需要换行的地方使用''​\\''​,需要对齐的地方使用''​&''​,如需要对齐等号,在等号前加''​&''​;多行公式使用一个编号,使用环境''​split''​ 
 <​code>​ <​code>​
-\begin{aligned}+\begin{align}
 ...... ......
-\end{aligned}+\end{align}
 </​code>​ </​code>​
 ==== 在行内插入显示公式样式 ==== ==== 在行内插入显示公式样式 ====
Line 135: Line 136:
            + \cfrac{1}{a_3 + \cfrac{1}{a_4}}}}            + \cfrac{1}{a_3 + \cfrac{1}{a_4}}}}
 $$ $$
 +
 +
 +用''/​frac,​ /tfrac, /dfrac/, /​cfrac''​表示分数的区别:
 +
 +  * ''​\tfrac''​ 设置分数为 textstyle
 +  * ''​\dfrac''​ 设置分数为 displaystyle
 +  * ''​\frac''​ 根据上下文决定使用 ''​\tfrac''​ 还是 ''​\dfrac''​
 +  * ''​\cfrac''​ 用于表示连续分数
  
 ===== 根 ===== ===== 根 =====
wiki/latex_mathematics.txt · Last modified: 2022/06/16 05:18 by zhwiki