
英語とスペイン語で書かれたいくつかの新聞の書誌エントリを作成できませんでした。 を使用しています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}
}
さらに数回の試行錯誤を経て、問題は 1 つだけになりました。*.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
...を参照してください。