ウェブサイトから.bblファイルが提供され、pdfを生成する必要がある

ウェブサイトから.bblファイルが提供され、pdfを生成する必要がある

タイトルの通り、ウェブサイトからファイル形式の参考文献リストを受け取ったので.bbl、これを PDF にしたいです。1 時間ほど Google で検索していますが、何か見落としているかもしれません。私の理解では、ファイルを作成して.tex使用するのですが、これは機能しません。ファイルの内容を参考文献に\bibliography{*name_of_file*}貼り付けることも試しましたが、これも機能しません。.bbl

誰か、これをどうやって行うのかステップバイステップで説明してくれませんか?

答え1

ファイルを教えていただけず*.bbl、また、ファイルを取得した Web サイトの名前も教えていただけないので、推測するしかありません。次の質問では、私たちがサポートしやすいように、関連するすべての情報を追加してください。

あなたが得たものが次のとおりだとします*.bbl:

\providecommand{\latin}[1]{#1}
\makeatletter
\providecommand{\doi}
  {\begingroup\let\do\@makeother\dospecials
  \catcode`\{=1 \catcode`\}=2 \doi@aux}
\providecommand{\doi@aux}[1]{\endgroup\texttt{#1}}
\makeatother
\providecommand*\mcitethebibliography{\thebibliography}
\csname @ifundefined\endcsname{endmcitethebibliography}
  {\let\endmcitethebibliography\endthebibliography}{}
\begin{mcitethebibliography}{4}
\providecommand*\natexlab[1]{#1}
\providecommand*\mciteSetBstSublistMode[1]{}
\providecommand*\mciteSetBstMaxWidthForm[2]{}
\providecommand*\mciteBstWouldAddEndPuncttrue
  {\def\EndOfBibitem{\unskip.}}
\providecommand*\mciteBstWouldAddEndPunctfalse
  {\let\EndOfBibitem\relax}
\providecommand*\mciteSetBstMidEndSepPunct[3]{}
\providecommand*\mciteSetBstSublistLabelBeginEnd[3]{}
\providecommand*\EndOfBibitem{}
\mciteSetBstSublistMode{f}
\mciteSetBstMaxWidthForm{subitem}{(\alph{mcitesubitemcount})}
\mciteSetBstSublistLabelBeginEnd
  {\mcitemaxwidthsubitemform\space}
  {\relax}
  {\relax}

\bibitem[Goossens \latin{et~al.}(1994)Goossens, Mittelbach, and
  Samarin]{Goossens}
Goossens,~M.; Mittelbach,~F.; Samarin,~A. \emph{The LaTeX Companion}, 1st ed.;
  Addison-Wesley, 1994\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\bibitem[Adams(1980)]{adams}
Adams,~D. \emph{The Restaurant at the End of the Universe}; The Hitchhiker's
  Guide to the Galaxy; Pan Macmillan, 1980\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\bibitem[Editor \latin{et~al.}(2015)Editor, Editor2, and Editor3]{test}
Editor,~F., Editor2,~S., Editor3,~T., Eds. \emph{Test to show the effect};
  Publisher, 2015\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\bibitem[Feynman(1969)]{feynman}
Feynman,~R.~P. Very High-Energy Collisions of Hadrons. \emph{Phys. Rev. Lett.}
  \textbf{1969}, \emph{23}, 1415--1417\relax
\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}
{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax
\EndOfBibitem
\end{mcitethebibliography}

これを TEX コードで使用するには、それがどのように作成されたかを知る必要があります。そこで、次の MWE を見てみましょう (bib ファイルと参考文献を作成するコマンドが完成しており、*.bbl上記のようになります)。

\begin{filecontents*}{testbib.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@article{Ross2006,
  title     = {Treating the right patient at the right time: 
               access to heart failure care},
  author    = {Ross, H and Howlett, J and Arnold, J Malcolm O and 
               Liu, P and O’Neill, BJ and Brophy, JM and Simpson, CS and 
               Sholdice, MM and Knudtson, M and Ross, DB and others},
  journal   = {Canadian journal of Cardiology},
  volume    = {22},
  number    = {9},
  pages     = {749--754},
  year      = {2006},
  publisher = {Elsevier},
}
@article{Heidenreich2013,
  title     = {Forecasting the impact of heart failure in the 
               United States a policy statement from the American Heart Association},
  author    = {Heidenreich, Paul A and Albert, Nancy M and 
               Allen, Larry A and Bluemke, David A and Butler, Javed and 
               Fonarow, Gregg C and Ikonomidis, John S and Khavjou, Olga 
               and Konstam, Marvin A and Maddox, Thomas M and others},
  journal   = {Circulation: Heart Failure},
  volume    = {6},
  number    = {3},
  pages     = {606--619},
  year      = {2013},
  publisher = {Am Heart Assoc},
}
@book{mschinLearning,
author    = {Tom M. Mitchell}, 
title     = {Machine learning},
publisher = {Mac Gew Hill},
year      = 1997,
volume    = 4,
series    = 10,
address   = {The address},
edition   = 3,
month     = 7,
note      = {An optional note},
isbn      = {0071154671},
}
@misc{mozart:KV183,
  author  = {Mozart, Wolfgang Amadeus},
  title   = {Sinfonie g-Moll},
  year    = {1773},
  address = {Salzburg},
  note    = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25; 
             Erster Satz: Allegro con brio, Zweiter Satz: Andante, 
             Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}


\documentclass[10pt,a4paper]{article}

\usepackage{showframe}  % to visualise the typing area and margins
\usepackage{hyperref}   % better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{unsrt} % <===========================================
\bibliography{testbib}

\end{document}

ここでのパッケージはfilecontents、コンパイル可能な MWE に tex コードと bib ファイルを一緒に含めるためにのみ使用されるため、使用する必要はありませんfilecontents

今すぐファイルを使用できるようにするには、testbib.bbl次の TEX コードが必要です (\cite必要なコマンドと、ファイルの作成に使用される書誌スタイルを確認してください*.bbl)。

\documentclass[10pt,a4paper]{article}

\usepackage{showframe}  % to visualise the typing area and margins
\usepackage{hyperref}   % better urls


\begin{document}

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{unsrt} % <===========================================
\input{testbib.bbl} % <=================================================

\end{document}

\input{testbib.bbl}参考文献がその文書に含まれている場合、次のようになります\input{testbib.bbl}

結果として得られた参考文献

最後に、上記の結果を次のファイルを使用したコードの結果と比較してください*.bib

bib ファイル付き参考文献

答え2

TeX.SXへようこそ!

ファイルに「references.bib」という名前を付けましょう。

次の内容を含むドキュメントを作成し、「main.tex」という名前を付けます。

\documentclass{article}
\usepackage{natbib}

\begin{document}
\nocite{*}
\bibliographystyle{apalike}
%unsrt: Style with unsorted citations [1] [2]
%plain: [1] [2] etc but shorted 
%apalike: Author year style
%agsm: Harvard style
\bibliography{references}
\end{document}

次に以下を実行します:

pdflatex main
bibtex main
pdflatex main

pdflatexメイン

これにより、選択したスタイルで参考文献が印刷されたドキュメントが生成されます。

以下のように自由にお使いくださいgeometry:

\usepackege[top=1in,bottom=1.2in,left=1in,right=1.5in]{geometry}

(このコマンドを、プリアンブルに含めたい余白と一緒に追加します - たとえば、\documentclassコマンドのすぐ下など)

またはページ番号を削除するには、以下を使用して購入します。

 \pagestyle{empty}

コマンドの後のどこかに\documentclass

編集:

申し訳ありません...bblファイルがあり、 ではないことを示すだけですbib... 私の回答を削除しますが、数分間そのままにして、それを確認して、代わりに bib (ある場合) ファイルを使用するかどうかを決め、いつでもスタイルにアクセスできるようにします... bib ファイルは、参照の複数のスタイルを提供できます... は、ファイルbblの特定の出力にすぎないbibため、あまり使用できません... したがって、 がある場合 (または入手できる場合) はbib、代わりにこの方法を試してください。

関連情報