我經常-output-directory=_out
在 TeX Live 中使用。
現在,我注意到這成為 的一個問題revtex4-1
,它會產生一個\jobname Notes.bib
(顯然,在該輸出資料夾中)但似乎在那裡找不到它。我必須手動複製_out\jobname Notes.bib
回文件旁邊.tex
,才能編譯一個簡單的文檔而不會丟失腳註:
\documentclass{revtex4-1}
\begin{document}
\footnote{Hello, world!}
\end{document}
MWE 是一個非常相似的情況:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{SomeOne, author = {Some One}, year = {2018}}
\end{filecontents}
\begin{document}
Text \cite{SomeOne}
\bibliography{\jobname}
\end{document}
再次_out/\jobname.bib
創建,但直到我從.tex
文件旁邊的輸出資料夾複製它才找到它。這是不可能的。
是否有一個通用的解決方案,要么通過不適-output-directory
用於某些命令,要么通過增加命令的搜尋路徑\bibliography
?或者這是 TeX Live 中的一個錯誤?我不記得 MiKTeX 遇到過這個問題,我使用了單獨的輔助目錄和輸出目錄。
這個答案隱含著一個bibtex
名為 的論證--include-directory
,但它TeX Live 中似乎不存在。
答案1
我相信設置BIBINPUTS=.;.\_out
解決了這個問題;這是受到啟發的這個答案。請注意,我使用分號;
來分隔條目,而其他答案則使用冒號:
。