General"See also" field in Glossary

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
laurocesar
Posts: 7
Joined: Tue Dec 04, 2012 12:34 pm

"See also" field in Glossary

Post by laurocesar »

Hi guys!

I want to create a glossary with the glossaries package (or maybe other one) that follow those rules:
  1. If an entry A has a field "see also" to B, both A and B should show a reference to each other.
  2. If an entry C has a field "parent = {P}, C should show a reference "child of " P and A should show a reference "parent of" C.
I want something like that:

Code: Select all

\newglossaryentry{A}{
name={name of A},
description={description of A},
SEEALSO_THAT_SHOW_REFERENCES_ON_BOTH={B}
}
\newglossaryentry{B}{
name={name of B},
description={description of B}
}

\newglossaryentry{P}{
name={name of P},
description={description of P},
}
\newglossaryentry{C}{
name={name of C},
description={description of C},
PARENT_THAT_SHOW_REFERENCES_ON_BOTH={P}
}
Could I do it automatically? How?

Thank you!

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

Post Reply