2009-04-16 31 views

回答

3

我只是做一個只有摘要和介紹的新文件,並編譯它。

其實,如果這不只是一次性的事情,我會使用三個文件:

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} 

(很明顯,文件名可以是任何你想要的,這只是顯示結構)你可以編譯onlyabsintro.tex來得到只有摘要和介紹,或fullreport.tex得到整個事情。

+1

這裏很好的建議。使用makefile(或類似的構建支持機制)爲您管理所有這些也有很多需要說明的地方。 – dmckee 2009-04-16 19:43:28

5

除了David's good advice,你可以簡單地編譯整個事情,然後從成品中提取你想要的頁面。這可能是一次性任務最簡單的方法。

如果編譯爲PDF格式,請考慮使用pdftk,這將讓你使用如下命令:

pdftk A=one.pdf cat A1-2 output intro.pdf 
+0

如果它能夠快速演示如何從成品中提取第幾頁,這可能是一個更好的答案。 – 2009-04-16 20:02:51