我需要删除缩写列表中缩写后面的点。我正在使用 ACRO 包。
我的最小工作示例(MWE)如下所示:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{longtable}
\usepackage[utf8]{inputenc}
\usepackage{acro}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{enumitem}
\hypersetup{colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=black,filecolor=black}
\DeclareInstance{acro-page-number}{dotfill}{default}{
punct = true,
punct-symbol = \dotfill
}
\acsetup{
list-type = table,
list-style = longtable,
list-table-width=\linewidth,
pages = first,
page-name = ,
pages-name = ,
page-ref = dotfill
}
\DeclareAcronym{TEX}{%
short = TEX,
long = LaTeX,
extra = (just gettin started)
}
\begin{document}
\tableofcontents
\printacronyms
\newpage
\section{l NEED SOME HELP}
A \ac{TEX} is such a nice thing nowadays. Nevertheless, I have no clue what to do to solve this problem.
\end{document}
答案1
如果你指的是“LaTeX”后面的点:
使用
\acsetup{
extra-style = paren ,
...
}
并从首字母缩略词的定义中删除括号:
\DeclareAcronym{TEX}{
short = \TeX,
long = \LaTeX,
extra = just gettin started
}
然后你会得到
回答评论:将额外信息放在描述下方也是可能的:
为对象定义一个新实例acro-extra
:
\DeclareInstance {acro-extra} {newline} {default}
{ brackets = false , punct = true , punct-symbol = \newline }
或者可能更好
\DeclareInstance {acro-extra} {newline} {default}
{ brackets = false , punct = true , punct-symbol = \par }
然后设置\acsetup{extra-style = newline }
。这将得到:
完整代码:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{longtable}
\usepackage[utf8]{inputenc}
\usepackage{acro}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{enumitem}
\hypersetup{colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=black,filecolor=black}
\DeclareInstance{acro-page-number}{dotfill}{default}{
punct = true,
punct-symbol = \dotfill
}
\DeclareInstance {acro-extra} {newline} {default}
{ brackets = false , punct = true , punct-symbol = \newline }
\acsetup{
extra-style = newline,
list-type = table,
list-style = longtable,
list-table-width = \linewidth,
pages = first,
page-name = ,
pages-name = ,
page-ref = dotfill
}
\DeclareAcronym{TEX}{%
short = \TeX,
long = \LaTeX,
extra = just gettin started
}
\DeclareAcronym{foo}{%
short = foo,
long = foo bar baz
}
\begin{document}
\tableofcontents
\printacronyms
\newpage
\section{l NEED SOME HELP}
A \ac{TEX} is such a nice thing nowadays. Nevertheless, I have no clue what to
do to solve this problem. \ac{foo}
\end{document}