summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty')
-rw-r--r--Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty243
1 files changed, 132 insertions, 111 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty b/Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty
index cf7e19ccdd9..45c35e0d4c6 100644
--- a/Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty
+++ b/Master/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty
@@ -7,7 +7,7 @@
%% glossaries.dtx (with options: `glossary-super.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,145 +38,166 @@
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
-\ProvidesPackage{glossary-super}[2008/12/11 v1.02 (NLCT)]
+\ProvidesPackage{glossary-super}[2009/01/14 v1.03 (NLCT)]
\RequirePackage{supertabular}
+\@ifundefined{glsdescwidth}{%
+ \newlength\glsdescwidth
+ \setlength{\glsdescwidth}{0.6\linewidth}
+}{}
+\@ifundefined{glspagelistwidth}{%
+ \newlength\glspagelistwidth
+ \setlength{\glspagelistwidth}{0.1\linewidth}
+}{}
\newglossarystyle{super}{%
-\renewenvironment{theglossary}{%
-\tablehead{}\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}}}{%
-\end{supertabular}}%
-\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}%
+ {\tablehead{}\tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}}}%
+ {\end{supertabular}}%
+ \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{superborder}{%
-\glossarystyle{super}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline}\tabletail{\hline}%
-\begin{supertabular}{|l|p{\glsdescwidth}|}}{\end{supertabular}}%
+ \glossarystyle{super}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline}\tabletail{\hline}%
+ \begin{supertabular}{|l|p{\glsdescwidth}|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{superheader}{%
-\glossarystyle{super}%
-\renewenvironment{theglossary}{%
-\tablehead{\bfseries \entryname & \bfseries \descriptionname\\}%
-\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}}}{\end{supertabular}}%
+ \glossarystyle{super}%
+\renewenvironment{theglossary}%
+ {\tablehead{\bfseries \entryname & \bfseries \descriptionname\\}%
+ \tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}}}%
+ {\end{supertabular}}%
}
\newglossarystyle{superheaderborder}{%
-\glossarystyle{super}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline\bfseries \entryname & \bfseries \descriptionname\\\hline}%
-\tabletail{\hline}
-\begin{supertabular}{|l|p{\glsdescwidth}|}}{\end{supertabular}}%
+ \glossarystyle{super}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline\bfseries \entryname &
+ \bfseries \descriptionname\\\hline}%
+ \tabletail{\hline}
+ \begin{supertabular}{|l|p{\glsdescwidth}|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super3col}{%
-\renewenvironment{theglossary}{%
-\tablehead{}\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}p{\glspagelistwidth}}}{%
-\end{supertabular}}%
-\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}%
+ {\tablehead{}\tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}p{\glspagelistwidth}}}%
+ {\end{supertabular}}%
+ \renewcommand*{\glossaryheader}{}%
+ \renewcommand*{\glsgroupheading}[1]{}%
+ \renewcommand*{\glossaryentryfield}[5]{%
+ \glstarget{##1}{##2} & ##3 & ##5\\}%
+ \renewcommand*{\glossarysubentryfield}[6]{%
+ & \glstarget{##2}{\strut}##4 & ##6\\}%
+ \renewcommand*{\glsgroupskip}{ & &\\}%
+}
\newglossarystyle{super3colborder}{%
-\glossarystyle{super3col}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline}\tabletail{\hline}%
-\begin{supertabular}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}{%
-\end{supertabular}}%
+ \glossarystyle{super3col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline}\tabletail{\hline}%
+ \begin{supertabular}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super3colheader}{%
-\glossarystyle{super3col}%
-\renewenvironment{theglossary}{%
-\tablehead{\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\pagelistname\\}\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}p{\glspagelistwidth}}}{%
-\end{supertabular}}%
+ \glossarystyle{super3col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\pagelistname\\}\tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}p{\glspagelistwidth}}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super3colheaderborder}{%
-\glossarystyle{super3colborder}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline
-\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\pagelistname\\\hline}%
-\tabletail{\hline}%
-\begin{supertabular}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}{%
-\end{supertabular}}%
+ \glossarystyle{super3colborder}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline
+ \bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\pagelistname\\\hline}%
+ \tabletail{\hline}%
+ \begin{supertabular}{|l|p{\glsdescwidth}|p{\glspagelistwidth}|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super4col}{%
-\renewenvironment{theglossary}{%
-\tablehead{}\tabletail{}%
-\begin{supertabular}{llll}}{%
-\end{supertabular}}%
-\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}%
+ {\tablehead{}\tabletail{}%
+ \begin{supertabular}{llll}}{%
+ \end{supertabular}}%
+ \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{super4colheader}{%
-\glossarystyle{super4col}%
-\renewenvironment{theglossary}{%
-\tablehead{\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\symbolname &
-\bfseries\pagelistname\\}\tabletail{}%
-\begin{supertabular}{llll}}{%
-\end{supertabular}}%
+ \glossarystyle{super4col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\symbolname &
+ \bfseries\pagelistname\\}%
+ \tabletail{}%
+ \begin{supertabular}{llll}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super4colborder}{%
-\glossarystyle{super4col}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline}\tabletail{\hline}%
-\begin{supertabular}{|l|l|l|l|}}{%
-\end{supertabular}}%
+ \glossarystyle{super4col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline}\tabletail{\hline}%
+ \begin{supertabular}{|l|l|l|l|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{super4colheaderborder}{%
-\glossarystyle{super4col}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\symbolname &
-\bfseries\pagelistname\\}\tabletail{\hline}%
-\begin{supertabular}{|l|l|l|l|}}{%
-\end{supertabular}}%
+ \glossarystyle{super4col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline\bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\symbolname &
+ \bfseries\pagelistname\\\hline}\tabletail{\hline}%
+ \begin{supertabular}{|l|l|l|l|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{altsuper4col}{%
-\glossarystyle{super4col}%
-\renewenvironment{theglossary}{%
-\tablehead{}\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}lp{\glspagelistwidth}}}{%
-\end{supertabular}}%
+ \glossarystyle{super4col}%
+ \renewenvironment{theglossary}%
+ {\tablehead{}\tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}lp{\glspagelistwidth}}}%
+ {\end{supertabular}}%
}
\newglossarystyle{altsuper4colheader}{%
-\glossarystyle{super4colheader}%
-\renewenvironment{theglossary}{%
-\tablehead{\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\symbolname &
-\bfseries\pagelistname\\}\tabletail{}%
-\begin{supertabular}{lp{\glsdescwidth}lp{\glspagelistwidth}}}{%
-\end{supertabular}}%
+ \glossarystyle{super4colheader}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\bfseries\entryname&\bfseries\descriptionname&
+ \bfseries\symbolname &
+ \bfseries\pagelistname\\}\tabletail{}%
+ \begin{supertabular}{lp{\glsdescwidth}lp{\glspagelistwidth}}}%
+ {\end{supertabular}}%
}
\newglossarystyle{altsuper4colborder}{%
-\glossarystyle{super4colborder}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline}\tabletail{\hline}%
-\begin{supertabular}{|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}{%
-\end{supertabular}}%
+ \glossarystyle{super4colborder}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline}\tabletail{\hline}%
+ \begin{supertabular}%
+ {|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}%
+ {\end{supertabular}}%
}
\newglossarystyle{altsuper4colheaderborder}{%
-\glossarystyle{super4colheaderborder}%
-\renewenvironment{theglossary}{%
-\tablehead{\hline\bfseries\entryname&\bfseries\descriptionname&
-\bfseries\symbolname &
-\bfseries\pagelistname\\}\tabletail{\hline}%
-\begin{supertabular}{|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}{%
-\end{supertabular}}%
+ \glossarystyle{super4colheaderborder}%
+ \renewenvironment{theglossary}%
+ {\tablehead{\hline
+ \bfseries\entryname &
+ \bfseries\descriptionname &
+ \bfseries\symbolname &
+ \bfseries\pagelistname\\\hline}%
+ \tabletail{\hline}%
+ \begin{supertabular}%
+ {|l|p{\glsdescwidth}|l|p{\glspagelistwidth}|}}%
+ {\end{supertabular}}%
}
\endinput
%%