Capstone: a one-page report
LaTeX Lesson 14 2:02 English narration · English + 中文 subtitles burned in
Chapters
Transcript
Look at what thirteen lessons have given you.
看看这十三课给了你什么。
Section, for structure that numbers itself.
\section,给你会自动编号的结构。
Textbf and emph, for the way words look.
\textbf 和 \emph,管词看起来的样子。
Dollars and frac, for the maths.
美元符号和 \frac,管数学。
Itemize and enumerate, for lists that renumber.
itemize 和 enumerate,给你会自动重编的列表。
Tabular, for a table.
tabular,给你表格。
And label, ref and cite, for the references that never go stale.
而 \label、\ref 和 \cite,给你永远不会过期的引用。
A real report is those pieces, stacked in one file.
一份真实的报告,就是那些部件,叠在一个文件里。
Preamble at the top with the document class and any packages.
最上面是导言区,写文档类和需要的宏包。
Then the title block.
然后是标题块。
Then your sections, with prose and lists and formulas inside them.
然后是你的各个小节,里面装着散文、列表和公式。
It is the same skeleton as lesson one, with more in it — nothing new has been added to the shape.
它和第 1 课的骨架完全一样,只是里面东西更多—— 这个形状本身没有添加任何新东西。
One working habit is worth more than any command here.
有一个工作习惯比这里任何一条命令都值钱。
Build the document in small steps and press Run between them.
小步搭建你的文档,中间不断按 Run。
Add a section, run.
加一节,跑一下。
Add a list, run.
加一个列表,跑一下。
If something breaks, you know which change broke it, because only one thing changed.
如果出问题了,你知道是哪一次改动弄坏的,因为只有一样东西变了。
And watching the page take shape is the pleasure of writing this way.
而看着页面一点点成形,正是用这种方式写作的乐趣。
And when it does break, one habit saves the most time.
而当它真的坏掉时,有一个习惯最省时间。
A single missing brace or dollar sign can produce a page of errors.
少一个花括号或者一个美元符号,就可能刷出一整页错误。
The first one names the real problem and gives you a line number.
第一条会指出真正的问题,并给你一个行号。
Everything after it is what that one caused.
它后面的一切,都是那一条引起的。
So fix the first, compile again, and look again — never try to fix them all at once.
所以修好第一条,重新编译,再看一遍—— 千万别试图一次把它们全修掉。
Four things to take with you.
带走四点。
One: a real document is the pieces of this course, stacked.
第一:一份真实的文档,就是这门课的那些部件叠起来。
Two: build it in parts and compile often.
第二:分块搭建,勤按编译。
Three: one missing brace or dollar stops the whole compile.
第三:少一个花括号或美元符号,整个编译都会停下。
Four: read the first error, because the rest follow from it.
第四:读第一条错误,因为其余的都由它而来。
Now build your report — and congratulations, you can write LaTeX.
现在去搭你的报告吧——恭喜你,你会写 LaTeX 了。