diff --git a/resources/LaTeX-Packages/chngcntr/chngcntr.sty b/resources/LaTeX-Packages/chngcntr/chngcntr.sty deleted file mode 100644 index e1a6de835cf25634a0e4b65b607170d6f24c6077..0000000000000000000000000000000000000000 --- a/resources/LaTeX-Packages/chngcntr/chngcntr.sty +++ /dev/null @@ -1,107 +0,0 @@ -% chngcntr.sty -% -% Provides commands to change the resetting of counters. -% Instructions for use are at the end of this file. -% -% author: Peter Wilson (CUA) -% (now at peter.r.wilson@boeing.com) -% Released under the Latex Project Public License -% -% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{chngcntr}[2001/03/30 v1.0 change counter resetting] -% -% This package uses David Carlisle's \@removefromreset command as -% specified in the remreset package available from CTAN as -% macros/latex/contrib/supported/carlisle/remreset.sty -% It is \provided here as a convenience to the user, and with -% David Carlisle's permission. -% START OF DAVID CARLISLE'S CODE -\providecommand{\@removefromreset}[2]{{% - \expandafter\let\csname c@#1\endcsname\@removefromreset - \def\@elt##1{% - \expandafter\ifx\csname c@##1\endcsname\@removefromreset - \else - \noexpand\@elt{##1}% - \fi}% - \expandafter\xdef\csname cl@#2\endcsname{% - \csname cl@#2\endcsname}}} -% END OF DAVID CARLISLE'S CODE - -%%\@ifbothc@t@s{<package>}{<counter>}{<within>}{<code when both are counters>} -\newcommand{\@ifbothc@t@s}[4]{% - \@ifundefined{c@#2}{% counter undefined - \PackageError{#1}{#2 is not a counter}{\@eha}}% - {% else counter is defined - \@ifundefined{c@#3}{% within undefined - \PackageError{#1}{#3 is not a counter}{\@eha}}% - {% else both counter and within are defined - #4}}} - -%%\counterwithout*{<counter>}{<within>} -\newcommand{\counterwithout}{\@ifstar{\c@t@soutstar}{\c@t@sout}} -\newcommand{\c@t@soutstar}[2]{% - \@ifbothc@t@s{chngcntr}{#1}{#2}{\@removefromreset{#1}{#2}}} -\newcommand{\c@t@sout}[2]{% - \@ifbothc@t@s{chngcntr}{#1}{#2}{\@removefromreset{#1}{#2}% - \@namedef{the#1}{\arabic{#1}}}} - - -%%\counterwithin*{<counter>}{<within>} -\newcommand{\counterwithin}{\@ifstar{\c@t@sinstar}{\c@t@sin}} -\newcommand{\c@t@sinstar}[2]{% - \@ifbothc@t@s{chngcntr}{#1}{#2}{\@addtoreset{#1}{#2}}} -\newcommand{\c@t@sin}[2]{% - \@ifbothc@t@s{chngcntr}{#1}{#2}{\@addtoreset{#1}{#2}% - \@namedef{the#1}{\@nameuse{the#2}.\arabic{#1}}}} - - -\endinput - -%%%%%%%%%%%%%%%%%% -% USAGE -%%%%%%%%%%%%%%%%%% -% -% In LaTeX, a new counter called, say `ctr', is created by the command -% \newcounter{ctr}[within]. If the optional within argument is given -% the the counter `ctr' is reset to zero each time the counter `within' -% changes. The command \thectr typesets the value of the counter ctr. -% This is automatically defined by \newcounter and is initialised -% to typeset arabic numerals. -% -%%%%%%%%%%%%%%%%% -% \counterwithin -% \counterwithin* -%%%%%%%%%%%%%%%%% -% It is sometimes desireable to change a counter that has been defined -% by \newcounter{ctr} to act as though it had been defined as -% \newcounter{ctr}[within]. The package provides the command -% \counterwithin{ctr}{within} that accomplishes this. By default, -% it also redefines the \thectr command so that it typesets values -% in the style \thewithin.\arabic{ctr}. The starred version of the -% command suppresses the redefinition of \thectr -% (e.g., \counterwithin*{ctr}{within}). -% -%%%%%%%%%%%%%%%%%% -% \counterwithout -% \counterwithout* -%%%%%%%%%%%%%%%%%% -% Likewise, the command \counterwithout{ctr}{within} changes a -% counter that has been created by \newcounter{ctr}[within] to act -% as though it had been created by \newcounter{ctr}. By default it -% also redefines the \thectr command so that it just typesets an arabic -% numeral. The starred version of the command suppresses the redefinition -% of \thectr. -% -% Any number of \counterwithin{ctr}{...} and \counterwithout{ctr}{...} -% commands can be issued for a given counter, ctr, if you wish to toggle -% between the two styles. The current value of ctr is unaffected by -% \counterwithin and \counterwithout. If you want to change the value -% after one of these commands, use \setcounter{ctr}{...}, and to change -% the typeseting style use \renewcommand{\thectr}{...}. -% -% -% Peter W. -% 2001/03/30 -% - diff --git a/resources/LaTeX-Packages/floatflt/floatflt.sty b/resources/LaTeX-Packages/floatflt/floatflt.sty deleted file mode 100644 index 4396042f3e18429e649e81caaac090c67610e40c..0000000000000000000000000000000000000000 --- a/resources/LaTeX-Packages/floatflt/floatflt.sty +++ /dev/null @@ -1,348 +0,0 @@ -%% -%% This is file `floatflt.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% floatflt.dtx (with options: `paketkod') -%% -%% Copyright (c) 1994-1998 by Mats Dahlgren <matsd@sssk.se>. -%% All rights reserved. See the file `floatflt.ins' for information -%% on how you may (re-)distribute the `floatflt' package files. -%% You are not allowed to make any changes to this file without -%% explicit permission from the author. -%% -\NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesPackage{floatflt}[1997/07/16 v. 1.31] -\newcounter{OptionTest} -\setcounter{OptionTest}{0} -\DeclareOption{rflt}{\setcounter{OptionTest}{1}} -\DeclareOption{lflt}{\setcounter{OptionTest}{2}} -\DeclareOption{vflt}{\setcounter{OptionTest}{0}} -\DeclareOption*{\OptionNotUsed} -\ProcessOptions -\newbox\figbox -\newbox\tabbox -\newbox\pagebox -\newcount\ffigcount -\newcount\ftabcount -\newcount\fftest -\newcount\hangcount -\newcount\nosuccesstryfig -\newcount\nosuccesstrytab -\newdimen\figgutter \figgutter=1truepc -\newdimen\tabgutter \tabgutter=1truepc -\newdimen\htdone \htdone=0pt -\newdimen\pageht -\newdimen\startpageht -\newdimen\tabbredd -\newdimen\floatfltwidth -\newdimen\fltitemwidth -\newif\iftryingfig \tryingfigfalse -\newif\iftryingtab \tryingtabfalse -\newif\ifdoingfig \doingfigfalse -\newif\ifdoingtab \doingtabfalse -\newif\iffigprocessing \figprocessingfalse -\newif\iftabprocessing \tabprocessingfalse -\newif\ifpageafterfig \pageafterfigfalse -\newif\ifpageaftertab \pageaftertabfalse -\newif\ifoddpages -\newif\ifoutput -\newtoks\outputpretest -\newenvironment{floatingfigure}[2][v]% -{\@tfor \@tempa :=#1\do - {\if\@tempa r\global\oddpagestrue\fi - \if\@tempa l\global\oddpagesfalse\fi - \if\@tempa p% - \ifodd\c@page\global\oddpagestrue - \else\global\oddpagesfalse\fi - \fi - \if\@tempa v% - \ifnum\theOptionTest=0 - \ifodd\c@page\global\oddpagestrue - \else\global\oddpagesfalse\fi - \else - \ifodd\theOptionTest\global\oddpagestrue - \else\global\oddpagesfalse\fi - \fi - \fi - } - \expandafter\ifx\csname oldoutput\endcsname\relax% ref. TeXbook Ex.7.7 - \PackageError{floatflt}{The `floatflt' package is not initialized} - {Try to reinstall the `floatflt' package.\MessageBreak - Type `x' to quit or <Return> to try to go on.}\@@end\fi - \global\everypar={\tryfig\oldeverypar}% must be set globally! - \global\advance\ffigcount by 1 - \iffigprocessing - {\count0=\ffigcount\advance\count0 by -1 - \PackageWarningNoLine{floatflt}{Floating figures \the\count0\space% - \space and \the\ffigcount\space colliding}% - }% - \fi - \iftabprocessing \PackageWarningNoLine{floatflt}{Floating figure % - \the\ffigcount\space and floating table \the\ftabcount\space colliding} - \fi - \def\@captype{figure} - \global\setlength{\floatfltwidth}{#2} - \global\figprocessingtrue - \global\setbox\figbox=\vbox\bgroup% begin of figbox - \hrule height 0pt width #2 depth 0pt% - \hsize=#2% -} -{ -\egroup -\figinsert\par% -} -\newenvironment{floatingtable}[2][v]% -{\@tfor \@tempa :=#1\do - {\if\@tempa r\global\oddpagestrue\fi - \if\@tempa l\global\oddpagesfalse\fi - \if\@tempa p% - \ifodd\c@page\global\oddpagestrue - \else\global\oddpagesfalse\fi - \fi - \if\@tempa v% - \ifnum \theOptionTest=0 - \ifodd\c@page\global\oddpagestrue - \else\global\oddpagesfalse\fi - \else - \ifodd\theOptionTest\global\oddpagestrue - \else\global\oddpagesfalse\fi - \fi - \fi - } -\expandafter\ifx\csname oldoutput\endcsname\relax% ref. TeXbook Ex.7.7 - \PackageError{floatflt}{The `floatflt' package is not initialized} - {Try to reinstall the `floatflt' package.\MessageBreak - Type `x' to quit or <Return> to try to go on.}\@@end\fi -\global\setbox\tabbox=\vbox\bgroup\hrule height 0pt width 0pt depth 0pt% - \hsize=0pt\egroup - \global\everypar={\trytab\oldeverypar} - \global\advance\ftabcount by 1 - \iftabprocessing - {\count0=\ftabcount\advance\count0 by -1 - \PackageWarningNoLine{floatflt}{Floating tables \the\count0\space% - \space and \the\ftabcount \space colliding}% - } - \fi - \iftabprocessing \PackageWarningNoLine{floatflt}{Floating table % - \the\ffigcount\space and floating figure \the\ftabcount\space colliding} - \fi - \settowidth{\tabbredd}{#2} - \global\setlength{\floatfltwidth}{\tabbredd} - \def\@captype{table} - \global\tabprocessingtrue - \global\setbox\tabbox=\vbox\bgroup% begin of tabbox - \hrule height 0pt width\tabbredd depth 0pt% - \hsize=\tabbredd -\noindent\ifnum\ftabcount >1\ifoddpages\else\hspace*{-12pt}\fi\fi% -#2\vspace{0.2\baselineskip}% -} -{ -\egroup% end of \tabbox -\tabinsert\par% -} -\AtBeginDocument{% -\edef\oldoutput{\the\output}% -\output={\the\outputpretest% - \ifoutput\oldoutput\fi} -\outputpretest={\outputtrue} -\edef\oldeverypar{\the\everypar} -} -\def\dofigtest{% - \ifnum\outputpenalty=-10005 - \setbox\pagebox=\vbox{\unvbox255}% - \global\pageht=\ht\pagebox - \global\outputfalse - \unvbox\pagebox - \else - \global\outputtrue - \ifdoingfig - \global\pageafterfigtrue - \fi - \fi}% -\def\dotabtest{% - \ifnum\outputpenalty=-10005 - \setbox\pagebox=\vbox{\unvbox255}% - \global\pageht=\ht\pagebox - \global\outputfalse - \unvbox\pagebox - \else - \global\outputtrue - \ifdoingtab - \global\pageaftertabtrue - \fi - \fi}% -\def\tryfig{% - \iftryingfig - {\everypar={\relax}\setbox0=\lastbox% - \parindent=\wd0 \parskip=0pt \par% - \penalty-10005 \leavevmode}% - \dimen0=\vsize% - \advance\dimen0 by -\pageht% - \advance\dimen0 by -2\baselineskip% - \ifdim\dimen0>\ht\figbox% - \dimen0=0.3\baselineskip - \vrule depth \dimen0 width 0pt - \vadjust{\kern -\dimen0% - \vtop to \dimen0{% - \baselineskip=\dimen0% - \vss \vbox to 1ex{% - \ifoddpages% - \hbox to \hsize{\hss\copy\figbox}% - \else% leftsetting - \hbox to \hsize{\copy\figbox\hss}% - \fi% \ifodd\count0 - \vss}\null}}% - \global\tryingfigfalse% - \global\doingfigtrue - \global\startpageht=\pageht - \global\htdone=0pt - \dohangf - \ifnum\nosuccesstryfig>0% - \typeout{floatflt Message: Flt. fig. \the\ffigcount\space set on page - \the\count0, shifted \the\nosuccesstryfig\space par(s) forward.}% - \else - \typeout{Package floatflt Message: Floating figure \the\ffigcount - \space set on page \the\count0}% - \fi - \else - \global\advance\nosuccesstryfig by 1 - \fi - \else% - \ifdoingfig - {\everypar={\relax}\setbox0=\lastbox - \parindent=\wd0 \parskip=0pt \par - \penalty-10005 \leavevmode}% - \global\htdone=\pageht - \global\advance\htdone by -\startpageht - \ifpageafterfig - \global\doingfigfalse - \else - \dimen0=\ht\figbox% - \advance\dimen0 by 0.5\baselineskip% - \ifdim\htdone<\dimen0% - \dohangf - \else - \global\doingfigfalse - \fi - \fi - \ifdoingfig\relax\else\global\figprocessingfalse\fi - \else - \global\outputpretest={\outputtrue}% - \fi -\fi -} -\def\trytab{% - \iftryingtab% - {\everypar={\relax}\setbox0=\lastbox% - \parindent=\wd0 \parskip=0pt \par% - \penalty-10005 \leavevmode}% - \dimen0=\vsize% - \advance\dimen0 by -\pageht% - \advance\dimen0 by -2\baselineskip% - \ifdim\dimen0>\ht\tabbox% - \dimen0=0.3\baselineskip - \vrule depth \dimen0 width 0pt - \vadjust{\kern -\dimen0% - \vtop to \dimen0{% - \baselineskip=\dimen0% - \vss \vbox to 1ex{% - \ifoddpages% - \hbox to \hsize{\hss\copy\tabbox}% - \else% leftsetting - \hbox to \hsize{\copy\tabbox\hss}% - \fi% \ifodd\count0 - \vss}\null}}% - \global\tryingtabfalse% - \global\doingtabtrue - \global\startpageht=\pageht - \global\htdone=0pt - \dohangt - \ifnum\nosuccesstrytab>0% - \typeout{floatflt Message: Flt. tab. \the\ftabcount\space set on page - \the\count0, shifted \the\nosuccesstrytab\space par(s) forward.}% - \else - \typeout{Package floatflt Message: Floating table \the\ftabcount\space - set on page \the\count0}% - \fi - \else - \global\advance\nosuccesstrytab by 1 - \fi - \else - \ifdoingtab - {\everypar={\relax}\setbox0=\lastbox - \parindent=\wd0 \parskip=0pt \par - \penalty-10005 \leavevmode}% - \global\htdone=\pageht - \global\advance\htdone by -\startpageht - \ifpageaftertab - \global\doingtabfalse - \else - \dimen0=\ht\tabbox% - \advance\dimen0 by 0.5\baselineskip% - \ifdim\htdone<\dimen0% - \dohangt - \else - \global\doingtabfalse - \fi - \fi - \ifdoingtab\relax\else\global\tabprocessingfalse\fi - \else - \global\outputpretest={\outputtrue}% - \fi -\fi -} -\def\figinsert{% - \global\nosuccesstryfig=0% - \global\outputpretest={\dofigtest}% - \global\tryingfigtrue \global\doingfigfalse% - \global\pageafterfigfalse}% -\def\tabinsert{% - \global\nosuccesstrytab=0% - \global\outputpretest={\dotabtest}% - \global\tryingtabtrue \global\doingtabfalse% - \global\pageaftertabfalse}% -\def\dohangf{% - \dimen0=\ht\figbox% - \advance\dimen0 by -\htdone% - \advance\dimen0 by 1.49\baselineskip% - \hangcount=\dimen0% - \divide\hangcount by \baselineskip% - \dimen0=\wd\figbox% - \advance\dimen0 by \figgutter% - \ifoddpages% - \global\hangafter=-\hangcount% placing right - \global\hangindent=-\dimen0% - \else% \ifleftsetting - \global\hangafter=-\hangcount% placing left - \global\hangindent=\dimen0% - \fi -} -\def\dohangt{% - \dimen0=\ht\tabbox% - \advance\dimen0 by -\htdone% - \advance\dimen0 by 1.49\baselineskip% - \hangcount=\dimen0% - \divide\hangcount by \baselineskip% - \dimen0=\wd\tabbox% - \advance\dimen0 by \tabgutter% - \ifoddpages% - \global\hangafter=-\hangcount% placing right - \global\hangindent=-\dimen0% - \else% \ifleftsetting - \global\hangafter=-\hangcount% placing left - \global\hangindent=\dimen0% - \fi -} -\newcommand{\fltitem}[2][0pt]{\setlength{\fltitemwidth}{\linewidth}% - \addtolength{\fltitemwidth}{-\floatfltwidth}% - \addtolength{\fltitemwidth}{-0.5em}% - \item \parbox[t]{\fltitemwidth}{#2}\\[#1]} -\newcommand{\fltditem}[3][0pt]{\setlength{\fltitemwidth}{\linewidth}% - \addtolength{\fltitemwidth}{-\floatfltwidth}% - \addtolength{\fltitemwidth}{-0.5em}% - \item[#2] \parbox[t]{\fltitemwidth}{#3}\\[#1]} -\endinput -%% -%% End of file `floatflt.sty'.