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.

\acronymtype<br />

197 \newcommand*{\acronymtype}{\glsdefaulttype}<br />

The nomain option suppress the creation of the main glossary.<br />

198 \DeclareOptionX{nomain}{%<br />

199 \let\glsdefaulttype\relax<br />

200 \renewcommand*{\glsdefmain}{}%<br />

201 }<br />

acronym The acronym option sets an associated conditional which is used in subsection<br />

1.16 <strong>to</strong> determine whether or not <strong>to</strong> define a separate glossary for<br />

acronyms.<br />

202 \define@boolkey{<strong>glossaries</strong>.<strong>sty</strong>}[gls]{acronym}[true]{%<br />

203 \DeclareAcronymList{acronym}%<br />

204 }<br />

\@glsacronymlists Comma-separated list of glossary labels indicating which <strong>glossaries</strong> contain<br />

acronyms. Note that \SetAcronymStyle must be used after adding labels <strong>to</strong><br />

this macro.<br />

@add<strong>to</strong>acronynlists<br />

205 \newcommand*{\@glsacronymlists}{}<br />

206 \newcommand*{\@add<strong>to</strong>acronymlists}[1]{%<br />

207 \ifx\@glsacronymlists\@empty<br />

208 \protected@xdef\@glsacronymlists{#1}%<br />

209 \else<br />

210 \protected@xdef\@glsacronymlists{\@glsacronymlists,#1}%<br />

211 \fi<br />

212 }<br />

DeclareAcronymList Identifies the named glossary as a list of acronyms and adds <strong>to</strong> the list.<br />

(Doesn’t check if the glossary exists, but checks if label already in list. Use<br />

\SetAcronymStyle after identifying all the acronym lists.)<br />

213 \newcommand*{\DeclareAcronymList}[1]{%<br />

214 \glsIfListOfAcronyms{#1}{}{\@add<strong>to</strong>acronymlists{#1}}%<br />

215 }<br />

lsIfListOfAcronyms \glsIfListOfAcronyms{〈label〉}{〈true part〉}{〈false part〉}<br />

Determines if the glossary with the given label has been identified as being a<br />

list of acronyms.<br />

216 \newcommand{\glsIfListOfAcronyms}[1]{%<br />

217 \edef\@do@gls@islis<strong>to</strong>facronyms{%<br />

218 \noexpand\@gls@islis<strong>to</strong>facronyms{#1}{\@glsacronymlists}}%<br />

219 \@do@gls@islis<strong>to</strong>facronyms<br />

220 }<br />

12

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

Saved successfully!

Ooh no, something went wrong!