Quantcast
Channel: Active questions tagged uppercase - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 71

Properly using glossary/acronyms entries in uppercased section headers

$
0
0

I am struggling to find a solution to changing the section heading of a report document to the upper case while using the \glsfmt* commands of the glossaries-extra package and avoiding the issue where the command also affects the labels. I am using the secsty package and a minimal example of my setup follows:

\documentclass[12pt,a4paper]{report}    \usepackage[%        toc=false,        sort=standard,        acronyms,        nopostdot,        nonumberlist,        nogroupskip    ]{glossaries-extra}    \usepackage{sectsty}        \sectionfont{\normalsize\bfseries\MakeUppercase}        \subsectionfont{\normalsize\bfseries}        \subsubsectionfont{\normalsize\bfseries\itshape}    \newacronym{tt}{TT}{Test}\begin{document}    \chapter{Test with \glsfmtshortpl{tt}}    \section{Test with \glsfmtshortpl{tt}}    \subsection{Test with}    \subsubsection{Test with}\end{document}

When running that here (using TeX Live 2019/Debian) I get the error:

Package glossaries-extra Error: Glossary entry `TT' has not been defined.

I already tested the titlesec package, and used the \MakeTextUppercase command from the textcase package, but the error still persists. I found some answers explaining the issue behind it, but, as far as I could understand, the new commands provided by glossaries-extra specifically to be used in section headers should be protected against that. Is that correct or should I try to modify the \gls* commands to avoid the error? Alternatively, could the section heading be modified to upper case in a way to avoid it?

Thanks in advance!Iago


Viewing all articles
Browse latest Browse all 71

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>