Graphics, Figures & TablesList of acronyms changing font

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pikachu
Posts: 4
Joined: Sun Nov 22, 2009 11:27 pm

List of acronyms changing font

Post by pikachu »

Hi, I'm using the Acronym package.

To fit the width of my acronym column I use the longest acronym as an option.

Code: Select all

\begin{acronym}[HRTEM]
\acro{hf}[HF]{Hydrofluoric Acid}
\acro{hopg}[HOPG]{Highly Oriented Pyrolytic Graphite}
\acro{hrtem}[HRTEM]{High Resolution TEM}
\end{acronym}
This changes the font of the acronyms from roman to sans in the list of acronyms (and only in the list). I don't understand much of the coding language, but I looked in the manual and found the code that modify the column width. I can spot the \textsf, but is this the reason for sans-font in my list? If yes, how do i change it back to roman?

Code: Select all

 \def\bflabel#1{{\textbf{\textsf{#1}}\hfill}}
 \newenvironment{AC@deflist}[1]%
 {\ifAC@nolist%
 \else%
 \raggedright\begin{list}{}%
 {\settowidth{\labelwidth}{\textbf{\textsf{#1}}}%
 \setlength{\leftmargin}{\labelwidth}%
 \addtolength{\leftmargin}{\labelsep}%
 \renewcommand{\makelabel}{\bflabel}}%
 \fi}%
 {\ifAC@nolist%
 \else%
 \end{list}%
 \fi}%

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

List of acronyms changing font

Post by localghost »

Just put one simple line into your preamble.

Code: Select all

\renewcommand{\bflabel}[1]{{\textbf{#1}\hfill}}
You can read something about font styles to remove your doubts.


Best regards
Thorsten¹
Post Reply