16.book风格的文档\frontmatter %紧跟着\begin{document}命令出现,该命令启用罗马数字编页码。\mainmatter %出现在第一章前面,该命令启用阿拉伯数字编页码。\appendix
%标志书中附录材料的开始。该命令后的各章序号改用字母标记。\backmatter %应该插入书中最后一部分内容的前面,如参考文献和索引17.交叉引用法\label{sec:my1} %放在在节、子节、图、表或定理后面,作为后面需要引用的标记\ref{sec:my1} %引用标志词sec:my1那里的节、子节、图、表或定理的序号\pageref{sec:my1} %引用标志词sec:my1所在的页码18.脚注、页边注和尾注\footnote{type the text here.}\marginpar{type the text
here.}尾注的方法\usepackage{endnotes} %加载尾注宏包\endnote{type the text
here.} %在需要尾注的地方添加\theendnotes %指明尾注内容在文中该地方出现。19.强调\underline{text} %下划线强调\emph{text} %斜体强调20. 三种枚举方法Itemize、Enumerate
和Description\flushleft\begin{enumerate} \item The strategy:
\begin{itemize} \item First,look silly.\item[-] Second,be
smart.\end{itemize} \item The result: \begin{description}
\item[Stupid] You'll be smart.\item[Smart] You'll be
stupid.\end{description}\end{enumerate}21.文本的对齐和居中\begin{flushleft}。。。。。。\end{flushleft}\begin{flushright}。。。。。。\end{flushright}\begin{center}。。。。。。\end{center}22.引文、诗歌、摘要\begin{quote}。。。。。。\end{quote} %一次少量引用\begin{quotation}。。。。。。\end{quotation} %一次大量引用\begin{verse}。。。。。。\end{verse} %引用诗歌,排成韵律风格,每一行后用\\断行。\begin{abstract}。。。。。。\end{abstract} %学术论文的摘要。23.表格\begin{tabular}{|r||l @{ + } c@{ . }rrr@{ * }c|c|} \hline \hlinePosition
& Club & Games & W & T & L & Goals & Points\\[1.5ex]
\hline1 & Amesville Rockets & 33 & 19 & 13 & 1 &
66:31 & 51:15 \\2 & Borden Comets & 33 & 18 & 9 & 6
& 65:37 & 45:21 \\... & ..... & .. & .. & .. &
.. & ... & ... \\17 & Quincy Giants & 33 & 7 & 5
& 21 & 40:89 & 19:47 \\18 & Ralston Regulars & 33 &
3 & 11 & 19 & 37:74 & 17:49\\ \hline \hline\end{tabular}另一种更加复杂的表,可以随意画横线,几列共用一个标签\begin{tabular}{|r|l||rrr|r@{ : }l|r@{ : }l||c|}
\hline\multicolumn{10}{|c|}{\bfseries {\itshape Table 1}. 1st Regional
Soccer League --- Final Results 2002/03}\\ \hline\itshape Position &
\itshape Club & \itshape W & \itshape T & \itshape L &
\multicolumn{2}{|c|}{\itshape Goals} & \multicolumn{2}{|c||}{\itshape
Points} & \itshape Remarks\\[1ex] \hline \hline1 & Amesville Rockets
& 19 & 13 & 1 & 66&31 & 51&15 & League Champs\\
\hline2 & Borden Comets & 18 & 9 & 6 & 65&37 &
45&21 & Trophy Winners\\ \hline... & ..... & .. & ..
& .. & .. & ... & ... & ...& ...\\ \hline17 &
Quincy Giants & 7 & 5 & 21 & 40&89 & 19&47 &
Candidates \\ \cline{1-9}18 & Ralston Regulars & 3 & 11 & 19
& 37&74 & 17&49 & for Losers\\ \hline\end{tabular}24.
浮动体浮动体就是一个整体在正文中上下浮动,寻找合适的放置位置,通常为了避免一个“整体对象”遭遇分页等尴尬问题。例如不想让表格一半在上一页,一半在下一页。将上面表格作为浮动体处理,浮动体放置许可规则[!hbtp]表示忽略内部参数[!],首先优先放在这儿here[h],其次是bottom
,再次放在top[t],然后考虑放在一个floating
page[p]。下面是表和图的浮动体例子。其中caption命令添加标题,[..]内的是简单标题,在\listoffigures 和 \listoftables
中出现,{...}内的是长标题,在正文中显示。\begin{table}[!hbtp]\caption[Finals]{1st Regional Soccer League --- Final
Results.}\begin{tabular}{|r|l||rrr|r@{ : }l|r@{ : }l||c|}
\hline\multicolumn{10}{|c|}{\bfseries {\itshape Table 1}. 1st Regional
Soccer League --- Final Results 2002/03}\\ \hline\itshape Position &
\itshape Club & \itshape W & \itshape T & \itshape L &
\multicolumn{2}{|c|}{\itshape Goals} & \multicolumn{2}{|c||}{\itshape
Points} & \itshape Remarks\\[1ex] \hline \hline1 & Amesville Rockets
& 19 & 13 & 1 & 66&31 & 51&15 & League Champs\\
\hline2 & Borden Comets & 18 & 9 & 6 & 65&37 &
45&21 & Trophy Winners\\ \hline... & ..... & .. & ..
& .. & .. & ... & ... & ...& ...\\ \hline17 &
Quincy Giants & 7 & 5 & 21 & 40&89 & 19&47 &
Candidates \\ \cline{1-9}18 & Ralston Regulars & 3 & 11 & 19
& 37&74 & 17&49 & for Losers\\ \hline\end{tabular}\end{table}Figure \ref{white} is an example of
Pop-Art.\begin{figure}[!hbp]\makebox[\textwidth]{\framebox[5cm]{\rule{0pt}{5cm}}}\caption[FiveFig]{Five
by Five in Centimetres.\label{white}}\end{figure} 浮动体的放置顺序遵循“先来先放”的原则。有时等待序列中浮动体太多,命令\clearpage可以让等待结束,立刻新开一页放置所有等待中的浮动体。在LaTeX文档中插入图片http://hepg.sdu.edu.cn/Service/tips/latex/latexfig.html25.如何使用中文字体先在导言区加载\usepackage{CJK}然后在正文使用中文的地方用\begin{CJK*}{GBK}{song} 中文或者英文 \end{CJK*}加*和不加*的区别在于对~的处理不同。加了*后,汉字之间的空格用~代替。不加*,汉字之间空格用英文正常空格。常用的其他字体还有:fs(仿宋)、kai(楷体)、hei(黑体)、li(隶书)、you(幼圆)。命令中的
GBK 是指中文内码,还可以用 GB 和 BIG5(繁体字),前提是相应的字库设置是正确的。如果在中间想要将宋体改变仿宋,就可以使用:\CJKfamily{GBK}{fs}