# [OS X TeX] Creating a glossar

Tue Jan 16 20:19:08 CET 2007

Christian Burk wrote:
[]
> Thant's what I did - reading the manual of the glossary.sty, but
> unforunately I could not discover how this could work.

Here is what works for me:

In the main tex file Foo.tex, there is an abbreviation

\newcommand{\UGE}[2]{\useGlosentry{#1}{\Mg#2}}

where \Mg is a self-defined color command that makes (during draft
stage) those symbols stick out that have a glossary entry.

Then, in the text, there are things like

Let \UGE{SlambdaovK}{$\overline{S}^\lambda_m(K)$} be the subspace of...

The name SlambdaovK is arbitrarily chosen, and it corresponds to an
entry in the file gloglo.tex:

\storeglosentry{SlambdaovK}{
name=\ensuremath{\overline{S}^\lambda_m(K)},
description=Space of homogeneous functions of degree $\lambda$
on the cone $K$,
sort=T003}

The sort key corresponds to an organization of the glossary in sections.

In the main Foo.tex, there are the lines (not consecutively, some at the
beginning, some at the end)

\renewcommand{\glossaryname}{Index of Notations}
\renewcommand{\gloskip}{\\[-1.0ex]}
\makeglossary
\input gloglo.tex
\printglossary

Finally, after several latex runs, the script makeglos.pl is run as
"makeglos.pl Foo", and another latex run produces the glossary.

I don't remember where I found the script makeglos.pl. Its header says

#!/usr/bin/perl

# File    : makeglos
# Author  : Nicola Talbot
# Version : 1.5 (2006/07/20)
# Description: simple Perl script that calls makeindex.
# Intended for use with "glossary.sty" (saves having to remember
# all the various switches)

--
Martin
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9244638681411743, "perplexity": 10073.575173901743}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-06/segments/1422115862441.40/warc/CC-MAIN-20150124161102-00140-ip-10-180-212-252.ec2.internal.warc.gz"}