summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty406
1 files changed, 406 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty b/Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty
new file mode 100644
index 00000000000..5c0dc892177
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bgteubner/hhsubfigure.sty
@@ -0,0 +1,406 @@
+%%
+%% This is file `hhsubfigure.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hhsubfigure.dtx (with options: `package')
+%%
+%% Copyright (C) 2003 Harald Harders.
+%%
+%% This is a slightly modified version of the `subfigure' package by
+%% Steven Douglas Cochran. The origianl package can be downloaded from
+%% <ftp://ftp.dante.de/tex-archive/macros/latex/contrib/subfigure/>.
+%%
+%% This file is NOT the source for hhsubfigure, because almost all comments
+%% have been stripped from it. It is NOT the preferred form of hhsubfigure
+%% for making modifications to it.
+%%
+%% Therefore you can NOT redistribute and/or modify THIS file. You can
+%% however redistribute the complete source (hhsubfigure.dtx and
+%% hhsubfigure.ins) and/or modify it under the terms of the LaTeX Project
+%% Public License, either version 1.2 of this license or (at your option)
+%% any later version. The latest version of this license is in:
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.2 or later is part of all distributions of LaTeX version
+%% 1999/09/03 or later.
+%%
+%% The hhsubfigure package is distributed in the hope that it will be
+%% useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LaTeX
+%% Project Public License for more details.
+%%
+%% Please use the hhsubfigure package only in conjunction with the
+%% document class bgteubner.cls. Steven has announced a successor for
+%% this package that will make hhsubfigure unnecessary.
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% @LaTeX-style-file{
+%% author = "Steven Douglas Cochran (modified by Harald Harders)",
+%% version = "2.1.4",
+%% date = "2003/09/14",
+%% time = "09:34:13",
+%% filename = "hhsubfigure.sty",
+%% email = "h.harders@tu-bs.de",
+%% codetable = "ISO/ASCII",
+%% keywords = "LaTeX, float, figure, table, captcont",
+%% supported = "yes",
+%% abstract = "LaTeX package for providing support for the
+%% inclusion of small, `sub', figures and tables. It
+%% simplifies the positioning, captioning and
+%% labeling of them within a single figure or table
+%% environment. In addition, this package allows
+%% such subcaptions to be written to the List of
+%% Figures or List of tables if desired."
+%% }
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\ProvidesPackage{hhsubfigure}[2003/09/14 v2.1.4a (hh)subfigure package]
+\newif\ifhyperrefloaded
+\AtBeginDocument{%
+ \@ifpackageloaded{hyperref}{%
+ \hyperrefloadedtrue
+ \providecommand\theHsubfigure{\thefigure.\arabic{subfigure}}%
+ \providecommand\theHsubtable{\thetable.\arabic{subtable}}%
+ \providecommand{\toclevel@subfigure}{1}%
+ \providecommand{\toclevel@subtable}{1}}{}}
+\newif\ifsubcaphang
+\newif\ifsubcapcenter
+\newif\ifsubcapcenterlast
+\newif\ifsubcapnooneline
+\newif\ifsubcapraggedright
+\newif\ifsubcapRaggedRight
+\newskip\subfigtopskip \subfigtopskip = 5\p@
+\newskip\subfigcapskip \subfigcapskip = 0\p@
+\newdimen\subfigcaptopadj \subfigcaptopadj = 3\p@
+\newskip\subfigbottomskip \subfigbottomskip = 5\p@
+\newdimen\subfigcapmargin \subfigcapmargin = \z@
+\newskip\subfiglabelskip \subfiglabelskip = 0.33em plus 0.07em minus 0.03em
+\newcommand*{\subcapsize}{}
+\newcommand*{\subcaplabelfont}{%
+ \subcaplabelfont@f\subcaplabelfont@c\subcaplabelfont@s}
+\newcommand*{\subcaplabelfont@f}{\fontfamily{\familydefault}\selectfont}
+\newcommand*{\subcaplabelfont@c}{\fontseries{\seriesdefault}\selectfont}
+\newcommand*{\subcaplabelfont@s}{\fontshape{\shapedefault}\selectfont}
+\newcommand*{\subcapfont}{%
+ \subcapfont@f\subcapfont@c\subcapfont@s}
+\newcommand*{\subcapfont@f}{\fontfamily{\familydefault}\selectfont}
+\newcommand*{\subcapfont@c}{\fontseries{\seriesdefault}\selectfont}
+\newcommand*{\subcapfont@s}{\fontshape{\shapedefault}\selectfont}
+\newif\ifsf@tight \sf@tighttrue
+\newcounter{subfigure}[figure]
+\@ifundefined{figuretopcaptrue}{\newif\iffiguretopcap}{}
+\newif\ifsubfiguretopcap
+\let\p@subfigure=\thefigure
+\providecommand*{\thesubfigure}{(\alph{subfigure})}
+\renewcommand*{\thesubfigure}{(\alph{subfigure})}
+\newcommand*{\@thesubfigure}{\thesubfigure\hskip\subfiglabelskip}
+\newcommand*{\@@thesubfigure}{\thesubfigure}
+\let\ext@subfigure=\ext@figure
+\newcommand*{\l@subfigure}{%
+ \@dottedxxxline{\ext@subfigure}{2}{3.8em}{2.5em}}
+\newcounter{lofdepth}
+\setcounter{lofdepth}{1}
+\newcounter{subtable}[table]
+\@ifundefined{tabletopcaptrue}{\newif\iftabletopcap}{}
+\newif\ifsubtabletopcap
+\let\p@subtable=\thetable
+\providecommand*{\thesubtable}{(\alph{subtable})}
+\renewcommand*{\thesubtable}{(\alph{subtable})}
+\newcommand*{\@thesubtable}{\thesubtable\hskip\subfiglabelskip}
+\newcommand*{\@@thesubtable}{\thesubtable}
+\let\ext@subtable=\ext@table
+\newcommand*{\l@subtable}{%
+ \@dottedxxxline{\ext@subtable}{2}{3.8em}{2.5em}}
+\newcounter{lotdepth}
+\setcounter{lotdepth}{1}
+\DeclareOption{normal}{%
+ \subcaphangfalse
+ \subcapcenterfalse
+ \subcapcenterlastfalse
+ \subcapnoonelinefalse
+ \subcapraggedrightfalse
+ \subcapRaggedRightfalse}
+\DeclareOption{hang}{\subcaphangtrue}
+\DeclareOption{center}{\subcapcentertrue}
+\DeclareOption{centerlast}{\subcapcenterlasttrue}
+\DeclareOption{nooneline}{\subcapnoonelinetrue}
+\DeclareOption{raggedright}{\subcapraggedrighttrue}
+\DeclareOption{RaggedRight}{\subcapRaggedRighttrue}
+\DeclareOption{isu}{\ExecuteOption{hang}}
+\DeclareOption{anne}{\ExecuteOption{centerlast}}
+\DeclareOption{scriptsize}{\renewcommand*{\subcapsize}{\scriptsize}}
+\DeclareOption{footnotesize}{\renewcommand*{\subcapsize}{\footnotesize}}
+\DeclareOption{small}{\renewcommand*{\subcapsize}{\small}}
+\DeclareOption{normalsize}{\renewcommand*{\subcapsize}{\normalsize}}
+\DeclareOption{large}{\renewcommand*{\subcapsize}{\large}}
+\DeclareOption{Large}{\renewcommand*{\subcapsize}{\Large}}
+\DeclareOption{rm}{\renewcommand*{\subcaplabelfont@f}{\rmfamily}}
+\DeclareOption{sf}{\renewcommand*{\subcaplabelfont@f}{\sffamily}}
+\DeclareOption{tt}{\renewcommand*{\subcaplabelfont@f}{\ttfamily}}
+\DeclareOption{md}{\renewcommand*{\subcaplabelfont@c}{\mdseries}}
+\DeclareOption{bf}{\renewcommand*{\subcaplabelfont@c}{\bfseries}}
+\DeclareOption{up}{\renewcommand*{\subcaplabelfont@s}{\upshape}}
+\DeclareOption{it}{\renewcommand*{\subcaplabelfont@s}{\itshape}}
+\DeclareOption{sl}{\renewcommand*{\subcaplabelfont@s}{\slshape}}
+\DeclareOption{sc}{\renewcommand*{\subcaplabelfont@s}{\scshape}}
+\DeclareOption{RM}{\renewcommand*{\subcapfont@f}{\rmfamily}}
+\DeclareOption{SF}{\renewcommand*{\subcapfont@f}{\sffamily}}
+\DeclareOption{TT}{\renewcommand*{\subcapfont@f}{\ttfamily}}
+\DeclareOption{MD}{\renewcommand*{\subcapfont@c}{\mdseries}}
+\DeclareOption{BF}{\renewcommand*{\subcapfont@c}{\bfseries}}
+\DeclareOption{IT}{\renewcommand*{\subcapfont@s}{\itshape}}
+\DeclareOption{SL}{\renewcommand*{\subcapfont@s}{\slshape}}
+\DeclareOption{SC}{\renewcommand*{\subcapfont@s}{\scshape}}
+\DeclareOption{UP}{\renewcommand*{\subcapfont@s}{\upshape}}
+\DeclareOption{figbotcap}{\figuretopcapfalse}
+\DeclareOption{figtopcap}{\figuretopcaptrue}
+\DeclareOption{tabbotcap}{\tabletopcapfalse}
+\DeclareOption{tabtopcap}{\tabletopcaptrue}
+\DeclareOption{FIGBOTCAP}{\ExecuteOptions{figbotcap}\subfiguretopcapfalse}
+\DeclareOption{FIGTOPCAP}{\ExecuteOptions{figtopcap}\subfiguretopcaptrue}
+\DeclareOption{TABBOTCAP}{\ExecuteOptions{tabbotcap}\subtabletopcapfalse}
+\DeclareOption{TABTOPCAP}{\ExecuteOptions{tabtopcap}\subtabletopcaptrue}
+\DeclareOption{loose}{%
+ \subfigtopskip = 10\p@
+ \subfigcapskip = 10\p@
+ \subfigcaptopadj = 0\p@
+ \subfigbottomskip = 10\p@
+ \subfigcapmargin = 10\p@
+ \subfiglabelskip = 0.33em
+ \renewcommand*{\@thesubfigure}{\thesubfigure\space}
+ \renewcommand*{\@thesubtable}{\thesubtable\space}
+ \sf@tightfalse}
+\DeclareOption{tight}{%
+ \subfigtopskip = 5\p@
+ \subfigcapskip = 0\p@
+ \subfigcaptopadj = 3\p@
+ \subfigbottomskip = 5\p@
+ \subfigcapmargin = \z@
+ \subfiglabelskip = 0.33em plus 0.07em minus 0.03em
+ \renewcommand*{\@thesubfigure}{\thesubfigure\hskip\subfiglabelskip}
+ \renewcommand*{\@thesubtable}{\thesubtable\hskip\subfiglabelskip}
+ \sf@tighttrue}
+\ExecuteOptions{normal,footnotesize,FIGBOTCAP,TABBOTCAP,loose}
+\InputIfFileExists{subfigure.cfg}{%
+ \typeout{****************************************^^J%
+ * Local config file subfigure.cfg used *^^J%
+ ****************************************}}{}
+\ProcessOptions
+\newcommand*{\subfigure}{%
+ \bgroup
+ \let\subfig@oldlabel=\label
+ \let\label=\subfloat@label
+ \@nameuse{if\@captype topcap}\else
+ \advance\@nameuse{c@\@captype}\@ne
+ \fi
+ \refstepcounter{sub\@captype}%
+ \@ifnextchar [%
+ {\@subfigure}%
+ {\@subfigure[\@empty]}}
+\let\subtable=\subfigure
+\def\@subfigure[#1]{%
+ \@ifnextchar [%
+ {\@subfloat{sub\@captype}[{#1}]}%
+ {\@subfloat{sub\@captype}[\@empty{#1}][{#1}]}}
+\newskip\subfig@top
+\newskip\subfig@bottom
+\long\def\@subfloat#1[#2][#3]#4{%
+ \@tempcnta=1
+ \ifsf@tight
+ \if@minipage
+ \@tempcnta=\z@
+ \else\ifdim \lastskip=\z@ \else
+ \@tempcnta=2
+ \fi\fi
+ \fi
+ \@nameuse{if\@captype topcap}%
+ \subfig@top=\subfigbottomskip
+ \subfig@bottom=\subfigtopskip
+ \else
+ \subfig@top=\subfigtopskip
+ \subfig@bottom=\subfigbottomskip
+ \fi
+ \leavevmode
+ \setbox\@tempboxa \hbox{#4}%
+ \@tempdima=\wd\@tempboxa
+ \vtop\bgroup
+ \vbox\bgroup
+ \ifcase\@tempcnta
+ \@minipagefalse
+ \or
+ \vspace{\subfig@top}%
+ \or
+ \ifdim \lastskip=\z@ \else
+ \@tempskipb\subfig@top\relax\@xaddvskip
+ \fi
+ \fi
+ \@nameuse{if#1topcap}%
+ \ifx \@empty#3\relax \else
+ \@subcaption{#1}{#2}{#3}%
+ \vskip\subfigcapskip
+ \vskip\subfigcaptopadj
+ \fi\egroup
+ \box\@tempboxa
+ \else
+ \box\@tempboxa\egroup
+ \ifx \@empty#3\relax \else
+ \vskip\subfigcapskip
+ \@subcaption{#1}{#2}{#3}%
+ \fi
+ \fi
+ \vspace{\subfig@bottom}%
+ \egroup
+ \@nameuse{if\@captype topcap}\else
+ \global\advance\@nameuse{c@\@captype}\m@ne
+ \fi
+ \egroup}
+\newcommand*{\@subfigcaptionlist}{}
+\newcommand{\@subcaption}[3]{%
+ \ifx \relax#2\relax \else
+ \bgroup
+ \let\label=\@gobble
+ \let\protect=\string
+ \def\@subcaplabel{\@nameuse{@@the#1}}%
+ \xdef\@subfigcaptionlist{%
+ \@subfigcaptionlist,%
+ {\protect\numberline{\@subcaplabel}\noexpand{\ignorespaces #2}}}%
+ \egroup
+ \fi
+ \@nameuse{@make#1caption}{\@nameuse{@the#1}}{#3}}
+\newcommand*{\listsubcaptions}{%
+ \@ifstar
+ {\gdef\@subfigcaptionlist{}}%
+ {\@listsubcaptions{\@captype}}}
+\newcommand*{\@listsubcaptions}[1]{%
+ \@ifundefined{@captype}{}{%
+ \@ifundefined{ext@sub#1}{}{%
+ \@for \sf@temp:=\@subfigcaptionlist \do {%
+ \ifx \@empty\sf@temp\relax \else
+ \addcontentsline
+ {\@nameuse{ext@sub#1}}%
+ {sub#1}%
+ {\sf@temp}%
+ \fi}}}%
+ \gdef\@subfigcaptionlist{}}
+\newcommand{\@makesubfigurecaption}[2]{%
+ \setbox\@tempboxa\hbox{%
+ \subcapsize
+ {\subcaplabelfont #1}%
+ {\subcapfont\ignorespaces #2}}%
+ \@tempdimb=-\subfigcapmargin
+ \multiply\@tempdimb\tw@
+ \advance\@tempdimb\@tempdima
+ \hbox to\@tempdima{%
+ \hss
+ \ifdim \wd\@tempboxa >\@tempdimb
+ \subfig@caption{#1}{#2}%
+ \else\ifsubcapnooneline
+ \subfig@caption{#1}{#2}%
+ \else
+ \box\@tempboxa
+ \fi\fi
+ \hss}}
+\let\@makesubtablecaption=\@makesubfigurecaption
+\newcommand{\subfig@caption}[2]{%
+ \ifsubcaphang
+ \sbox{\@tempboxa}{\subcapsize\subcaplabelfont #1}%
+ \addtolength{\@tempdimb}{-\wd\@tempboxa}%
+ \usebox{\@tempboxa}%
+ \subfig@captionpar{\@tempdimb}{%
+ {\subcapfont\ignorespaces #2}}%
+ \else
+ \subfig@captionpar{\@tempdimb}{%
+ {\subcaplabelfont #1}%
+ {\subcapfont\ignorespaces #2}}%
+ \fi}
+\newcommand{\subfig@captionpar}[2]{%
+ \parbox[t]{#1}{%
+ \subcapsize
+ \ifsubcapraggedright
+ \setlength{\leftskip}{\z@}%
+ \setlength{\@rightskip}{\@flushglue}%
+ \setlength{\rightskip}{\@rightskip}%
+ \setlength{\parindent}{\z@}%
+ \else\ifsubcapRaggedRight
+ \setlength{\leftskip}{\z@}%
+ \setlength{\@rightskip}{\z@ plus \tw@ em}%
+ \setlength{\rightskip}{\@rightskip}%
+ \setlength{\parfillskip}{\z@ plus \@ne fil}%
+ \setlength{\parindent}{\z@}%
+ \else\ifsubcapcenter
+ \setlength{\leftskip}{\@flushglue}%
+ \setlength{\rightskip}{\@flushglue}%
+ \setlength{\parfillskip}{\z@skip}%
+ \else\ifsubcapcenterlast
+ \addtolength{\leftskip}{\z@ plus 1fil}%
+ \addtolength{\rightskip}{\z@ plus -1fil}%
+ \setlength{\parfillskip}{\z@ plus 2fil}%
+ \fi\fi\fi\fi
+ #2}}
+\newcommand*{\@dottedxxxline}[6]{%
+ \ifnum #2>\@nameuse{c@#1depth}\else
+ \@dottedtocline{0}{#3}{#4}{#5}{#6}
+ \fi}
+\let\subfig@end@float=\end@float
+\renewcommand*{\end@float}{%
+ \@listsubcaptions{\@captype}%
+ \subfig@end@float}
+\let\subfig@end@dblfloat=\end@dblfloat
+\renewcommand*{\end@dblfloat}{%
+ \@listsubcaptions{\@captype}%
+ \subfig@end@dblfloat}
+\let\subfig@oldcaption=\@caption
+\long\def\@caption#1[#2]#3{%
+ \@ifundefined{if#1topcap}%
+ {\subfig@oldcaption{#1}[{#2}]{#3}}%
+ {\@nameuse{if#1topcap}%
+ \@listsubcaptions{#1}%
+ \subfig@oldcaption{#1}[{#2}]{#3}%
+ \else
+ \subfig@oldcaption{#1}[{#2}]{#3}%
+ \@listsubcaptions{#1}%
+ \fi}}
+\let\subfig@oldlabel=\relax
+\newcommand*{\subfloat@label}{%
+ \@ifnextchar(
+ {\sf@sub@label}
+ {\sf@sub@label(Sub\@captype\space
+ \@ifundefined{thechapter}{}{%
+ \@nameuse{thechapter}\space}%
+ \@nameuse{p@sub\@captype}%
+ \@nameuse{thesub\@captype}.)}}
+\let\sub@label\subfloat@label
+\def\sf@sub@label(#1)#2{%
+ \ifhyperrefloaded
+ \protected@edef\@currentlabelname{%
+ \expandafter\strip@period #1\relax.\relax\@@@}%
+ \fi
+ \sf@@sub@label{#2}}
+\newcommand*{\sf@@sub@label}[1]{%
+ \@bsphack
+ \subfig@oldlabel{#1}%
+ \ifhyperrefloaded
+ \protected@write\@auxout{}{%
+ \string\newlabel{sub@#1}%
+ {{\@nameuse{@@thesub\@captype}}%
+ {\thepage}%
+ {\expandafter\strip@period\@currentlabelname\relax.\relax\@@@}%
+ {\@currentHref}%
+ {}}}%
+ \else
+ \protected@write\@auxout{}{%
+ \string\newlabel{sub@#1}%
+ {{\@nameuse{@@thesub\@captype}}%
+ {\thepage}}}%
+ \fi
+ \@esphack}
+\newcommand\subref[1]{%
+ \ref{sub@#1}}
+\newcommand\Subref[1]{%
+ {\subcaplabelfont
+ \ref{sub@#1}}}
+\endinput
+%%
+%% End of file `hhsubfigure.sty'.