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
LaTeX forum ⇒ Fonts & Character Sets ⇒ Glossaries: abbreviation names in bold
- Stefan Kottwitz
- Site Admin
- Posts: 9522
- Joined: Mon Mar 10, 2008 9:44 pm
Try this:
Stefan
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
Stefan
Site admin
I added the code. But, it did not work. The issue remained same.
THe code is:
THe code is:
% List of Abbreviations \cleardoublepage \renewcommand{\glossarysection}[2][]{\chapter*{#1}} \markboth{List of Abbrevations}{List of Abbrevations} \addcontentsline{toc}{chapter}{List of Abbrevations} \printglossary[title=List of Abbreviations,type=\acronymtype] \renewcommand{\glsnamefont}[1]{\makefirstuc{#1}} \renewcommand{\glsnamefont}[1]{\textbf{#1}}
- Stefan Kottwitz
- Site Admin
- Posts: 9522
- Joined: Mon Mar 10, 2008 9:44 pm
Put
Stefan
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
before \printglossary
, not afterwards.Stefan
Site admin
I tried this way also. It did not work.
Code is given below and screen shot is attached.
Code is given below and screen shot is attached.
% List of Abbreviations \cleardoublepage \renewcommand{\glossarysection}[2][]{\chapter*{#1}} \markboth{List of Abbrevations}{List of Abbrevations} \addcontentsline{toc}{chapter}{List of Abbrevations} \renewcommand{\glsnamefont}[1]{\textbf{#1}} \printglossary[title=List of Abbreviations,type=\acronymtype] \renewcommand{\glsnamefont}[1]{\makefirstuc{#1}}
- Attachments
-
- abbreBOLD.png (168.17 KiB) Viewed 2802 times
- Stefan Kottwitz
- Site Admin
- Posts: 9522
- 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
\documentclass{report} \usepackage{glossaries} \newglossaryentry{test}{name=test, description={This is a test}} \makeglossaries \begin{document} This is a \gls{test}. \renewcommand{\glossarysection}[2][]{\chapter*{#1}} \renewcommand{\glsnamefont}[1]{\makefirstuc{\textbf{#1}}} \printglossary[title=List of Abbreviations,type=\acronymtype] \end{document}
Check your settings what is different. I see your names are written in italic shape (and uppercase) - where do you set this?
Stefan
Site admin
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:
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:
% List of Abbreviations \cleardoublepage \renewcommand{\glossarysection}[2][]{\chapter*{#1}} \markboth{List of Abbrevations}{List of Abbrevations} \addcontentsline{toc}{chapter}{List of Abbrevations} \renewcommand{\glsnamefont}[1]{\textbf{#1}} \printglossary[title=List of Abbreviations,type=\acronymtype] \renewcommand{\glsnamefont}[1]{\makefirstuc{#1}} \clearpage \pagenumbering{arabic} \chapter{Introduction to solar PV systems and Dynamic PV arrays} \section{Introduction}
- Attachments
-
- abbreviationsLISTinLINE.png (74.99 KiB) Viewed 2776 times
- Stefan Kottwitz
- Site Admin
- Posts: 9522
- 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

Stefan
Site admin
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,
The glossary style can be set globally using the
or you can set it locally within the optional argument of
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
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
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Return to “Fonts & Character Sets”
Who is online
Users browsing this forum: Majestic-12 [Bot] and 0 guests