
我還沒有設法為幾家報紙製作英語和西班牙語的書目條目。我正在使用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}
圍脖文件在這裡:
@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”(不定冠詞)。因此,《墨西哥先驅報》正確地排在《紐約時報》之前,但兩者都應該排在《萊因哈特》之前。 ,但這並不混亂本參考書目中的任何內容。
答案1
您author={{The Mexican Herald}}
定義了以 開頭的作者姓名The
,這也用於對作者進行排序。要擺脫這個問題,您可以使用命令\noop{Mexican Herald}
來獲取不帶前導的作者姓名The
,並用於對作者進行排序。在您的圍脖條目中新增此命令,例如
@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
...