Latex:不同的页面具有不同的边距

发布于 2024-09-13 13:40:23 字数 333 浏览 2 评论 0原文

我正在为工作中使用的文档类型制作乳胶模板。对于该文档,我有两个不同的“命令”,一个是制作标题页;另一个是创建标题页。以及其他内容来制作文档的其余部分。

我在标题页中需要的页边距与文档其余部分中的页边距不同。因此,我有一些“\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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2024-09-20 13:40:23

您可以使用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 a clearpage, so you should put it exactly where you want the page break.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文