使用 acro 包将引用前的逗号改为分号

使用 acro 包将引用前的逗号改为分号

我正在使用该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

类似于citecite-connect group-citationhas 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}

“日震和磁成像仪(HMI;Scherrer 等人,2012 年)”

你可能想看看软件生成的书目条目:使用前应检查的常见错误和其他错误您的.bib条目:作者姓氏周围的括号是错误的,可能会导致错误。~首字母缩写中不需要连字符biblatex。该title字段不应包含在额外的花括号中。最后,如果这确实是 ,您可能需要一个journalvolume以及一个字段。pages@article

相关内容