amsrefs 省略的 URL

amsrefs 省略的 URL

我想弄清楚如何获取amsrefs/bibtex排版参考书目条目中的 URL。

这是我用来管理参考资料的系统。我从一个名为的文件开始references.ltb

\begin{bibdiv}
\begin{biblist}

\bib{buskin16}{article}{
    author={Buskin, Nikolay},
    title={Every rational Hodge isometry between two K3 surfaces is
  algebraic},
    date={2016},
    url={arXiv:1510.02852v3 [math.AG]},
}

\end{biblist}
\end{bibdiv}

然后这个 LaTeX 文件

\documentclass{article}

\usepackage{amsrefs}
\usepackage{url}

\begin{document}

\cite{buskin16}

\begin{bibdiv}
\begin{biblist}

\bibselect{references}

\end{biblist}
\end{bibdiv}

\end{document}

生成以下输出:

在此处输入图片描述

如您所见,缺少 URL。

答案1

url字段仅适用于webpage样式。不过,将其添加到类型中并不困难article

但是,该eprint字段已经提供。第二个示例有eprint代替url(它不需要重新定义类型article)。

\begin{filecontents*}{\jobname.ltb}
\begin{bibdiv}
\begin{biblist}

\bib{buskin16}{article}{
    author={Buskin, Nikolay},
    title={Every rational Hodge isometry between two K3 surfaces is
  algebraic},
    date={2016},
    url={arXiv:1510.02852v3 [math.AG]},
}

\bib{buskin17}{article}{
    author={Buskin, Nikolay},
    title={Every rational Hodge isometry between two K3 surfaces is
  algebraic},
    date={2016},
    eprint={arXiv:1510.02852v3 [math.AG]},
}

\end{biblist}
\end{bibdiv}
\end{filecontents*}

\documentclass{article}

\usepackage{amsrefs}
\usepackage{url}

\BibSpec{article}{%
    +{}  {\PrintAuthors}                {author}
    +{,} { \textit}                     {title}
    +{.} { }                            {part}
    +{:} { \textit}                     {subtitle}
    +{,} { \PrintContributions}         {contribution}
    +{.} { \PrintPartials}              {partial}
    +{,} { }                            {journal}
    +{}  { \textbf}                     {volume}
    +{}  { \PrintDatePV}                {date}
    +{,} { \issuetext}                  {number}
    +{,} { \eprintpages}                {pages}
    +{,} { }                            {status}
    +{,} { \url}                        {url}    % <---- ADDED
    +{,} { \PrintDOI}                   {doi}
    +{,} { available at \eprint}        {eprint}
    +{}  { \parenthesize}               {language}
    +{}  { \PrintTranslation}           {translation}
    +{;} { \PrintReprint}               {reprint}
    +{.} { }                            {note}
    +{.} {}                             {transition}
    +{}  {\SentenceSpace \PrintReviews} {review}
}

\begin{document}

\cite{buskin16} \cite{buskin17}

\begin{bibdiv}
\begin{biblist}

\bibselect{\jobname}

\end{biblist}
\end{bibdiv}

\end{document}

在此处输入图片描述

相关内容