Fonts & Character Sets ⇒ Glossaries: abbreviation names in bold
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
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Glossaries: abbreviation names in bold
Try this:
Stefan
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
Stefan
LaTeX.org admin
Glossaries: abbreviation names in bold
I added the code. But, it did not work. The issue remained same.
THe code is:
THe code is:
Code, edit and compile here:
% 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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Glossaries: abbreviation names in bold
Put
Stefan
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
before \printglossary
, not afterwards.Stefan
LaTeX.org admin
Glossaries: abbreviation names in bold
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.
Code, edit and compile here:
% 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 13485 times
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Glossaries: abbreviation names in bold
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
Code: Select all
Code, edit and compile here:
\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}
Stefan
LaTeX.org admin
Glossaries: abbreviation names in bold
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:
Code, edit and compile here:
% 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 13459 times
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Glossaries: abbreviation names in bold
You could choose some of the tabular styles (longtable), see the
glossaries manual, 15.1 Predefined Styles.
Stefan

Stefan
LaTeX.org admin
Glossaries: abbreviation names in bold
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,
Glossaries: abbreviation names in bold
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/ ... es-styles/
Regards
Nicola Talbot
style
package option. For example:
Code: Select all
\usepackage[style=long]{glossaries}
\printglossary
. For example:
Code: Select all
\printglossary[title=List of Abbreviations,type=\acronymtype,style=long]
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/