假设我有第 1 页和第 2 页。我想隐藏第 1 页,这样我的论文就从第 2 页的内容开始。第 2 页上有一些第 1 页定理的交叉引用,我怎样才能隐藏第 1 页,但仍然使第 1 页定理的交叉引用可用?(如果我删除第 1 页,第 2 页上的交叉引用将变成问号)谢谢!
答案1
David Carlisle 已经给出了完美的答案。我再举一个例子来补充说明。
现在,重要的是您首先编译包含所有文件的完整文档。这对于获取每个包含文件的辅助文件是必要的。
因此,您要么必须在第一次编译过程中包含所有文件,要么完全注释掉 -command includeonly
:
% \includeonly{%
% firstinclude,
% secondinclude,
% thirdinclude,
% }
完成后,您可以选择要包含的文件。例如:
\documentclass{article}
\usepackage{blindtext}
\begin{filecontents*}{firstinclude.tex}
\section{First include}
\blindtext\footnote{Here be the first footnote.}
\blindmathfalse
\blindtext\footnote{Here be the second footnote.}
\end{filecontents*}
\begin{filecontents*}{secondinclude.tex}
\section{Second include}
Here we have a some really interesting text we wish to reference at some later point\label{super-interesting}
\blindmathpaper\footnote{Here be the third footnote.}
\end{filecontents*}
\begin{filecontents*}{thirdinclude.tex}
\section{Third include}
Only a couple of pages ago there was some really interesting Text, see page \ref{super-interesting}.\footnote{Here be the fourth footnote.}
\blindenumerate[8]
\end{filecontents*}
\includeonly{%
firstinclude,
% secondinclude,
thirdinclude,
}
\begin{document}
\include{firstinclude}
\include{secondinclude}
\include{thirdinclude}
\end{document}