Bulleted and numbered lists
LaTeX Lesson 4 1:58 English narration · English + 中文 subtitles burned in
Chapters
Transcript
A list is your first ENVIRONMENT, which is the second shape in LaTeX after the command.
列表是你遇到的第一个"环境", 而环境是 LaTeX 里继命令之后的第二种形状。
It opens with begin and a name, holds your content, and closes with end and the same name.
它以 \begin 加一个名字开始,中间装着你的内容, 以 \end 加同一个名字结束。
Inside, every entry starts with item, and the bullets and spacing are handled for you.
在里面,每一条以 \item 开头,而符号和间距都由它替你处理。
Remember this shape: tables, maths and drawings all use this shape too.
记住这个形状:表格、数学公式和绘图,用的也都是这个形状。
Want numbers instead of bullets?
想要编号而不是圆点?
Change one word.
改一个词。
Itemize becomes enumerate, at the begin and the end, and everything else stays exactly as it was.
把 itemize 换成 enumerate,begin 和 end 两处都换, 其余的一切原封不动。
Look at the item lines — they never changed.
看那些 \item 行——它们一点都没变。
That is why you can reorder a numbered list, or insert an entry in the middle, and the numbers follow without you touching them.
这就是为什么你可以给一个编号列表重新排序、或者在中间插一条, 而编号会自己跟上,你一个数字都不用碰。
Put a whole list inside an item and you get sub-points.
把一整个列表放进某一条 \item 里面,你就得到了子项。
LaTeX indents the inner one and gives it a different bullet shape, so the levels read differently without you choosing anything.
LaTeX 会把内层缩进,并给它一个不同的符号形状, 于是不同层级读起来就不一样,而你什么都没有选。
You supply the structure, not the spacing — which is the same bargain as sections in lesson two.
你提供的是结构,不是间距—— 这和第 2 课里的"节"是同一笔交易。
One error you will definitely meet: opening with one environment and closing with another.
有一个错误你一定会遇到:用一个环境开头,却用另一个环境收尾。
LaTeX says so plainly — begin itemize ended by end enumerate.
LaTeX 会说得很直白—— "\begin{itemize} 被 \end{enumerate} 结束了"。
And a habit for every error from here on: read the FIRST error and nothing below it, because the ones after are usually knock-on effects of that one.
而从现在起,对每一个报错都养成一个习惯: 只读第一个错误,别管它下面的, 因为后面那些通常都是这一个引起的连锁反应。
Four things to take with you.
带走四点。
One: an environment is begin, a name, content, end.
第一:一个环境是 begin、一个名字、内容、end。
Two: itemize gives bullets and enumerate gives numbers.
第二:itemize 给圆点,enumerate 给编号。
Three: every entry starts with item.
第三:每一条都以 \item 开头。
Four: a list inside an item becomes indented sub-points.
第四:放在一条 \item 里面的列表,会变成缩进的子项。
Now build the list and press Run.
现在把那个列表搭出来,然后按 Run。