![amsrefs 省略的 URL](https://linux22.com/image/355580/amsrefs%20%E7%9C%81%E7%95%A5%E7%9A%84%20URL.png)
我想弄清楚如何获取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}