如何隱藏論文的一部分,但仍保留與該部分相對應的交叉引用?

如何隱藏論文的一部分,但仍保留與該部分相對應的交叉引用?

假設我有第1頁和第2頁。 1頁,但仍是否可以交叉引用第 1 頁的定理? (如果我刪除第 1 頁,第 2 頁的交叉引用將變成問號)謝謝!

答案1

大衛卡萊爾已經給了你完美的答案。我將用一個例子來補充它來說明。

現在,重要的是先編譯包含所有包含文件的完整文件。這是獲取每個包含檔案的 aux 檔案所必需的。

因此,您必須在第一次編譯過程中包含所有文件,要么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}

第三個包括

相關內容