논문의 일부를 숨기면서도 이 부분에 해당하는 상호 참조를 유지하는 방법은 무엇입니까?

논문의 일부를 숨기면서도 이 부분에 해당하는 상호 참조를 유지하는 방법은 무엇입니까?

1페이지와 2페이지가 있다고 가정합니다. 제 논문이 2페이지의 내용에서 시작되도록 1페이지를 숨기고 싶습니다. 2페이지 1페이지에 정리에 대한 상호 참조가 있습니다. 1페이지를 어떻게 숨길 수 있지만 여전히 1페이지의 정리에 대한 상호 참조가 가능합니까? (1페이지를 삭제하면 2페이지의 상호 참조가 물음표가 됩니다.) 감사합니다!

답변1

David Carlisle은 이미 완벽한 답변을 제공했습니다. 예시를 들어 보완하겠습니다.

이제 먼저 포함된 모든 파일이 포함된 전체 문서를 컴파일하는 것이 중요합니다. 이는 포함된 각 파일의 aux 파일을 가져오는 데 필요합니다.

따라서 첫 번째 컴파일 과정에서 모든 파일을 포함하거나 includeonly-command를 모두 주석 처리해야 합니다.

% \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}

세 번째 포함

관련 정보