Natbib을 사용하여 신문 인용(날짜 없음)

Natbib을 사용하여 신문 인용(날짜 없음)

나는 영어와 스페인어로 된 여러 신문의 서지 항목을 작성하지 못했습니다. 제가 사용하고 있는 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"(부정사)를 무시하지 않습니다. 따라서 "The Mexican Herald"는 "The New York Times"보다 정확하게 앞에 와야 하지만 둘 다 "Reinhart"보다 먼저 와야 합니다. ("El Economista Mexicano"의 "El"과 동일한 순서 문제가 있지만 엉망이지는 않습니다. 이 참고문헌에 있는 모든 것.)

답변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.

관련 정보