参考文献項目を BibTeX から埋め込み形式に変換するにはどうすればよいですか?

参考文献項目を BibTeX から埋め込み形式に変換するにはどうすればよいですか?

書誌を定義するには、主に 2 つの方法があります。

  1. 埋め込み

    \begin{thebibliography}ファイルの最後に宣言し、\bibitemを使用します。エントリは次のようになります。

    \bibitem{amin1}
      S.~P. Beeby, M.~J. Tudor, and N.~White, ``Energy harvesting vibration sources
      for microsystems applications,'' {\em Measurement science and
      technology}~{\bf 17}(12), p.~R175, 2006.
    
  2. BibTeX の使用 - エントリは .bib ファイルに保存されます。エントリは次のようになります:-

     @article{amin1,
      title={Energy harvesting vibration sources for microsystems applications},
      author={Beeby, S Pꎬ and Tudor, M Jꎬ and White, NM},
      journal={Measurement science and technology},
      volume={17},
      number={12},
      pages={R175},
      year={2006},
      publisher={IOP Publishing}
    }
    

エントリを 2 から 1 に変換する簡単で自動化された方法はありますか。

私はフォーマット 2、つまり bib ファイルを使用しています。しかし、すべてのエントリを手動で変更せずにフォーマット 1 に切り替えたいのですが、これは可能ですか?

答え1

.bibBibTeXファイルから埋め込み環境への変換はthebibliography参考文献に依存する。スタイルスタイルは、特定の@type参照のレイアウトと書式を定義します。

提案としては、次のようになります。

  1. BibTeXを使用して、興味のある特定のスタイルでファイルをコンパイルします。たとえば、

    \documentclass{article}
    
    \usepackage{filecontents}
    \begin{filecontents*}{references.bib}
    @article{greenwade93,
      author = {George D. Greenwade},
      title = {The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})},
      year = {1993},
      journal = {TUGBoat},
      volume = {14},
      number = {3},
      pages = {342--351}
    }
    \end{filecontents*}
    
    \begin{document}
    
    \nocite{*}
    
    \bibliographystyle{plain}
    \bibliography{references}
    
    \end{document}
    

    LaTeX > BibTeX > LaTeX > LaTeX を使用してコンパイルすると、上記の最小限の例 ( と呼ばれるfilename.tex) は次の を作成しますfilename.bbl

    \begin{thebibliography}{1}
    
    \bibitem{greenwade93}
    George~D. Greenwade.
    \newblock The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN}).
    \newblock {\em TUGBoat}, 14(3):342--351, 1993.
    
    \end{thebibliography}
    

    BibTeX は、フォーマットとレイアウト、および並べ替え順序 (別のパッケージを使用しても、何らかの方法で指定されている場合) をすでに処理しています。

  2. 交換

    \bibliographystyle{plain}
    \bibliography{references}
    

    のために

    \input{filename.bbl}
    

    コード内で。

ここに画像の説明を入力してください

関連情報