GeneralGlossary

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Bar
Posts: 5
Joined: Sat Mar 05, 2011 10:35 am

Glossary

Post by Bar »

Hi,

I use glossaries package to display glossary. Its work fine. But I want a rather different display to the default display. I want to add ":" or "-" after glossary entry but not in the main document.
For example.

CCTV Closed-circuit television

I want to display it as:

CCTV: Closed-circuit television or CCTV- Closed-circuit television

But in the main text file CCTV should not appear with-colon (CCTV:)

How can I do it?

If I do the following then the colon also appears in the main document file.
\newglossaryentry{CCTV}{name=CCTV:, description={Closed-circuit television}}

Regards,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Glossary

Post by gmedina »

Hi,

add this to the preamble of your document:

Code: Select all

\renewcommand{\glsnamefont}[1]{#1:}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Bar
Posts: 5
Joined: Sat Mar 05, 2011 10:35 am

Re: Glossary

Post by Bar »

Thanx for this.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Glossary

Post by localghost »

Bar wrote:Thanx for this.
If that solves the problem, then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply