【latex學習筆記】LaTex中的距離(固定長度、橡皮長度、長度命令)
固定長度
cm 釐米
mm 毫米
in 英寸(1in=2.54cm)
pt 點(1in=72.27pt)
bp 大點(1in= 72bp)
pc pica (1pc =12pt) 十二點活字
dd didot (1157dd =1238pt) 迪多點制
cc cicero (1cc = 12dd) 西塞羅
em 字型相關尺寸,相當於大寫字母M的寬度
ex 字型相關尺寸,相當於字母x的高度
要想給長度賦值,用命令\setlength{長度命令}{已定義的長度}
E.G. \setlength{\textwidth}{12.5cm}
橡皮長度
有些命令的引數是橡皮長度,一個橡皮長度的基本命令是:
正常值 plus 伸展值 minus 收縮值 e.g. \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\fill:正常長度為零,但可以伸展到任意長度。
有用的距離
\mathindent: 公式縮排
\columnsep: 兩列之間的間距
\columnseprule: 兩列間豎線的寬度
\parskip: 兩個段落之間的距離。以ex為單位,橡皮長度
\parindent: 段落第一行的縮排
\baselinestretch: 度量兩條基線之間的正常間距的數值。初始化值為1,
用\renewcommand{\baselinestretch}{因子}修改
\baselineskip: 行間距,字型尺寸 * \baselinestretch
頁面樣式的距離:
\headheight: 頁首高度
\headsep: 頁首基線到正文頂部的距離
\topskip: 正文頂部到正文第一行的距離
\textwidth: 文字行寬度
\textheight: 文字高度
\footskip: 正文底部到頁尾底部的距離
\paperwidth, \paperheight
廣義列表中的距離
\topsep
\partopsep
\parsep
\itemsep
表格中的距離
\tabcolsep tabular和tabular*中兩列間距的一半
\arraycolsep array中列間距的一半
\arrayrulewidth 表格中水平線和豎直線的粗細
\doublerulesep 雙直線時兩線之間的距離
\arraystretch 表格中的行間距
圖形中距離
\unitlength 單位長度
任意的間距
\hspace{} \hfill
\vspace{} \vfill
\quad \qquad: 當前字型的尺寸
\dotfill & \hrulefill
\[距離]
長度命令
\setlength{\長度命令}{長度指定}
\addtolength{\長度命令}{長度指定}
\settowidth{\長度命令}{文字}
\settoheight{\長度命令}{文字}
\settodepth{\長度命令}{文字}
\newlength{\新長度命令}