GeneralGlossaries: format 1st entry different from subsequent ones?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
danol
Posts: 7
Joined: Mon Sep 27, 2010 5:30 pm

Glossaries: format 1st entry different from subsequent ones?

Post by danol »

Hello,

I'm using the glossaries package:

http://www.tex.ac.uk/tex-archive/macros ... begin.html
http://www.tex.ac.uk/tex-archive/macros ... anual.html

I see that I can change the format of all entries with e.g.

Code: Select all

\renewcommand{\glstextformat}[1]{\textbf{#1}}  
- for bold entries. Question: I want the first entry in bold, and subsequent entries formated as normal. Does anyone happen to know a way I can do this? I can't find an option for altering the format of the two separately.

Thanks,

Dan
Last edited by cgnieder on Sat Feb 09, 2013 9:43 pm, edited 1 time in total.

Recommended reading 2024:

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

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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Glossaries: format 1st entry different from subsequent ones?

Post by nlct »

You could try redefining \glsdisplayfirst:

Code: Select all

\documentclass{article}

\usepackage{glossaries}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\renewcommand*{\glsdisplayfirst}[4]{\textbf{#1#4}}

\begin{document}

First: \gls{sample}. Next: \gls{sample}.

\printglossaries

\end{document}
Regards
Nicola Talbot
Post Reply