summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty')
-rw-r--r--Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty202
1 files changed, 106 insertions, 96 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty b/Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty
index 9cf3a012605..0adfcefdc38 100644
--- a/Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty
+++ b/Master/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty
@@ -7,7 +7,7 @@
%% glossaries.dtx (with options: `glossary-long.sty,package')
%%
%% glossaries.dtx
-%% Copyright 2008 Nicola Talbot
+%% Copyright 2009 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -38,128 +38,138 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-\ProvidesPackage{glossary-long}[2008/12/11 v1.02 (NLCT)]
+\ProvidesPackage{glossary-long}[2009/01/14 v1.03 (NLCT)]
\RequirePackage{longtable}
-\newlength\glsdescwidth
-\newlength\glspagelistwidth
-\setlength{\glsdescwidth}{0.6\linewidth}
-\setlength{\glspagelistwidth}{0.1\linewidth}
+\@ifundefined{glsdescwidth}{%
+ \newlength\glsdescwidth
+ \setlength{\glsdescwidth}{0.6\linewidth}
+}{}
+\@ifundefined{glspagelistwidth}{%
+ \newlength\glspagelistwidth
+ \setlength{\glspagelistwidth}{0.1\linewidth}
+}{}
\newglossarystyle{long}{%
-\renewenvironment{theglossary}{\begin{longtable}{lp{\glsdescwidth}}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{}%
-\renewcommand*{\glsgroupheading}[1]{}%
-\renewcommand*{\glossaryentryfield}[5]{%
-\@glstarget{glo:##1}{##2} & ##3\glspostdescription\space ##5\\}%
-\renewcommand*{\glossarysubentryfield}[6]{%
- & \@glstarget{glo:##2}{\strut}##4\glspostdescription\space ##6\\}%
-\renewcommand*{\glsgroupskip}{ & \\}}
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{lp{\glsdescwidth}}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{}%
+ \renewcommand*{\glsgroupheading}[1]{}%
+ \renewcommand*{\glossaryentryfield}[5]{%
+ \glstarget{##1}{##2} & ##3\glspostdescription\space ##5\\}%
+ \renewcommand*{\glossarysubentryfield}[6]{%
+ & \glstarget{##2}{\strut}##4\glspostdescription\space ##6\\}%
+ \renewcommand*{\glsgroupskip}{ & \\}%
+}
\newglossarystyle{longborder}{%
-\glossarystyle{long}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|p{\glsdescwidth}|}}{\end{longtable}}%
-\renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
+ \glossarystyle{long}%
+ \renewenvironment{theglossary}{%
+ \begin{longtable}{|l|p{\glsdescwidth}|}}{\end{longtable}}%
+ \renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
}
\newglossarystyle{longheader}{%
-\glossarystyle{long}%
-\renewcommand*{\glossaryheader}{%
-\bfseries \entryname & \bfseries \descriptionname\\
-\endhead}}
+ \glossarystyle{long}%
+ \renewcommand*{\glossaryheader}{%
+ \bfseries \entryname & \bfseries \descriptionname\\\endhead}%
+}
\newglossarystyle{longheaderborder}{%
-\glossarystyle{longborder}%
-\renewcommand*{\glossaryheader}{%
-\hline\bfseries \entryname & \bfseries \descriptionname\\\hline
-\endhead
-\hline\endfoot}}
+ \glossarystyle{longborder}%
+ \renewcommand*{\glossaryheader}{%
+ \hline\bfseries \entryname & \bfseries \descriptionname\\\hline
+ \endhead
+ \hline\endfoot}%
+}
\newglossarystyle{long3col}{%
-\renewenvironment{theglossary}{\begin{longtable}{lp{\glsdescwidth}p{\glspagelistwidth}}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{}%
-\renewcommand*{\glsgroupheading}[1]{}%
-\renewcommand*{\glossaryentryfield}[5]{%
-\@glstarget{glo:##1}{##2} & ##3 & ##5\\}%
-\renewcommand*{\glossarysubentryfield}[6]{%
- & \@glstarget{glo:##2}{\strut}##4 & ##6\\}%
-\renewcommand*{\glsgroupskip}{ & &\\}}
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{lp{\glsdescwidth}p{\glspagelistwidth}}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{}%
+ \renewcommand*{\glsgroupheading}[1]{}%
+ \renewcommand*{\glossaryentryfield}[5]{%
+ \glstarget{##1}{##2} & ##3 & ##5\\}%
+ \renewcommand*{\glossarysubentryfield}[6]{%
+ & \glstarget{##2}{\strut}##4 & ##6\\}%
+ \renewcommand*{\glsgroupskip}{ & &\\}%
+}
\newglossarystyle{long3colborder}{%
-\glossarystyle{long3col}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
+ \glossarystyle{long3col}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
}
\newglossarystyle{long3colheader}{%
-\glossarystyle{long3col}%
-\renewcommand*{\glossaryheader}{%
-\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\pagelistname\\\endhead}%
+ \glossarystyle{long3col}%
+ \renewcommand*{\glossaryheader}{%
+ \bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\pagelistname\\\endhead}%
}
\newglossarystyle{long3colheaderborder}{%
-\glossarystyle{long3colborder}%
-\renewcommand*{\glossaryheader}{%
-\hline
-\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\pagelistname\\\hline\endhead
-\hline\endfoot}%
+ \glossarystyle{long3colborder}%
+ \renewcommand*{\glossaryheader}{%
+ \hline
+ \bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\pagelistname\\\hline\endhead
+ \hline\endfoot}%
}
\newglossarystyle{long4col}{%
-\renewenvironment{theglossary}{%
-\begin{longtable}{llll}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{}%
-\renewcommand*{\glsgroupheading}[1]{}%
-\renewcommand*{\glossaryentryfield}[5]{%
-\@glstarget{glo:##1}{##2} & ##3 & ##4 & ##5\\}%
-\renewcommand*{\glossarysubentryfield}[6]{%
- & \@glstarget{glo:##2}{\strut}##4 & ##5 & ##6\\}%
-\renewcommand*{\glsgroupskip}{ & & &\\}}
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{llll}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{}%
+ \renewcommand*{\glsgroupheading}[1]{}%
+ \renewcommand*{\glossaryentryfield}[5]{%
+ \glstarget{##1}{##2} & ##3 & ##4 & ##5\\}%
+ \renewcommand*{\glossarysubentryfield}[6]{%
+ & \glstarget{##2}{\strut}##4 & ##5 & ##6\\}%
+ \renewcommand*{\glsgroupskip}{ & & &\\}%
+}
\newglossarystyle{long4colheader}{%
-\glossarystyle{long4col}%
-\renewcommand*{\glossaryheader}{%
-\bfseries\entryname&\bfseries\descriptionname&
-\bfseries \symbolname&
-\bfseries\pagelistname\\\endhead}%
+ \glossarystyle{long4col}%
+ \renewcommand*{\glossaryheader}{%
+ \bfseries\entryname&\bfseries\descriptionname&
+ \bfseries \symbolname&
+ \bfseries\pagelistname\\\endhead}%
}
\newglossarystyle{long4colborder}{%
-\glossarystyle{long4col}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|l|l|l|}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
+ \glossarystyle{long4col}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{|l|l|l|l|}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{\hline\endhead\hline\endfoot}%
}
\newglossarystyle{long4colheaderborder}{%
-\glossarystyle{long4col}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|l|l|l|}}{%
-\end{longtable}}%
-\renewcommand*{\glossaryheader}{%
-\hline\bfseries\entryname&\bfseries\descriptionname&
-\bfseries \symbolname&
-\bfseries\pagelistname\\\hline\endhead\hline\endfoot}%
+ \glossarystyle{long4col}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{|l|l|l|l|}}%
+ {\end{longtable}}%
+ \renewcommand*{\glossaryheader}{%
+ \hline\bfseries\entryname&\bfseries\descriptionname&
+ \bfseries \symbolname&
+ \bfseries\pagelistname\\\hline\endhead\hline\endfoot}%
}
\newglossarystyle{altlong4col}{%
-\glossarystyle{long4col}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{lp{\glsdescwidth}lp{\glspagelistwidth}}}{%
-\end{longtable}}%
+ \glossarystyle{long4col}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{lp{\glsdescwidth}lp{\glspagelistwidth}}}%
+ {\end{longtable}}%
}
\newglossarystyle{altlong4colheader}{%
-\glossarystyle{long4colheader}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{lp{\glsdescwidth}lp{\glspagelistwidth}}}{%
-\end{longtable}}%
+ \glossarystyle{long4colheader}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{lp{\glsdescwidth}lp{\glspagelistwidth}}}%
+ {\end{longtable}}%
}
\newglossarystyle{altlong4colborder}{%
-\glossarystyle{long4colborder}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|p{\glsdescwidth}|l|p{\glspagewidthlist}|}}{%
-\end{longtable}}%
+ \glossarystyle{long4colborder}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}%
+ {\end{longtable}}%
}
\newglossarystyle{altlong4colheaderborder}{%
-\glossarystyle{long4colheaderborder}%
-\renewenvironment{theglossary}{%
-\begin{longtable}{|l|p{\glsdescwidth}|l|p{\glspagewidthlist}|}}{%
-\end{longtable}}%
+ \glossarystyle{long4colheaderborder}%
+ \renewenvironment{theglossary}%
+ {\begin{longtable}{|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}%
+ {\end{longtable}}%
}
\endinput
%%