"작가?" natbib 사용 중 오류

"작가?" natbib 사용 중 오류

인용문을 가져오려고 하는데 다음과 같은 오류가 발생합니다. 표시됩니다작가?대신에 author-year.

document1.snw:

\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathtools}
\usepackage{eso-pic}
\usepackage{array}
\usepackage{shortvrb}
\usepackage{tikz}
\usepackage{tabularx}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{natbib}



\begin{document}

the possible future events \citet{Test12}.

\bibliographystyle{plainnat}
\bibliography{References_trial}

\end{document}    

References_trial.bib:

@article{Test12,
    author = {{John Smith}},
    title = {Test Article},
    year = {2012},
    journal = {The Test Journal}
}

여기에 이미지 설명을 입력하세요

답변1

몇 가지 의견과 관찰:

  • \citet"텍스트 스타일" 저자 연도 유형 인용 콜아웃을 생성하는 데 을 사용하려면 natbib옵션 authoryear및 가 포함된 인용 패키지를 로드해야 합니다 round.

  • 무엇을 하든 또는 author = {{John Smith}},로 변경하세요 .author = {John Smith},author = {Smith, John},

  • \cite관련 상호 종속성을 해결하려면 전체 컴파일 주기(LaTeX, BibTeX 및 LaTeX를 두 번 더)를 실행해야 합니다 .

여기에 이미지 설명을 입력하세요

\documentclass[a4paper]{article} 
\begin{filecontents}[overwrite]{References_trial.bib}
@article{Test25,
    author = {John Smith},
    title  = {Test Article},
    journal= {The Test Journal},
    year   = {2525},
    volume = {1},
    number = {2},
    pages  = {3-4},
}
\end{filecontents}
\usepackage[authoryear,round]{natbib}
\bibliographystyle{plainnat}

\begin{document}
\noindent
\citet{Test25}
\bibliography{References_trial}
\end{document}    

관련 정보