
제목에서 알 수 있듯이 웹사이트에서 파일 형식으로 참고 목록을 받았는데 .bbl
, 여기에서 PDF를 생성하고 싶습니다. 한 시간 동안 인터넷 검색을 했는데 뭔가 빠진 것이 있을 수도 있습니다. 내가 이해한 바로는 .tex
파일을 만들어 사용 \bibliography{*name_of_file*}
하지만 작동하지 않습니다. 또한 .bbl
파일의 내용을 참고문헌에 붙여넣으려고 시도했지만 작동하지 않습니다.
누군가 이 작업을 수행하는 방법에 대한 단계별 가이드를 제공할 수 있습니까?
답변1
당신은 우리에게 파일을 주지 않았고 *.bbl
파일을 받은 웹사이트의 이름도 밝히지 않았기 때문에 추측해야 합니다. 다음 질문에는 더 쉽게 도움을 드릴 수 있도록 모든 관련 정보를 추가해 주세요!
당신이 얻은 것은 다음과 같습니다 *.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}
여기 패키지는 컴파일 가능한 MWE에서 tex 코드와 bib 파일을 함께 사용하는 데에만 사용되므로 ! filecontents
를 사용할 필요가 없습니다.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
.
답변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 파일은 여러 스타일의 참조를 제공할 수 있습니다... A bbl
는 파일의 특정 출력일 뿐이 bib
므로 사용성이 떨어집니다... 따라서 a가 있거나 얻을 수 있다면 bib
시도해 보세요. 대신 이 방법을 사용하세요.