使用以下代码
\documentclass[a6paper,2pt,landscape]{article}
\usepackage[margin=27mm]{geometry}
\usepackage{hyperref}
\usepackage[style=verbose, isbn=false
]{biblatex}
\addbibresource{hol.bib}
% citation --> footnote
\renewcommand{\cite}{\footcite}
\hypersetup{
colorlinks=true,
}
\begin{document}
...famous\cite{Maldacena:1997re}...
\begin{filecontents}{hol.bib}
@article{Maldacena:1997re,
author = "Maldacena, Juan Martin",
title = "{The Large N limit of superconformal field theories and supergravity}",
eprint = "hep-th/9711200",
archivePrefix = "arXiv",
reportNumber = "HUTP-97-A097, HUTP-98-A097",
doi = "10.1023/A:1026654312961",
journal = "Adv. Theor. Math. Phys.",
volume = "2",
pages = "231--252",
year = "1998"
}
\end{filecontents}
\end{document}
pdflatex
生成:
问题是它太冗长了(我知道我可以删除参考书目来改变风格,就像我开始对 ISBN 所做的那样,但我追求的是其他功能)。我见过另一个答案但是该解决方案基于更改.bst
文件(我刚从 moeve 的评论中了解到,甚至没有使用biblatex
)。
我希望的是
保留脚注引用,但
删除单词arXiv(因为我们都通过查看编号知道它是 arXiv)并且只显示 id,在本例中为 [hep-th/9711200]。
所以,我有一个 MWE,但没有进展,因为我甚至不知道我必须修改的 bibmacro 的名称。
答案1
arxiv
eprint
您可以按如下方式更改格式
\documentclass[a6paper,2pt,landscape]{article}
\usepackage[margin=27mm]{geometry}
\usepackage{hyperref}
\usepackage[style=verbose, isbn=false]{biblatex}
\hypersetup{
colorlinks=true,
}
\makeatletter
\DeclareFieldFormat{eprint:arxiv}{%
\mkbibbrackets{%
\ifhyperref
{\href{https://arxiv.org/\abx@arxivpath/#1}{%
\nolinkurl{#1}%
\iffieldundef{eprintclass}
{}
{\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}
{\nolinkurl{#1}%
\iffieldundef{eprintclass}
{}
{\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}}
\makeatother
\begin{filecontents}{\jobname.bib}
@article{Maldacena:1997re,
author = "Maldacena, Juan Martin",
title = "{The Large N limit of superconformal field theories and supergravity}",
eprint = "hep-th/9711200",
archivePrefix = "arXiv",
reportNumber = "HUTP-97-A097, HUTP-98-A097",
doi = "10.1023/A:1026654312961",
journal = "Adv. Theor. Math. Phys.",
volume = "2",
pages = "231--252",
year = "1998"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
...famous\autocite{Maldacena:1997re}...
\end{document}