I use the glossaries
package and when I print the acronyms using \printglossary[type=\acronymtype,title={List of Abbreviations}]
, part of the output I get is as shown below.
I have specified acronyms in a separate file as follows:
\newacronym{brdf}{BRDF}{bidirectional reflectance distribution function}
\newacronym{cnn}{CNN}{convolutional neural network}
\newacronym{awgn}{AWGN}{additive white Gaussian noise}
Is there a way to capitalize first letter of all words in the list of acronyms ONLY, when printing? (And have them in lower-case in the text)
Edit:
example
\documentclass[a4paper,oneside,12pt]{report}
% Abbreviations
\usepackage[acronym,style=super,nogroupskip,nonumberlist,toc]{glossaries}
\loadglsentries{def_abr} % file with acronyms
\makeglossaries
\begin{document}
% abstract, toc, list of figures here
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\printglossary[type=\acronymtype,title={List of Abbreviations}]
\chapter*{Example Usage}
\gls{brdf}, \gls{awgn}, \gls{psnr}, \gls{cnn}
% chapters
\end{document}
def_abr.tex file:
\newacronym{brdf}{BRDF}{bidirectional reflectance distribution function}
\newacronym{cnn}{CNN}{convolutional neural network}
\newacronym{psnr}{PSNR}{peak-signal-to-noise ratio}
\newacronym{snr}{SNR}{signal to noise ratio}
\newacronym{awgn}{AWGN}{additive white Gaussian noise}
Best Answer
Here's an alternative approach that uses
glossaries-extra
(an extension to theglossaries
package):(I've omitted the
toc
option as it's the default forglossaries-extra
).This produces on page 1:
and page 2:
The
glossaries
package automatically loadsmfirstuc
(which was originally developed as part of theglossaries
package). Thetitle
attribute uses\capitalisewords
to convert the case. You can control whether or not to capitalise the hyphenated parts of words using\MFUhyphentrue
and\MFUhyphenfalse
. The default is the false setting, which is why the above has "Peak-signal-to-noise".The following switches it on:
This produces:
To prevent words like "to" from being changed use the
mfirstuc-english
package or set up exceptions with\MFUnocap
(for example,\MFUnocap{to}
).