natbib 및 aaai-named

natbib 및 aaai-named

나는 사용해야한다스타일aaai-named.

Overleaf에서 사용하고 싶습니다. 나는 그 파일을 사용하려고 시도했고 .bst그런 식으로 통합했습니다.

\documentclass{article}

\usepackage[style=authoryear]{natbib}
\bibliographystyle{aaai-named}

\begin{document}

  \citep{latexcompanion}

  \bibliography{references.bib}

\end{document}

이것은 잘 작동하지만

  1. 나는 사용하고 싶지 biblatex않다natbib
  2. \cite(), \citep{}, ...을 수행하여 [저자, 연도] 대신 (저자)만 가져오기 때문에 인용이 통합되지 않습니다.

누구든지 통합하는 데 도움을 줄 수 있나요? 아니면 Overleaf에서 지원하는 비슷한 스타일을 아는 사람이 있나요?

답변1

biblatex.bstBibTeX에서 사용하는 파일 과 호환되지 않습니다 . 따라서 biblatex와 함께 사용할 수 없습니다 aaai-named. 그러나 다음 MWE aaai-named와 호환 되므로 나에게 잘 작동합니다.natbib

natbib옵션을 사용하여 작성자의 연도를 입력합니다.authoryear 없이 style=접두사. natbibsquare옵션은 인용에 대괄호를 제공합니다.

\documentclass{article}

\usepackage[authoryear,square]{natbib}
\bibliographystyle{aaai-named}

%\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{latexcompanion,
  author    = {Michel Goossens and Frank Mittelbach
               and Alexander Samarin},
  title     = {The \LaTeX\ Companion},
  year      = {1993},
  publisher = {Addison-Wesley},
  location  = {Reading, Massachusetts}
}
\end{filecontents}

\begin{document}
\citep{latexcompanion}
\bibliography{\jobname}
\end{document}

[구센스 외, 1993]

이 명령은 \bibliography파일 확장자 없이 파일 이름 인수를 사용합니다.


natbib기본적으로 참고문헌에 저자 연도 레이블을 표시하지 않습니다(아마도 일반적으로 저자 연도 호환 서지 스타일과 중복되기 때문일 수 있지만 연도가 끝에 가까워진다는 사실이 aaai-named레이블을 더 매력적으로 만든다는 점을 인정합니다).

natbib의 확장 기능이 필요하지 않은 경우 다음 \cite주석에서 제안된 수정 사항을 사용할 수 있습니다.aaai-named.bst

\documentclass{article}

\bibliographystyle{aaai-named}

\makeatletter
\let\@internalcite\cite
\def\cite{\def\citename##1{##1}\@internalcite}
\def\shortcite{\def\citename##1{}\@internalcite}
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}
\makeatother

%\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{latexcompanion,
  author    = {Michel Goossens and Frank Mittelbach
               and Alexander Samarin},
  title     = {The \LaTeX\ Companion},
  year      = {1993},
  publisher = {Addison-Wesley},
  location  = {Reading, Massachusetts}
}
\end{filecontents}

\begin{document}
\cite{latexcompanion}
\bibliography{\jobname}
\end{document}

관련 정보