"¿autor?" error al usar natbib

"¿autor?" error al usar natbib

Estoy intentando importar citas pero ocurre el siguiente error. Muestra¿autor?en lugar de 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}
}

ingrese la descripción de la imagen aquí

Respuesta1

Algunos comentarios y observaciones:

  • Si desea utilizar \citetpara generar llamadas de citas de tipo autor-año de "estilo textual", asegúrese de cargar el natbibpaquete de citas con las opciones authoryeary round.

  • Hagas lo que hagas, cambia author = {{John Smith}},a author = {John Smith},o author = {Smith, John},.

  • Asegúrese de ejecutar un ciclo de compilación completo (LaTeX, BibTeX y LaTeX dos veces más) para resolver las \citedependencias cruzadas relacionadas.

ingrese la descripción de la imagen aquí

\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}    

información relacionada