LaTeX forum ⇒ 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).
trimtab
Posts: 2
Joined: Mon Sep 26, 2011 6:18 pm

glossaries | Cross-references without Number Lists

Postby trimtab » Mon Sep 26, 2011 6:41 pm

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.

Tags:

User avatar
nlct
Posts: 275
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Tue Sep 27, 2011 9:28 am

The easiest way is to move the cross-reference part into the description. For example:
  1. \documentclass{article}
  2.  
  3. \usepackage[nonumberlist]{glossaries}
  4.  
  5. \makeglossaries
  6.  
  7. \newglossaryentry{sample1}{name=sample 1,description={An example}}
  8. \newglossaryentry{sample2}{name=sample 2,description={An example}}
  9. \newglossaryentry{sample3}{name=sample 3,description={An
  10. example, \glsseeformat{sample2}{}}}
  11.  
  12. \begin{document}
  13. \gls{sample1}, \gls{sample2}, \gls{sample3}.
  14.  
  15. \printglossaries
  16. \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

Postby trimtab » Wed Sep 28, 2011 11:39 pm

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: 275
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Fri Sep 30, 2011 9:22 am

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

  1. \renewcommand*{\glspostdescription}{}


Regards
Nicola Talbot


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 5 guests