Latex study notes~

1. Overall format control

\maketitle     显示标题及署名信息
\tableofcontents     自动根据已有章节添加目录
\newpage   另起一页
\setcounter{
    
    page}{
    
    1}   设置页码计数器从当前页开始,之后每页递增
\par    换行,另起一段,首行有两字的缩进,区别于\\
\noindent   不缩进
\hspace{
    
    20mm}    放在两个单词之间,表示水平间距
\vspace{
    
    10mm}    放在两行之间,表示两行的行间距,若在页首无效
\overbrace{
    
    text}  公式上方花括号命令
\underbrace{
    
    text} 公式下方花括号命令
# 示例
\underbrace{
    
    a + \overbrace{
    
    b + \dots + b}^{
    
    m \mbox{
    
    \scriptsize 个}} +c}_{
    
    20\mbox{
    
    \scriptsize 个}}
\overline{
    
    text}  公式上方划线
\underline{
    
    text} 公式下方划线
# 示例
\overline{
    
    \bar{
    
    a}^2 + \underline{
    
    ab}+\bar{
    
    c}^2}

Latex stacking symbols

\stackrel{
    
    above}{
    
    under}   一个符号堆叠在第二个符号之上
{
    
    n \choose k}             不带分数线但带括号的分式
{
    
    n \atop k}               不带分数线不带括号的分式
# 示例
\vec{
    
    x} \stackrel{
    
    \mathrm{
    
    def}}{
    
    =} (x_1,\dots,x_n)
{
    
    n+1 \choose k} =  	{
    
    n \choose k}  +  	{
    
    n \choose k-1} 

Adaptive delimiter

\left(  
\right)
...
# 示例
\left(   \sum_{
    
    k=\frac12}^N x^2   \right)

2. Punctuation

quotation marks

Note: The leftmost quotation mark of single and double quotation marks is Tabthe tilde key on the key

单引号:` ......'
双引号:`` ......''
Concatenation

For ff,fi,ffl,ffidirect input, the conjoined form will be displayed. If the conjoined form is eliminated, it can be realized by adding left and right slashes in each character

f\/f\/l   ffl

3. Commonly used unit length

unit name Description
mm Mm 1mm=2.845pt
pt point 1pt=0.351mm
in inch 1in = 25.4mm = 72.27pt
ex ex 1ex = the height of x in the current font size
in in 1em = the width of M in the current font size

appendix

Text font setting command

Insert picture description here

Text font size command

Insert picture description here

Guess you like

Origin blog.csdn.net/SL_World/article/details/107322008