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.

If name and plural haven’t been specified, use same as the parent<br />

1231 \ifx\@glo@plural\@glsdefaultplural<br />

1232 \expandafter\let\expandafter\@glo@plural<br />

1233 \csname glo@\@glo@parent @plural\endcsname<br />

1234 \fi<br />

1235 \fi<br />

1236 }%<br />

1237 {%<br />

Parent doesn’t exist, so issue an error message and change this entry <strong>to</strong> have no<br />

parent<br />

1238 \<strong>Package</strong>Error{<strong>glossaries</strong>}%<br />

1239 {%<br />

1240 Invalid parent ‘\@glo@parent’<br />

1241 for entry ‘#1’ - parent doesn’t exist%<br />

1242 }%<br />

1243 {%<br />

1244 Parent entries must be defined before their children%<br />

1245 }%<br />

1246 \def\@glo@parent{}%<br />

1247 \expandafter\gdef\csname glo@#1@parent\endcsname{}%<br />

1248 }%<br />

1249 }%<br />

1250 \fi<br />

Set the level for this entry<br />

1251 \expandafter\xdef\csname glo@#1@level\endcsname{\number\gls@level}%<br />

Check if first and firstplural have been use. If firstplural hasn’t been specified,<br />

but first has been specified, then form firstplural by appending \glspluralsuffix<br />

<strong>to</strong> value of first key, otherwise obtain the value from the plural key. This now<br />

uses \ifx instead of \if <strong>to</strong> avoid expansion issues. (Thanks <strong>to</strong> Ulrich Diez for<br />

suggesting this.)<br />

1252 \ifx\relax\@glo@firstplural<br />

1253 \ifx\relax\@glo@first<br />

1254 \def\@glo@firstplural{\@glo@plural}%<br />

1255 \def\@glo@first{\@glo@text}%<br />

1256 \else<br />

1257 \def\@glo@firstplural{\@glo@first\glspluralsuffix}%<br />

1258 \fi<br />

1259 \else<br />

1260 \ifx\relax\@glo@first<br />

1261 \def\@glo@first{\@glo@text}%<br />

1262 \fi<br />

1263 \fi<br />

Define commands associated with this entry:<br />

1264 \expandafter<br />

1265 \protected@xdef\csname glo@#1@text\endcsname{\@glo@text}%<br />

1266 \expandafter<br />

50

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

Saved successfully!

Ooh no, something went wrong!