Latex:不同的页面具有不同的边距
我正在为工作中使用的文档类型制作乳胶模板。对于该文档,我有两个不同的“命令”,一个是制作标题页;另一个是创建标题页。以及其他内容来制作文档的其余部分。
我在标题页中需要的页边距与文档其余部分中的页边距不同。因此,我有一些“\setlength”命令用于标题页,其他命令用于其余部分。
问题是,当我编译文档时,不同的边距仅在其应有的页后一页生效。例如,如果我想要标题页和文档的其余部分不同,那么会发生的情况是第一页有标题边距,第二页有标题边距(并且不应该),从第三页开始文档其余部分的页边距是正确的。
我做错了什么?
您能告诉我您制作这样一份文档的策略是什么吗?
先感谢您!
I'm making a latex template for a document type to use at work. For that document, I have two different "commands" one to make the title page; and other to make the rest of the document.
The margins that I need in the title page are different from the ones in the rest of the document. Because of that I have some "\setlength" commands for the title page and other for the rest.
The problem is that when I compile the document, the different margins only take effect 1 page after the one they were supposed to. For example, if I want a page for the title page and the rest of the document different, what happens is that the 1st page has the title margins, the 2nd has the title margins (and shouldn't) and from the 3rd page onwards the margins are correct for the rest of the document.
What am I doing wrong?
Can you tell me what would be your strategy for making a document like this?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
geometry
包。然后,您可以使用\newgeometry
来更改文档中间的布局。此命令还执行clearpage
,因此您应该将其准确放置在您想要分页符的位置。You could use the
geometry
package. You can then use\newgeometry
in order to change the layout mid-document. This command also does aclearpage
, so you should put it exactly where you want the page break.