15.07.2013 Views

glossaries.sty: LaTeX2e Package to Assist Generating ... - CTAN

glossaries.sty: LaTeX2e Package to Assist Generating ... - CTAN

glossaries.sty: LaTeX2e Package to Assist Generating ... - CTAN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\altnewglossary<br />

\@newglossary<br />

\@gls@setcounter<br />

\@gls@getcounter<br />

1029 \glsdisplayfirst<br />

1030 }%<br />

1031 }%<br />

1032 {}%<br />

Define sort counter if required:<br />

1033 \@gls@defsortcount{#2}%<br />

Find out if the final optional argument has been specified, and use it <strong>to</strong> set<br />

the counter associated with this glossary. (Uses \glscounter if no optional<br />

argument is present.)<br />

1034 \@ifnextchar[{\@gls@setcounter{#2}}%<br />

1035 {\@gls@setcounter{#2}[\glscounter]}}%<br />

1036 }<br />

1037 \newcommand*{\altnewglossary}[3]{%<br />

1038 \newglossary[#2-glg]{#1}{#2-gls}{#2-glo}{#3}%<br />

1039 }<br />

Only define new <strong>glossaries</strong> in the preamble:<br />

1040 \@onlypreamble{\newglossary}<br />

Only define new <strong>glossaries</strong> before \make<strong>glossaries</strong><br />

1041 \@onlypremakeg\newglossary<br />

\@newglossary is used <strong>to</strong> specify the file extensions for the makeindex input,<br />

output and transcript files. It is written <strong>to</strong> the auxiliary file by \newglossary.<br />

Since it is not used by LATEX, \@newglossary simply ignores its arguments.<br />

1042 \newcommand*{\@newglossary}[4]{}<br />

S<strong>to</strong>re counter <strong>to</strong> be used for given glossary type (the first argument is the glossary<br />

label, the second argument is the name of the counter):<br />

1043 \def\@gls@setcounter#1[#2]{%<br />

1044 \expandafter\def\csname @glotype@#1@counter\endcsname{#2}%<br />

Add counter <strong>to</strong> xindy list, if not already added:<br />

1045 \ifglsxindy<br />

1046 \GlsAddXdyCounters{#2}%<br />

1047 \fi<br />

1048 }<br />

Get counter associated with given glossary (the argument is the glossary label):<br />

1049 \newcommand*{\@gls@getcounter}[1]{%<br />

1050 \csname @glotype@#1@counter\endcsname}<br />

42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!