我需要一個從 bib 製作 bbl 檔案的逐步指南

我需要一個從 bib 製作 bbl 檔案的逐步指南

我正在嘗試將我的 tex 和 bib 檔案合併為一個以提交期刊。有人建議使用 bbl 檔。我正在使用 texmaker / miktex 和 bibtex。

我不知道如何從 bib 實際建立 bbl 檔案。我在這個網站/谷歌上找到的所有連結實際上並沒有明確地逐步解釋如何做到這一點。我的意思是一步一步(因為我對乳膠/計算的了解通常幾乎為零)。例如,我看到指令「編譯」...我不知道這意味著什麼(至於我應該按鍵盤上的哪個鍵)。

謝謝。

答案1

假設我們有以下文件:

\documentclass{article}
\begin{document}
\cite{article-crossref} and \cite{article-full}.
\bibliographystyle{plain}
\bibliography{xampl}
\end{document}

現在,我們以通常的方式進行編譯,使用我們選擇的編輯器或在命令列或其他方式上。我們確保所有內容都正確解析和定義,如果需要,可以多次執行編譯序列。 (編譯只是運行,例如pdflatex-> bibtex-> pdflatex-> pdflatex。)

階段1

現在,為了準備用於日誌提交的文件,我們打開該.bbl文件,預設情況下該文件位於工作目錄中,或您要求生成的文件所在的位置。

這是我的:

\newcommand{\noopsort}[1]{} \newcommand{\printfirst}[2]{#1}
  \newcommand{\singleletter}[1]{#1} \newcommand{\switchargs}[2]{#2#1}
\begin{thebibliography}{1}

\bibitem{article-crossref}
L[eslie]~A. Aamport.
\newblock The gnats and gnus document preparation system.
\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+, July 1986.
\newblock This is a cross-referencing ARTICLE entry.

\bibitem{article-full}
L[eslie]~A. Aamport.
\newblock The gnats and gnus document preparation system.
\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+, July 1986.
\newblock This is a full ARTICLE entry.

\end{thebibliography}

.tex我們將其複製到我們發出\bibliographystyle和命令的原始文件中bibliography

\documentclass{article}
\begin{document}
\cite{article-crossref} and \cite{article-full}.
\newcommand{\noopsort}[1]{} \newcommand{\printfirst}[2]{#1}
  \newcommand{\singleletter}[1]{#1} \newcommand{\switchargs}[2]{#2#1}
\begin{thebibliography}{1}

\bibitem{article-crossref}
L[eslie]~A. Aamport.
\newblock The gnats and gnus document preparation system.
\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+, July 1986.
\newblock This is a cross-referencing ARTICLE entry.

\bibitem{article-full}
L[eslie]~A. Aamport.
\newblock The gnats and gnus document preparation system.
\newblock {\em \mbox{G-Animal's} Journal}, 41(7):73+, July 1986.
\newblock This is a full ARTICLE entry.

\end{thebibliography}
\end{document}

現在清理以刪除生成的文件,因此您確定您不再依賴外部.bbl並重新編譯至少兩次(pdflatex-> pdflatex)以僅從您的.tex文件中獲得相同的結果。

答案2

在 TeXmaker 中,先驗,你只需要寫

\bibliographystyle{name-of-the-bibstyle}
\bibliography{name-of-the-.bib file}% without the .bib extension

在您的 .tex 檔案中,在您想要放置參考書目的位置,然後pdflatex (F6) + bibtex (F11) + pdflatex (twice)在 .tex 檔案中。或者,您可以選擇Fast compilation,它會自動為您執行此操作。

相關內容