Bố cục trang và lề
LaTeX Bài học 12 1:54 Thuyết minh tiếng Anh · Có thể chuyển đổi phụ đề tiếng Anh và tiếng Trung
Chương
Biên bản ghi âm
Before the command, the shape.
在讲命令之前,先说这个形状。
The outer rectangle is the paper.
外面那个矩形是纸。
The lines inside it are the text block — where words are allowed to go.
里面那些线是文字块——文字被允许出现的地方。
And the gap between the two, all the way round, that is the margin.
而两者之间、一圈的那个空隙,那就是页边距。
LaTeX's default margins are generous and book-like, which is right for a book and often too wide for a one-page report.
LaTeX 默认的页边距很宽裕,像书一样, 这对一本书是对的,而对一页纸的报告往往太宽了。
The geometry package sets them, and one option does all four sides at once.
geometry 宏包负责设置它们,而一个选项就能同时管四条边。
Margin equals one inch, and the text block grows — more room for text on every page.
margin=1in,文字块就变大了——每一页都有更多地方放文字。
And notice what you did NOT do: you did not move a single line yourself.
再注意你"没有"做什么:你一行都没有自己去挪。
You changed the page, not the words, and LaTeX reflowed everything into the new shape.
你改的是页面,不是文字, 而 LaTeX 把一切重新排进了这个新形状里。
You can also set them separately — top, bottom, left and right, each with its own value.
你也可以分别设置——上、下、左、右,各有各的值。
The classic reason is a document that will be bound or hole punched: you leave extra room for a binding down the left edge so no words disappear into the fold.
最经典的理由是一份要装订或者打孔的文档: 你在左边多留出装订的空间, 这样就不会有文字消失在折缝里。
Three more small commands worth having.
还有三条值得备着的小命令。
Newpage says start the next page here, whatever is left on this one.
\newpage 表示"从这里开始下一页",不管这一页还剩多少空。
Today prints today's date, so a report dates itself every time it is compiled.
\today 打印今天的日期, 这样一份报告每次编译都会给自己打上日期。
And the center environment centres a block of text or an image — the same begin-and-end shape as every other environment.
而 center 环境把一段文字或一张图居中—— 和其他每一个环境一样的 begin/end 形状。
Four things to take with you.
带走四点。
One: the geometry package sets the margins.
第一:geometry 宏包设置页边距。
Two: margin equals a length sets all four at once.
第二:margin= 一个长度,四条边一次搞定。
Three: top, bottom, left and right can be set separately.
第三:上、下、左、右可以分别设置。
Four: newpage, today and center are worth knowing.
第四:\newpage、\today 和 center 值得记住。
Now set your margins and press Run.
现在把你的页边距设好,然后按 Run。
Bình luận
Chưa có bình luận nào. Hãy là người đầu tiên đặt câu hỏi hoặc chia sẻ điều gì đó.