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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

setglossarysection<br />

\@glossarysection<br />

@p@glossarysection<br />

603 \newcommand*{\setglossarysection}[1]{%<br />

604 \setkeys{<strong>glossaries</strong>.<strong>sty</strong>}{section=#1}}<br />

The command \@glossarysection indicates how <strong>to</strong> start the glossary section<br />

if \phan<strong>to</strong>msection is not defined.<br />

605 \newcommand*{\@glossarysection}[2]{%<br />

606 \ifx\@@glossarysecstar\@empty<br />

607 \csname\@@glossarysec\endcsname{#2}%<br />

608 \else<br />

609 \csname\@@glossarysec\endcsname*{#2}%<br />

610 \@gls@<strong>to</strong>c{#1}{\@@glossarysec}%<br />

611 \fi<br />

612 \@@glossaryseclabel}<br />

As \@glossarysection, but put in \phan<strong>to</strong>msection, and swap where<br />

\@gls@<strong>to</strong>c goes. If using chapters do a \clearpage. This ensures that the<br />

hyper link from the table of contents leads <strong>to</strong> the line above the heading, rather<br />

than the line below it.<br />

613 \newcommand*{\@p@glossarysection}[2]{%<br />

614 \glsclearpage<br />

615 \phan<strong>to</strong>msection<br />

616 \ifx\@@glossarysecstar\@empty<br />

617 \csname\@@glossarysec\endcsname{#2}%<br />

618 \else<br />

619 \@gls@<strong>to</strong>c{#1}{\@@glossarysec}%<br />

620 \csname\@@glossarysec\endcsname*{#2}%<br />

621 \fi<br />

622 \@@glossaryseclabel}<br />

\gls@doclearpage The \gls@doclearpage command is used <strong>to</strong> issue a \clearpage (or \cleardoublepage)<br />

depending on whether the glossary sectional unit is a chapter. If the sectional<br />

unit is something else, do nothing.<br />

623 \newcommand*{\gls@doclearpage}{%<br />

624 \ifthenelse{\equal{\@@glossarysec}{chapter}}%<br />

625 {%<br />

626 \ifcsundef{cleardoublepage}%<br />

627 {%<br />

628 \clearpage<br />

629 }%<br />

630 {%<br />

631 \ifcsdef{if@openright}%<br />

632 {%<br />

633 \if@openright<br />

634 \cleardoublepage<br />

28

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

Saved successfully!

Ooh no, something went wrong!