如何在Latex文档中编译前2页的24页? [英] How can I compile first 2 pages of 24 pages in a Latex document?

查看:137
本文介绍了如何在Latex文档中编译前2页的24页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的作品在Latex上超过24页。我只需要pdf的摘要和介绍。如何只编译前两页?

My work has over 24 pages in Latex. I need only the abstract and introduction in pdf. How can you compile only the first two pages?

推荐答案

我只是创建一个只有摘要和介绍的新文件,编译。

I'd just make a new file with only the abstract and introduction and compile that.

实际上,如果这不是一次性的事情,我会使用三个文件:

Actually, if this is not just a one-time thing, I'd use three files:

absintro.tex

\begin{abstract}
  ...
\end{abstract}
...introduction...

onlyabsintro.tex

...
\begin{document}
    \include{absintro.tex}
\end{document}

fullreport.tex

...
\begin{document}
   \include{absintro.tex}
   ...other stuff...
\end{document}

(显然文件名可以是任何你想要的,这只是显示结构) c $ c> onlyabsintro.tex 仅获取抽象和介绍,或 fullreport.tex 获取整个事物。

(Obviously the filenames can be whatever you want, this just shows the structure) You can compile onlyabsintro.tex to get only the abstract and introduction, or fullreport.tex to get the whole thing.

这篇关于如何在Latex文档中编译前2页的24页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆