Page Layoutglossaries | Cross-references without Number Lists

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
trimtab
Posts: 2
Joined: Mon Sep 26, 2011 6:18 pm

glossaries | Cross-references without Number Lists

Post by trimtab »

Using the "glossaries" package, is it possible to typeset all glossary entries showing cross-references, but without the number list's page number appearing?

Thanks.

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

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

glossaries | Cross-references without Number Lists

Post by nlct »

The easiest way is to move the cross-reference part into the description. For example:

Code: Select all

\documentclass{article}

\usepackage[nonumberlist]{glossaries}

\makeglossaries

\newglossaryentry{sample1}{name=sample 1,description={An example}}
\newglossaryentry{sample2}{name=sample 2,description={An example}}
\newglossaryentry{sample3}{name=sample 3,description={An 
example, \glsseeformat{sample2}{}}}

\begin{document}
\gls{sample1}, \gls{sample2}, \gls{sample3}.

\printglossaries
\end{document}
(Note that \glsseeformat has a second argument that is always ignored.)

Regards
Nicola Talbot
trimtab
Posts: 2
Joined: Mon Sep 26, 2011 6:18 pm

Re: glossaries | Cross-references without Number Lists

Post by trimtab »

This works well for me. I settled on a format that produces the following two sample outputs:

term1 (See term2).
term2 A short description. (See term2).

I insert a period at the end of my description, just before my cross-reference, and capitalized the see name. This works well in the event a description is not required (as with term1). However, I omit ending the cross-reference with a period (which would be more appropriate, I think) as glossaries adds one automatically at the end of each description. If I did, I'd get

term1 (See term2.).
term2 A short description. (See term2.).

which looks strange. Perhaps there's a way to get rid of the description's trailing punctuation?

Many thanks for your help.
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

glossaries | Cross-references without Number Lists

Post by nlct »

trimtab wrote:Perhaps there's a way to get rid of the description's trailing punctuation?

Code: Select all

\renewcommand*{\glspostdescription}{}
Regards
Nicola Talbot
Post Reply