I am trying to compile on older document that was originally set up using acro 1.x. The document used the following settings:
\acsetup{
first-long-format = \itshape,
list-style = lof,
list-short-width = 6.4em,
list-caps = true,
pages = first
}
On my current system I only have acro 3.8, which threw me a bunch of errors upon compilation. After going through the documentation I found the equivalents for some of the previous parameters:
\acsetup{
format/first-long = \itshape,
list/template = lof,
pages/display = first
}
However it seems the following two options are gone:
- list-short-width - Sets the width of the acronym column in the list of abbreviations
- list-caps - Makes the written out acronyms in the list of abbreviations start with a capital letter.
Unfortunately all of my attemps in searching for a solution to adjust the column width lead me to older questions, where the solution was using list-short-width. Based on the documentation I also played a bit around with setting templates/colspec, but I didn't manage to get a working solution so far...
Any idea on how can I restore the previous behavior using aro 3.8?
Minimal example:
% !TeX spellcheck = en_US
\documentclass[a4paper]{article}%
%
\usepackage{acro}%
%
\DeclareAcronym{ransac}{
short=RANSAC,
long=random sample consensus
}%
%
\DeclareAcronym{sift}{
short=SIFT,
long=scale invariant feature transform
}%
%
\acsetup{
format/first-long = \itshape,
list/template = lof,
pages/display = first
%list-caps = true,
%list-short-width=6.4em,
}%
%
\begin{document}%
\section{Some Text}
\Ac{ransac} is a common approach to match features like \ac{sift}.
\section*{List of Abbreviations}
\printacronyms[heading=none]%
\end{document}%
Current output:
Desired list appearance (original document):



\acsetup{list/template=longtable}, probably without any further modifications? – Dai Bowen Apr 30 '23 at 12:52\acsetup{list/template=longtable}the first column is at least not reaching into the second one anymore, but there are a few other issues instead: 1) The overall table width doesn't match\linewidth, 2) the first column is formatted in bold and 3) the written out acronyms still don't start with an uppercase letter. – exocore May 01 '23 at 14:07lof, as far aslist-capsyou want sentence casing (so typically\Acl) rather than title casing right? – Dai Bowen May 02 '23 at 18:49\acsetup{templates/colspec = p{0.15\linewidth}p{.819\linewidth}}and adding\setlength\LTleft{-0.45em}. The values are from my original document template, so they might not match perfect for the minimal example. Unfortunately I'm failing with the uppercasing so far. The intended behavior is indeed only to have a capital first letter as in\Acl. However, adding something like>{\expandafter\MakeUppercase}to the second column doesn't work as Latex adds a\noindentat the beginning of the cell content. – exocore May 02 '23 at 21:05