無法開啟reference.aux

無法開啟reference.aux

這是我第一次在這裡發布問題,我也像一個使用 Latex 的初學者。這是我的問題:我無法編譯我的參考文獻,並且總是給我這個錯誤:

我無法開啟檔案名稱“reference.aux”

可能我必須安裝一個額外的 .lib 但我不知道是哪一個。

如果有人能給我一些建議,我將不勝感激......

答案1

假設您的參考文獻寫在名為「ref.bib」的檔案中,其中包含以下條目:

@article{latex1977,
    title={How to use latex},
    author={John Smith},
    journal={Journal of Latex},
    pages={1--50},
    volume={39},
    year={1977}
}

現在在你的主文件中說“main.tex”,你一定有類似的內容:

\documentclass{article}
\begin {document}

...
\cite{latex1977}
...

\bibliography{ref}
\bibliographystyle{plain}

\end{document}

若要編譯您的文檔,請執行以下步驟:

  1. 使用 Latex 或 pdflatex 編譯 'main.tex' => 這一步將產生 main.aux 文件
  2. 使用 bibtex 編譯“main.aux”(不是“ref.bib”)
  3. 使用 Latex 或 pdflatex 編譯兩次“main.tex”

相關內容