0

I found it hard to produce such a table in ABBREVIATIONS, is there any suggestions? like this enter image description here

user
  • 163
  • 1
  • 6

1 Answers1

2

Although I wouldn't recommend such a caged style for a list of acronyms, here is how you could achieve it using a combination of acro and nicematrix. Side note: This solution will only work properly if your list does not exceed the length of a single page.

enter image description here

\documentclass{article}

\usepackage{nicematrix} \usepackage{acro} \acsetup{use-id-as-short}

\DeclareAcronym{AA}{long = Alpha Acids} \DeclareAcronym{ABV}{long = Alcohol By Volume} \DeclareAcronym{DMS}{long = Dimethyl Sulfide}

\NewAcroTemplate[list]{customtable} { \acronymsmapF { \AcroAddRow{\acrowrite {short}&\acrowrite {list}\} } { \AcroRerun }
\acroheading \acropreamble \par \noindent \begin{NiceTabularX}{\linewidth}{lX}[hvlines, cell-space-limits=3pt] \AcronymTable \end{NiceTabularX} }

\begin{document}

\acuseall

\printacronyms[sort=true, template=customtable]

\end{document}

leandriis
  • 62,593