## LaTeX forum ⇒ General ⇒ Capitalize first letter of names in Glossaries list

LaTeX specific issues not fitting into one of the other forums of this category.
stinkinrich88
Posts: 52
Joined: Sat Jun 07, 2008 11:56 am

### Capitalize first letter of names in Glossaries list

Hello,

I'm using the glossaries package. It prints my glossary at the end of the document, but all the entry names are in lowercase. I'd like to know how I can make the first letter of each entry name in the glossary uppercase. The same for the list of acronyms would also be appreciated.

Note: I don't want to know how to make the first letter uppercase in the text (I know about \Gls instead of \gls), only in the glossary list at the end.

Thanks,

Rich
Last edited by stinkinrich88 on Thu Sep 02, 2010 7:47 pm, edited 1 time in total.

stinkinrich88
Posts: 52
Joined: Sat Jun 07, 2008 11:56 am
Of course, I've tried the following code in my preamble:

\renewcommand{\glsnamefont}[1]{\makefirstuc{#1}}


Regards
Nicola Talbot

stinkinrich88
Posts: 52
Joined: Sat Jun 07, 2008 11:56 am
Ace! Thanks a lot. I really enjoy your Glossaries package

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
Now that the problem is solved, please be so kind and mark the topic accordingly as described in Section 3 of the Board Rules. You are not new to the forum so by now you should know that.

Best regards
Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

omrik
Posts: 1
Joined: Mon May 13, 2019 11:12 am
I'm trying to do something slightly different.

I would like to define the acronym in the text using lowercase letters as follows:
sample acronym (SA)
degrees of freedom (DOF)
While recurrences will be displayed as:
SA
DOF

but, at the acronyms list, I would like it to appear with uppercase letters as:
SA - Sample Acronym
DOF - Degrees of Freedom

Using your code with the following slight changes, I can't get it right:

\documentclass{article}\usepackage[acronym]{glossaries} \makeglossaries \newglossaryentry{sample}{name=sample,description=a sample entry} \newacronym{sa}{SA}{Sample Acronym} \newacronym{dof}{DOF}{Degrees of Freedom} \begin{document} This is a \gls{sample}. And this is a \gls{sa} while another one will be \gls{dof}.Recurrences are \gls{sa} and \gls{dof}. \renewcommand{\glsnamefont}[1]{\makefirstuc{#1}}\printglossary \printglossary[type=acronym,style = super]\end{document}

Help will be appreciated.