기본 tex 파일에 bibtex 파일을 추가하지 못했습니다.

기본 tex 파일에 bibtex 파일을 추가하지 못했습니다.

포럼에서 동봉된 Miminal 코드가 myref.bib여기 tex 파일의 파일 참조를 인쇄해야 한다고 제안하는 여러 항목을 보았습니다. 이 파일의 출력은 전체 페이지에 "How are you"라고 적힌 PDF 파일을 제공합니다.

\documentclass[12pt]{article}
\usepackage{natbib}
\begin{document}

How are you 
\bibliographystyle{acm}
\bibliography{myref.bib}

\end{document}

파일은 myref.bib동일한 디렉토리에 있으며 다음과 같은 3개의 항목이 있습니다.

@article{diamondprop,
    author = {Kania D R, Landstrass M I and Plano M A},
    title = {Diamond radiation detectors},
    journal = {Diamond and Related Material},
    year = { 1993 },
    volume = {2},
    number = {1012–9}
}

답변1

bibiliography{myref.bib}쓰기 만 작성하는 대신 bibiliography{myref}.bib 파일을 한 번 더 변경하면 제대로 작동합니다.

\documentclass[12pt]{article}
\usepackage{natbib}

\begin{document}

 How are you \cite{diamondprop}


 \bibliography{myref}
 \bibliographystyle{plain}

 \end{document}

.bib 파일도 수정했습니다. 첫 번째 저자와 두 번째 저자 이름 사이에 추가하는 것이 add이상적으로는 모든 저자 이름 사이에 추가하는 것이 좋습니다. 이것은 내가 사용한 .bib 파일입니다.

@article{diamondprop,
author = {Kania, D. R. and Landstrass, M. I. and Plano, M. A.},
title = {Diamond radiation detectors},
journal = {Diamond and Related Material},
year = { 1993 },
volume = {2},
number = {1012–9}
}

산출

이 링크는 처음 사용하는 경우 도움이 될 수 있습니다.BIBTeX를 사용하여 참고문헌 만들기

pdflatex,bibtex,pdflatex,pdflatex 순서로 4번 컴파일해야 한다는 사실을 잊어버렸습니다.

관련 정보