
나는 \input{chapterXX}
메인 tex 파일에 다른 챕터를 포함시키고 \includeonly{chapterXX}
여러 tex 파일과 함께 사용하는데 매번 하나의 챕터만 컴파일하므로 여러 PDF(챕터당 하나)가 있습니다.
그러나 다른 장의 tex 파일에는 자연스럽게 인용 명령이 포함되며 \includeonly
. 이는 최종적으로 각 장의 참고문헌을 인쇄하려고 하면 원고 전체에 대한 참고문헌이 인쇄된다는 의미이다. \includeonly{}
명령에 특정 장의 인용 명령만 포함하도록 하는 방법이 있습니까 ?
답변1
의견에서 언급 biblatex
했듯이 biber
.
\documentclass{report}
\usepackage[refsection=chapter]{biblatex}
\addbibresource{biblatex-examples.bib}
\includeonly{\jobname-mary,\jobname-peter}
\begin{filecontents}{\jobname-peter.tex}
\cite{ctan,companion}
\end{filecontents}
\begin{filecontents}{\jobname-paul.tex}
\cite{aristotle:physics,westfahl:space}
\end{filecontents}
\begin{filecontents}{\jobname-mary.tex}
\cite{herrmann,shore}
\end{filecontents}
\begin{document}
\include{\jobname-peter}
\include{\jobname-paul}
\include{\jobname-mary}
\printbibliography
\end{document}