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
wiki:latex_mathematics [2019/05/19 01:31]
zhwiki [符号]
wiki:latex_mathematics [2022/06/16 05:18] (current)
zhwiki [数学环境]
Line 35: Line 35:
   - 百分号 % 后面的内容都表示注释,如果要输入百分号,使用''​\%''​   - 百分号 % 后面的内容都表示注释,如果要输入百分号,使用''​\%''​
  
 +多行的数学公式使用环境''​align''​,需要换行的地方使用''​\\''​,在需要对齐的地方使用''&''​,如需要对齐等号,在等号前加''&''​;''​align''​环境每行公式使用一个编号,如果多行公式使用一个编号,使用环境''​split''​。
 +
 +<​code>​
 +\begin{align}
 +......
 +\end{align}
 +</​code>​
 ==== 在行内插入显示公式样式 ==== ==== 在行内插入显示公式样式 ====
  
Line 50: Line 57:
 ==== 特殊符号 ==== ==== 特殊符号 ====
  
 +一些符号,如''#​, %, &, {, }, ~, \, _, ^''​,在Tex中有特殊的用途,需要使用反斜杠转义。其中 ''​$''​作为数学公式的界定符,在公式中使用还不能处理。
  
 +^ 符号 ^ 命令 ^ 符号 ^ 命令 ^ 符号 ^ 命令 ^ 符号 ^ 命令 ^ 符号 ^ 命令 ^
 +| $ \%\, $ | ''​ \% ''​ | $ \#\, $ | ''​ \# ''​ | $ \^{}\, $ | ''​ \^{} ''​ | $ \&\, $ | ''​ \& ''​ | $ \backslash\,​ $ | ''​ \backslash ''​ |
 +| $ \{\, $ | ''​ \{ ''​ | $ \}\, $ | ''​ \} ''​ | $ \~{}\, $ | ''​ \~{} ''​ | $ \_\, $ | ''​ \_ ''​ |  |  |
  
 ===== 希腊字母 ===== ===== 希腊字母 =====
Line 125: 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.1558243892.txt.gz · Last modified: 2019/05/19 01:31 by zhwiki