AAAI bibtex 风格与 biblatex

AAAI bibtex 风格与 biblatex

由美国人工智能协会出版的会议记录(美国航空学会联合会)通常要求作者使用 AAAI乳胶包装。该包提供了一个 bibtex.bst文件,但显然不支持biblatex

这是一个最小示例,展示了使用官方风格获得的结果bibtex

\documentclass{article}

\usepackage{aaai}
\usepackage{lipsum}

\begin{filecontents}{biblio.bib}
  @article{Stark04,
    author    = {T. Stark},
    title     = {{M}aintaining {K}nowledge about {W}eaponry},
    journal   = {International Journal of Armored Weapons},
    volume    = {26},
    number    = {11},
    pages     = {832--843},
    year      = {2004}
  }

  @incollection{Riddle94,
    author      = {T. M. Riddle},
    title       = {{I}ntegrating {P}otions and {D}eath {E}aters},
    editor      = {Mary Zen and Mark S. Furling},
    booktitle   = {Intelligent Magic},
    publisher   = {Morgan Kaufmann},
    year        = 1994,
    pages       = {169--212},
    chapter     = 6
  }

  @inproceedings{LutorK17,
    author    = {L. Lutor and C. Kent},
    title     = {
      {On The Effects of Mineral Mining from Alien Planets}
    },
    booktitle = {
      {Proc. of the 31st {AAAI} Conference on Alien
      Intelligence}
    },
    pages     = {3547--3554},
    year      = {2017}
  }
\end{filecontents}

\title{How to be published on comics and fantasy books}
\author{Stan Lee}

\begin{document}

\maketitle

\section{Introduction}

It is always good to cite \cite{Riddle94,Stark04} and acknowledge
\cite{LutorK17}.

\lipsum[1-5]

\bibliographystyle{aaai}
\bibliography{biblio.bib}


\end{document}

引用样式本身类似于(Author Name et al. 1999),而参考书目则以正常方式呈现,我想。示例显示了一篇会议论文、一个合集章节和一篇期刊文章。

例子

是否存在一些非官方的 AAAIbiblatex风格可以获得相同的结果,或者您能否建议我如何配置biblatex以获得相同的参考书目外观(引用风格非常标准)?

答案1

这只是一个起点,而不是一个完整的答案,它也是一个解释如何提出问题的机会biblatex

从标准开始authoryear-icomp,我添加了代码:

  • 删除:之后In
  • 删除参考书目中的年份括号
  • 删除标题中的引号
  • pp从参考书目页面中删除
  • and在作者列表前加逗号
  • 颠倒第二作者的姓氏和名字
  • 避免引用缩进
  • 在餐盘之间留出一点垂直空间。

顺便说一句,您可以在 TeX.SE 上的其他帖子中找到大多数解决方案。

还有很多事情要做,但你可以针对它们提出具体的问题(如果它们不是重复的,则先搜索一下),作为问题的后续。举一个简单的例子:怎样写chapter而不是Chap.

\documentclass{article}

\usepackage{aaai}
\usepackage{lipsum}
\usepackage{xpatch}
\usepackage[style=authoryear-icomp]{biblatex}

% to leave out the : after In
% see moewe's first comment
\renewcommand*{\intitlepunct}{\addspace}

% to leave out the () around the year in bibliography
% (code from https://tex.stackexchange.com/a/40710/101651)
\xpatchbibmacro{date+extrayear}{%
    \printtext[parens]%
}{%
    \setunit{\addperiod\space}%
    \printtext%
}{}{}

% to remove the quote marks around titles
\DeclareFieldFormat[inproceedings]{title}{#1}   
\DeclareFieldFormat[incollection]{title}{#1}    
\DeclareFieldFormat[article]{title}{#1} 

% to remove pp before pages in bibliography
\DefineBibliographyStrings{english}{%
    page             = {\ifbibliography{}{p\adddot}},
    pages            = {\ifbibliography{}{pp\adddot}},
} 

% to put a comma before the and in author list
% see moewe's comments, the second one also for alternative solutions
\DefineBibliographyExtras{english}{\def\finalandcomma{\addcomma}}
\DeclareDelimFormat{finalnamedelim}{\finalandcomma\addspace\bibstring{and}\space}

% to invert last and first names in second author
% (code from: https://tex.stackexchange.com/a/151827/101651)
\DeclareNameAlias{sortname}{family-given}

% to avoid reference indentation
% code from https://tex.stackexchange.com/a/37775/101651
\setlength\bibhang{0pt} % default value: \parindent

% a bit of vertical space between items
\setlength\bibitemsep{.2\baselineskip} 

\begin{filecontents}{biblio.bib}
    @article{Stark04,
        author    = {T. Stark},
        title     = {{M}aintaining {K}nowledge about {W}eaponry},
        journal   = {International Journal of Armored Weapons},
        volume    = {26},
        number    = {11},
        pages     = {832--843},
        year      = {2004}
    }

    @incollection{Riddle94,
        author      = {T. M. Riddle},
        title       = {{I}ntegrating {P}otions and {D}eath {E}aters},
        editor      = {Mary Zen and Mark S. Furling},
        booktitle   = {Intelligent Magic},
        publisher   = {Morgan Kaufmann},
        year        = 1994,
        pages       = {169--212},
        chapter     = 6
    }

    @inproceedings{LutorK17,
        author    = {L. Lutor and C. Kent},
        title     = {
            {On The Effects of Mineral Mining from Alien Planets}
        },
        booktitle = {
            {Proc. of the 31st {AAAI} Conference on Alien
                Intelligence}
        },
        pages     = {3547--3554},
        year      = {2017}
    }
\end{filecontents}

\addbibresource{biblio.bib}

\title{How to be published on comics and fantasy books}
\author{Stan Lee}

\begin{document}

    \maketitle

    \section{Introduction}

    It is always good to cite \textcite{Riddle94,Stark04} and acknowledge
    \textcite{LutorK17}.

    \lipsum[1-5]

    \printbibliography


\end{document}

在此处输入图片描述

相关内容