![使用 acro 包将引用前的逗号改为分号](https://linux22.com/image/380338/%E4%BD%BF%E7%94%A8%20acro%20%E5%8C%85%E5%B0%86%E5%BC%95%E7%94%A8%E5%89%8D%E7%9A%84%E9%80%97%E5%8F%B7%E6%94%B9%E4%B8%BA%E5%88%86%E5%8F%B7.png)
我正在使用该acro
包来介绍带有适当引用的首字母缩略词。我正在几乎能够得到我需要的东西,但有一个小问题。
我想以“Helioseismic and Magnetic Imager (HMI; Scherrer et al., 2012)”的形式引入首字母缩略词,但到目前为止,使用该acro
软件包,我只能获得“Helioseismic and Magnetic Imager (HMI, Scherrer et al., 2012)”——IE,用逗号而不是分号分隔首字母缩略词和引用。
这是我的工作示例:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{bibliography.bib}
@article{scherrer2012helioseismic,
author = {{Scherrer}, P.~H. and {Schou}, J. and {Bush}, R.~I. and {Kosovichev}, A.~G. and {Bogart}, R.~S. and {Hoeksema}, J.~T. and {Liu}, Y. and {Duvall}, T.~L. and {Zhao}, J. and {Title}, A.~M. and {Schrijver}, C.~J. and {Tarbell}, T.~D. and {Tomczyk}, S.},
title = "{The Helioseismic and Magnetic Imager (HMI) Investigation for the Solar Dynamics Observatory (SDO)}",
year = 2012}
\end{filecontents*}
\usepackage[natbib,citestyle=authoryear,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\usepackage{acro}
\acsetup{
single = false,
sort = true,
group-citation = true,
group-cite-cmd = \citealp
}
\DeclareAcronym{HMI}{
short = HMI,
long = Helioseismic and Magnetic Imager,
cite = {scherrer2012helioseismic}
}
\begin{document}
I need this to say ``Helioseismic and Magnetic Imager (HMI; Scherrer et al., 2012)''.
But right now, I get ``\ac{HMI}''.
\end{document}
是否可以将首字母缩略词和引用之间的分隔符从逗号更改为分号?
答案1
类似于cite
的cite-connect
group-citation
has group-cite-connect
,由于某种原因,它没有记录在acro
手册的 v2.8 中(我抱怨过https://bitbucket.org/cgnieder/acro/issues/110/group-cite-connect-not-documented)。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{bibliography.bib}
@article{scherrer2012helioseismic,
author = {{Scherrer}, P.~H. and {Schou}, J. and {Bush}, R.~I. and {Kosovichev}, A.~G. and {Bogart}, R.~S. and {Hoeksema}, J.~T. and {Liu}, Y. and {Duvall}, T.~L. and {Zhao}, J. and {Title}, A.~M. and {Schrijver}, C.~J. and {Tarbell}, T.~D. and {Tomczyk}, S.},
title = "{The Helioseismic and Magnetic Imager (HMI) Investigation for the Solar Dynamics Observatory (SDO)}",
year = 2012}
\end{filecontents*}
\usepackage[natbib,citestyle=authoryear,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\usepackage{acro}
\acsetup{
single = false,
sort = true,
group-citation = true,
group-cite-cmd = \citealp,
group-cite-connect = {; },
}
\DeclareAcronym{HMI}{
short = HMI,
long = Helioseismic and Magnetic Imager,
cite = {scherrer2012helioseismic}
}
\begin{document}
I need this to say ``Helioseismic and Magnetic Imager (HMI; Scherrer et al., 2012)''.
But right now, I get ``\ac{HMI}''.
\end{document}
你可能想看看软件生成的书目条目:使用前应检查的常见错误和其他错误您的.bib
条目:作者姓氏周围的括号是错误的,可能会导致错误。~
首字母缩写中不需要连字符biblatex
。该title
字段不应包含在额外的花括号中。最后,如果这确实是 ,您可能需要一个journal
和volume
以及一个字段。pages
@article