## LaTeX forum ⇒ Fonts & Character Sets ⇒ Glossaries: abbreviation names in bold

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm

### Glossaries: abbreviation names in bold

One more help. Please, observe contents in the List of Abbreviations.
Abbreviation is normal font. But, the first letter of each word is in Bold. So, I want the abbreviations in bold.

Example: the first line is in my PDF is
BOP Best Output Power

But, I want
BOP (some gap here) Best Output Power

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Try this:

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

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
I added the code. But, it did not work. The issue remained same.

THe code is:


Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
Put \renewcommand{\glsnamefont}[1]{\textbf{#1}} before \printglossary, not afterwards.

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
I tried this way also. It did not work.

Code is given below and screen shot is attached.
Attachments
abbreBOLD.png (168.17 KiB) Viewed 1303 times

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
It works for me. Check this complete example:


Check your settings what is different. I see your names are written in italic shape (and uppercase) - where do you set this?

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
I have reinstalled my Textstudio and then executed the same code. It worked.
Please, find the attached screen shot. However, I need one more help: I want all the full abbreviations come in line. Example,

The code for List of Abbreviations is given below:

Attachments
abbreviationsLISTinLINE.png (74.99 KiB) Viewed 1277 times

Stefan Kottwitz
Posts: 9367
Joined: Mon Mar 10, 2008 9:44 pm
You could choose some of the tabular styles (longtable), see the glossaries manual, 15.1 Predefined Styles.

Stefan

Matam
Posts: 29
Joined: Thu Jun 07, 2018 12:12 pm
Thanks for the quick response about the new reference. I have checked the 15.1. They have not given how to use the code or Examples. I am bit poor in understanding those terminology. Could you help me with some code that would be fine. Please,

nlct
Posts: 275
Joined: Thu Nov 06, 2008 11:15 am
The glossary style can be set globally using the style package option. For example:
\usepackage[style=long]{glossaries}

or you can set it locally within the optional argument of \printglossary. For example:
\printglossary[title=List of Abbreviations,type=\acronymtype,style=long]

There's a complete list of all predefined styles, with samples of their appearance, at https://www.dickimaw-books.com/gallery/glossaries-styles/

Regards
Nicola Talbot