
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}
}
Respuesta1
Algunos comentarios y observaciones:
Si desea utilizar
\citet
para generar llamadas de citas de tipo autor-año de "estilo textual", asegúrese de cargar elnatbib
paquete de citas con las opcionesauthoryear
yround
.Hagas lo que hagas, cambia
author = {{John Smith}},
aauthor = {John Smith},
oauthor = {Smith, John},
.Asegúrese de ejecutar un ciclo de compilación completo (LaTeX, BibTeX y LaTeX dos veces más) para resolver las
\cite
dependencias cruzadas relacionadas.
\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}