\\hline C-j
所谓 \\hline ,顾名思义,就是 horizontal line 。 开始第一行:
Command & Level \\\\ \\hline C-j
那个 & 就是两列之间的分隔符, \\\\ 我们见过,表示换行。 照猫画虎,把所有的行都加上,得到如下结果:
1: % 此处略去数十行 2:
3: \\subsection{Sectioning Commands} 4: \\label{sec:sectioning-commands}
5: The commands for inserting sections are fairly
intuitive. Of course,
6: certain commands are appropriate to different
document classes.
7: For example, a book has chapters but a article
doesn't.
8:
9: %A simple table. The center environment is first
set up, otherwise the
10: %table is left aligned. The tabular environment
is what tells Latex
11: %that the data within is data for the table. 12:
13: \\begin{center}
14: \\begin{tabular}{|l|l|}
15: % The tabular environment is what tells Latex
that the data within is
16: % data for the table. The arguments say that
there will be two
17: % columns, both left justified (indicated by
the 'l', you could also
18: % have 'c' or 'r'. The bars '|' indicate
vertical lines throughout
19: % the table. 20: \\hline
21: Command & Level \\\\ \\hline 22: \\verb|\\part{}| & -1 \\\\ 23: \\verb|\\chapter{}| & 0 \\\\ 24: \\verb|\\section{}| & 1 \\\\ 25: \\verb|\\subsection{}| & 2 \\\\ 26: \\verb|\\subsubsection{}| & 3 \\\\ 27: \\verb|\\paragraph{}| & 4 \\\\ 28: \\verb|\\subparagraph{}| & 5 \\\\
29: \\hline 30: \\end{tabular} 31: \\end{center} 32:
这张表格的效果应该类似于下面这样:
Command Level -1 0 1 2 3 4 5 \\part{} \\chapter{} \\section{} \\subsection{} \\subsubsection{} \\paragraph{} \\subparagraph{} 现在编译一下,看看效果,还过得去吧? 好了,表格画完了。再添加点文字:
1: % 此处删去数十行…… 2:
3: \\begin{center}
4: \\begin{tabular}{|l|l|}
5: % The tabular environment is what tells Latex
that the data within is
6: % data for the table. The arguments say that
there will be two
7: % columns, both left justified (indicated by
the 'l', you could also
8: % have 'c' or 'r'. The bars '|' indicate
vertical lines throughout
9: % the table. 10: \\hline
11: Command & Level \\\\ \\hline 12: \\verb|\\part{}| & -1 \\\\ 13: \\verb|\\chapter{}| & 0 \\\\ 14: \\verb|\\section{}| & 1 \\\\ 15: \\verb|\\subsection{}| & 2 \\\\ 16: \\verb|\\subsubsection{}| & 3 \\\\ 17: \\verb|\\paragraph{}| & 4 \\\\ 18: \\verb|\\subparagraph{}| & 5 \\\\ 19: \\hline 20: \\end{tabular} 21: \\end{center} 22:
23: Numbering of the sections is performed
automatically by \\LaTeX{}, so don't bother adding
24: them explicitly, just insert the heading you want between the curly braces. If you don't
25: want sections number, then add an asterisk (*)
after the section command, but before the
26: first curly brace, e.g., \\verb|section*{A Title
Without Numbers}|.
27:
现在我们讲讲“参考文献”。其实还是个 environment ,叫 thebibliography 。试试吧,
C-c C-e
thebibliography C-j
mini buffer 提示:
Label for BibItem: 99
这是问你,在引用参考文献时,采用两个字符宽的标签是否合适?你知道, 参考文献在文章中被引用到的时候,不都是以 [1],[2]...[99] 这样的形式出现吗?所谓“两个字符的宽度”,也就是说方括号里的数字不超过两个,也就是说你的文章中最多可以有 [1]...[99] 99个文献索引。这对于一篇普通的文章来说肯定是足够多了。