我还没有设法为几份英文和西班牙文报纸制作书目条目。我正在使用natbib
,书目样式是aer
。这是最小代码。
\documentclass[11pt]{article}%
\usepackage{natbib}
\bibliographystyle{aer}
\begin{document}
\citeauthor{smercantil}
\citeauthor{nyt}
\citeauthor{mexherald}
\citeauthor{eemex}
\cite{reinhartrogoff2009}
\bibliography{overleafhelp}
\end{document}
bib 文件在这里:
@misc{em,
author={{El Economista Mexicano}},
note={Mexico City. Various issues}
}
@misc{mexherald,
author={{The Mexican Herald}},
note={\textup{Mexico City. Various issues}\upshape}
}
@misc{nyt,
author={{The New York Times}},
note={\textup{Various issues}\upshape}
}
%note={\textup{Various issues}\upshape}
@misc{smercantil,
title={Semana Mercantil},
howpublished={\textup{Mexico City. Various issues}\upshape},
note={Available on http://www.hndm.unam.mx/index.php/es/}
}
@book{reinhartrogoff2009,
title={This time is different: Eight centuries of financial folly},
author={Reinhart, Carmen M and Kenneth S. Rogoff},
year={2009},
publisher={Princeton University Press}
}
经过几轮试验后,我只剩下一个问题:*.bib
使用 时以某种方式强制放置某些条目@misc
。我使用@misc
,因为这似乎是放置没有作者和日期的报纸的最佳方式,但放置不会忽略“The”(不定冠词)。因此,“The Mexican Herald”正确地放在“The New York Times”之前,但两者都应该放在“Reinhart”之前。(我对“El Economista Mexicano”中的“El”有同样的排序问题,但它不会弄乱此书目中的任何内容。)
答案1
您author={{The Mexican Herald}}
定义了以 开头的作者姓名The
,这也用于对作者进行排序。要摆脱这种情况,您可以使用命令\noop{Mexican Herald}
获取不带前导的作者姓名The
并用于对作者进行排序。在您的 bib 条目中添加此命令,例如
@misc{mexherald,
author={\noop{Mexican Herald}{The Mexican Herald}},
note={\textup{Mexico City. Various issues}\upshape}
}
或者
@misc{em,
author={\noop{Economista Mexicano}{El Economista Mexicano}},
note={Mexico City. Various issues}
}
请注意,您必须\noop
在代码的序言中定义命令,例如:
\newcommand{\noop}[1]{} % <=============================================
因此,使用以下可编译的 MWE
\begin{filecontents}{\jobname.bib}
@misc{em,
author={\noop{Economista Mexicano}{El Economista Mexicano}},
note={Mexico City. Various issues}
}
@misc{mexherald,
author={\noop{Mexican Herald}{The Mexican Herald}},
note={\textup{Mexico City. Various issues}\upshape}
}
@misc{nyt,
author={\noop{New York Times}{The New York Times}},
note={\textup{Various issues}\upshape}
}
%note={\textup{Various issues}\upshape}
@misc{smercantil,
title={Semana Mercantil},
howpublished={\textup{Mexico City. Various issues}\upshape},
note={Available on http://www.hndm.unam.mx/index.php/es/}
}
@book{reinhartrogoff2009,
title = {This time is different: Eight centuries of financial folly},
author = {Reinhart, Carmen M and Kenneth S. Rogoff},
year = {2009},
publisher = {Princeton University Press}
}
\end{filecontents}
\documentclass[11pt]{article}%
\usepackage{natbib}
\bibliographystyle{aer}
\newcommand{\noop}[1]{} % <=============================================
\begin{document}
\citeauthor{smercantil}
\citeauthor{nyt}
\citeauthor{mexherald}
\citeauthor{em} % <=====================================================
\cite{reinhartrogoff2009}
\bibliography{\jobname}
\end{document}
你得到了想要的结果:
El
请查看具有领先地位的作者的正确排序The
......