1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 07:08:51 -05:00

Convert deps to Unix style line endings

This commit is contained in:
Sam Whited 2017-02-23 02:18:28 -06:00
parent c82bbe9f02
commit 6c6d66208e

656
deps/collectbox.sty vendored
View File

@ -1,328 +1,328 @@
%% %%
%% This is file `collectbox.sty', %% This is file `collectbox.sty',
%% generated with the docstrip utility. %% generated with the docstrip utility.
%% %%
%% The original source files were: %% The original source files were:
%% %%
%% collectbox.dtx (with options: `collectbox.sty') %% collectbox.dtx (with options: `collectbox.sty')
%% %%
%% IMPORTANT NOTICE: %% IMPORTANT NOTICE:
%% %%
%% For the copyright see the source file. %% For the copyright see the source file.
%% %%
%% Any modified versions of this file must be renamed %% Any modified versions of this file must be renamed
%% with new filenames distinct from collectbox.sty. %% with new filenames distinct from collectbox.sty.
%% %%
%% For distribution of the original source see the terms %% For distribution of the original source see the terms
%% for copying and modification in the file collectbox.dtx. %% for copying and modification in the file collectbox.dtx.
%% %%
%% This generated file may be distributed as long as the %% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the %% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be %% same distribution. (The sources need not necessarily be
%% in the same archive or directory.) %% in the same archive or directory.)
%% Copyright (C) 2012 by Martin Scharrer <martin@scharrer-online.de> %% Copyright (C) 2012 by Martin Scharrer <martin@scharrer-online.de>
%% -------------------------------------------------------------------- %% --------------------------------------------------------------------
%% This work may be distributed and/or modified under the %% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3 %% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version. %% of this license or (at your option) any later version.
%% The latest version of this license is in %% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt %% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX %% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later. %% version 2005/12/01 or later.
%% %%
%% This work has the LPPL maintenance status `maintained'. %% This work has the LPPL maintenance status `maintained'.
%% %%
%% The Current Maintainer of this work is Martin Scharrer. %% The Current Maintainer of this work is Martin Scharrer.
%% %%
%% This work consists of the files collectbox.dtx and collectbox.ins %% This work consists of the files collectbox.dtx and collectbox.ins
%% and the derived filebase collectbox.sty. %% and the derived filebase collectbox.sty.
%% %%
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{collectbox}[% \ProvidesPackage{collectbox}[%
2012/05/17 2012/05/17
v0.4b v0.4b
Collect macro arguments as boxes] Collect macro arguments as boxes]
\newsavebox\collectedbox \newsavebox\collectedbox
\newcommand*\collectbox{% \newcommand*\collectbox{%
\@ifstar \@ifstar
{\collectbox@a{{\BOXCONTENT}}}% {\collectbox@a{{\BOXCONTENT}}}%
{\collectbox@a{}}% {\collectbox@a{}}%
} }
\long\def\collectbox@a#1{% \long\def\collectbox@a#1{%
\@ifnextchar[% \@ifnextchar[%
{\collectbox@b{#1}}% {\collectbox@b{#1}}%
{\collectbox@b{#1}[]}% {\collectbox@b{#1}[]}%
} }
\long\def\collectbox@b#1[#2]#3{% \long\def\collectbox@b#1[#2]#3{%
\@ifnextchar[% \@ifnextchar[%
{\collectbox@c{#2}{#3#1}}% {\collectbox@c{#2}{#3#1}}%
{\collectbox@c{#2}{#3#1}[]}% {\collectbox@c{#2}{#3#1}[]}%
} }
\long\def\collectbox@c#1#2[#3]{% \long\def\collectbox@c#1#2[#3]{%
\collectbox@{#1}{#2}{#3}% \collectbox@{#1}{#2}{#3}%
} }
\let\collect@box\hbox \let\collect@box\hbox
\let\collectbox@mode\leavevmode \let\collectbox@mode\leavevmode
\newcommand\collectbox@[3]{% \newcommand\collectbox@[3]{%
\begingroup \begingroup
\collectbox@mode \collectbox@mode
\@temptokena{#3\collectbox@end#2\endgroup}% \@temptokena{#3\collectbox@end#2\endgroup}%
\setbox\collectedbox\collect@box\bgroup \setbox\collectedbox\collect@box\bgroup
\collectbox@setgroup \collectbox@setgroup
#1\bgroup #1\bgroup
\aftergroup\the \aftergroup\the
\aftergroup\@temptokena \aftergroup\@temptokena
\collectbox@bgroup \collectbox@bgroup
} }
\let\collectbox@macro\collectbox@ \let\collectbox@macro\collectbox@
\newcommand\collectbox@env[3]{% \newcommand\collectbox@env[3]{%
\collectbox@mode \collectbox@mode
\def\collectboxenvend{#3\collectbox@end#2\collectbox@currenvir}% \def\collectboxenvend{#3\collectbox@end#2\collectbox@currenvir}%
\setbox\collectedbox\collect@box\bgroup \setbox\collectedbox\collect@box\bgroup
\collectbox@setgroup \collectbox@setgroup
\collectbox@reset \collectbox@reset
\ignorespaces \ignorespaces
#1% #1%
} }
\def\collectbox@currenvir{% \def\collectbox@currenvir{%
\edef\@currenvir{\@currenvir}% \edef\@currenvir{\@currenvir}%
} }
\def\collectbox@macro@bgroup{% \def\collectbox@macro@bgroup{%
\@ifnextchar\bgroup \@ifnextchar\bgroup
{\let\@let@token=}% {\let\@let@token=}%
{\collectbox@arg}% {\collectbox@arg}%
} }
\def\collectbox@env@bgroup{% \def\collectbox@env@bgroup{%
\collectbox@reset \collectbox@reset
\ignorespaces \ignorespaces
} }
\let\collectbox@bgroup\collectbox@macro@bgroup \let\collectbox@bgroup\collectbox@macro@bgroup
\def\collectbox@setgroup{% \def\collectbox@setgroup{%
\color@setgroup \color@setgroup
} }
\def\collectbox@endgroup{% \def\collectbox@endgroup{%
\collectbox@endcode \collectbox@endcode
\color@endgroup \color@endgroup
} }
\let\collectbox@endcode\relax \let\collectbox@endcode\relax
\newcommand\@collectbox[1]{% \newcommand\@collectbox[1]{%
\begingroup \begingroup
\collectbox@mode \collectbox@mode
\@temptokena{\collectbox@end#1\endgroup}% \@temptokena{\collectbox@end#1\endgroup}%
\setbox\collectedbox\collect@box\bgroup \setbox\collectedbox\collect@box\bgroup
\collectbox@setgroup\bgroup \collectbox@setgroup\bgroup
\aftergroup\the \aftergroup\the
\aftergroup\@temptokena \aftergroup\@temptokena
\collectbox@bgroup \collectbox@bgroup
} }
\newcommand\@Collectbox[2]{% \newcommand\@Collectbox[2]{%
\begingroup \begingroup
\collectbox@mode \collectbox@mode
\sbox\collectedbox{#2}% \sbox\collectedbox{#2}%
\collectbox@setdims \collectbox@setdims
#1% #1%
\endgroup \endgroup
} }
\def\collectbox@arg#1{% \def\collectbox@arg#1{%
#1\egroup #1\egroup
} }
\def\collectbox@end{% \def\collectbox@end{%
\collectbox@endgroup \collectbox@endgroup
\egroup \egroup
\collectbox@setdims \collectbox@setdims
\ifcollectboxenv \ifcollectboxenv
\collectbox@reset \collectbox@reset
\collectbox@currenvir \collectbox@currenvir
\fi \fi
} }
\def\collectbox@setdims{% \def\collectbox@setdims{%
\collectbox@protecteddef\BOXCONTENT{\usebox\collectedbox}% \collectbox@protecteddef\BOXCONTENT{\usebox\collectedbox}%
\collectbox@protecteddef\width{\wd\collectedbox}% \collectbox@protecteddef\width{\wd\collectedbox}%
\collectbox@protecteddef\height{\ht\collectedbox}% \collectbox@protecteddef\height{\ht\collectedbox}%
\collectbox@protecteddef\depth{\dp\collectedbox}% \collectbox@protecteddef\depth{\dp\collectedbox}%
\collectbox@protecteddef\totalheight{\@ovri}% \collectbox@protecteddef\totalheight{\@ovri}%
\totalheight\height \totalheight\height
\advance\totalheight\depth \advance\totalheight\depth
}% }%
\def\collectbox@reset{% \def\collectbox@reset{%
\let\collectbox@endcode\relax \let\collectbox@endcode\relax
\let\collectbox@bgroup\collectbox@macro@bgroup \let\collectbox@bgroup\collectbox@macro@bgroup
\let\collectbox@\collectbox@macro \let\collectbox@\collectbox@macro
\collectboxenvfalse \collectboxenvfalse
} }
\begingroup \begingroup
\expandafter\ifx\csname protected\endcsname\relax \expandafter\ifx\csname protected\endcsname\relax
\let\collectbox@protecteddef\def% \let\collectbox@protecteddef\def%
\else \else
\gdef\collectbox@protecteddef{\protected\def}% \gdef\collectbox@protecteddef{\protected\def}%
\fi \fi
\endgroup \endgroup
\let\collectbox@code\empty \let\collectbox@code\empty
\newcommand\collectboxto[1]{% \newcommand\collectboxto[1]{%
\@ifnextchar[% \@ifnextchar[%
{\collectboxto@a{#1}}% {\collectboxto@a{#1}}%
{\collectboxto@a{#1}[]}% {\collectboxto@a{#1}[]}%
} }
\long\def\collectboxto@a#1[#2]#3{% \long\def\collectboxto@a#1[#2]#3{%
\@ifnextchar[% \@ifnextchar[%
{\collectboxto@b{#1}{#2}{#3}}% {\collectboxto@b{#1}{#2}{#3}}%
{\collectboxto@b{#1}{#2}{#3}[]}% {\collectboxto@b{#1}{#2}{#3}[]}%
} }
\long\def\collectboxto@b#1#2#3[#4]{% \long\def\collectboxto@b#1#2#3[#4]{%
\collectboxto@{#1}{#2}{#3}{#4}% \collectboxto@{#1}{#2}{#3}{#4}%
} }
\newcommand\collectboxto@[4]{% \newcommand\collectboxto@[4]{%
\collectbox@mode \collectbox@mode
\setbox#1\collect@box\bgroup \setbox#1\collect@box\bgroup
\def\collectbox@code{#4\collectbox@endgroup\egroup#3}% \def\collectbox@code{#4\collectbox@endgroup\egroup#3}%
\collectbox@setgroup#2\bgroup \collectbox@setgroup#2\bgroup
\aftergroup\collectbox@code \aftergroup\collectbox@code
\collectbox@bgroup \collectbox@bgroup
} }
\newcommand\@collectboxto[2]{% \newcommand\@collectboxto[2]{%
\collectbox@mode \collectbox@mode
\setbox#1\collect@box\bgroup \setbox#1\collect@box\bgroup
\def\collectbox@code{\collectbox@endgroup\egroup#2}% \def\collectbox@code{\collectbox@endgroup\egroup#2}%
\collectbox@setgroup\bgroup \collectbox@setgroup\bgroup
\aftergroup\collectbox@code \aftergroup\collectbox@code
\collectbox@bgroup \collectbox@bgroup
} }
\newcommand\nocollectbox@[3]{% \newcommand\nocollectbox@[3]{%
\collectbox@mode \collectbox@mode
\collect@box\bgroup \collect@box\bgroup
\def\collectbox@code{#3\egroup#2}% \def\collectbox@code{#3\egroup#2}%
#1\bgroup #1\bgroup
\aftergroup\collectbox@code \aftergroup\collectbox@code
\collectbox@bgroup \collectbox@bgroup
} }
\newcommand\nocollectbox@to[4]{% \newcommand\nocollectbox@to[4]{%
\collectbox@mode \collectbox@mode
\collect@box to #1\bgroup \collect@box to #1\bgroup
\def\collectbox@code{#4\egroup#3}% \def\collectbox@code{#4\egroup#3}%
#2\bgroup #2\bgroup
\aftergroup\collectbox@code \aftergroup\collectbox@code
\collectbox@bgroup \collectbox@bgroup
} }
\newcommand*\collectboxcheckenv[1]{% \newcommand*\collectboxcheckenv[1]{%
\begingroup \begingroup
\def\@tempa{#1}% \def\@tempa{#1}%
\expandafter\endgroup \expandafter\endgroup
\ifx\@currenvir\@tempa \ifx\@currenvir\@tempa
\@collectboxisenv{#1}% \@collectboxisenv{#1}%
\fi \fi
} }
\def\@collectboxisenv#1{% \def\@collectboxisenv#1{%
\collectbox@noindent \collectbox@noindent
\collectboxenvtrue \collectboxenvtrue
\edef\@currenvir{\@currenvir\noexpand\empty}% \edef\@currenvir{\@currenvir\noexpand\empty}%
\let\collectbox@bgroup\collectbox@env@bgroup \let\collectbox@bgroup\collectbox@env@bgroup
\let\collectbox@endcode\collectbox@env@endcode \let\collectbox@endcode\collectbox@env@endcode
\let\collectbox@\collectbox@env \let\collectbox@\collectbox@env
\expandafter\ifx\csname end#1\endcsname\relax \expandafter\ifx\csname end#1\endcsname\relax
\expandafter\let\csname end#1\endcsname\collectbox@envend \expandafter\let\csname end#1\endcsname\collectbox@envend
\fi \fi
} }
\newif\ifcollectboxenv \newif\ifcollectboxenv
\let\collectbox@noindent\noindent \let\collectbox@noindent\noindent
\def\collectbox@env@endcode{\ifhmode\unskip\fi}% \def\collectbox@env@endcode{\ifhmode\unskip\fi}%
\def\collectbox@envend{\collectboxenvend}% \def\collectbox@envend{\collectboxenvend}%
\def\collectboxenvend{% \def\collectboxenvend{%
\egroup \egroup
\collectbox@currenvir \collectbox@currenvir
}% }%
\newcommand\collectboxtabular[3][c]{% \newcommand\collectboxtabular[3][c]{%
\collectbox@tab{tabular}{[#1]{#2}}{}{#3}{}% \collectbox@tab{tabular}{[#1]{#2}}{}{#3}{}%
} }
\newcommand\collectboxtabularstar[4][c]{% \newcommand\collectboxtabularstar[4][c]{%
\collectbox@tab{tabular*}{[#1]{#2}{#3}}{}{#4}{}% \collectbox@tab{tabular*}{[#1]{#2}{#3}}{}{#4}{}%
} }
\newcommand\collectboxarray[2]{% \newcommand\collectboxarray[2]{%
\collectbox@tab{array}{{#1}}{\(}{#2}{\)}% \collectbox@tab{array}{{#1}}{\(}{#2}{\)}%
} }
\def\collectbox@checkarray{% \def\collectbox@checkarray{%
\@ifpackageloaded{array}{% \@ifpackageloaded{array}{%
\let\collectbox@realarraycr\@arraycr \let\collectbox@realarraycr\@arraycr
\def\collectbox@setarraycr{% \def\collectbox@setarraycr{%
\let\@arraycr\collebox@cr \let\@arraycr\collebox@cr
\def\ialign{\let\@arraycr\collectbox@realarraycr \everycr {}\tabskip \z@skip \halign}% \def\ialign{\let\@arraycr\collectbox@realarraycr \everycr {}\tabskip \z@skip \halign}%
}% }%
}{% }{%
\let\collectbox@realarraycr\@tabularcr \let\collectbox@realarraycr\@tabularcr
\def\collectbox@setarraycr{% \def\collectbox@setarraycr{%
\let\@tabularcr\collebox@cr \let\@tabularcr\collebox@cr
\def\ialign{\let\noexpand\@tabularcr\noexpand\collectbox@realarraycr \everycr {}\tabskip \z@skip \halign}% \def\ialign{\let\noexpand\@tabularcr\noexpand\collectbox@realarraycr \everycr {}\tabskip \z@skip \halign}%
}% }%
}% }%
} }
\collectbox@checkarray \collectbox@checkarray
\AtBeginDocument{\collectbox@checkarray}% \AtBeginDocument{\collectbox@checkarray}%
\def\collectbox@dorealarraycr{% \def\collectbox@dorealarraycr{%
\expandafter\collectbox@realarraycr\collectbox@aftercrstuff \expandafter\collectbox@realarraycr\collectbox@aftercrstuff
} }
\let\collectbox@aftercrstuff\empty \let\collectbox@aftercrstuff\empty
\def\collectbox@tab#1#2#3#4#5{% \def\collectbox@tab#1#2#3#4#5{%
\begingroup \begingroup
\collectbox@mode \collectbox@mode
\def\collectbox@codeafter{#4\endgroup}% \def\collectbox@codeafter{#4\endgroup}%
\def\collectbox@endtabenv{\end{#1}#5\collectbox@end}% \def\collectbox@endtabenv{\end{#1}#5\collectbox@end}%
\def\collectbox@dotab{#3\begin{#1}#2}% \def\collectbox@dotab{#3\begin{#1}#2}%
\setbox\collectedbox\collect@box\bgroup \setbox\collectedbox\collect@box\bgroup
\collectbox@setgroup \collectbox@setgroup
\collectbox@setarraycr \collectbox@setarraycr
\afterassignment\collectbox@dotab \afterassignment\collectbox@dotab
\let\@let@token=% \let\@let@token=%
} }
\def\collebox@cr{% \def\collebox@cr{%
\@ifstar\collebox@@cr\collebox@@cr% \@ifstar\collebox@@cr\collebox@@cr%
} }
\def\collebox@@cr{% \def\collebox@@cr{%
\@ifnextchar[% \@ifnextchar[%
\collebox@@cr@opt \collebox@@cr@opt
{\collebox@@@cr{}}% {\collebox@@@cr{}}%
} }
\def\collebox@@cr@opt[#1]{% \def\collebox@@cr@opt[#1]{%
\collebox@@@cr{[#1]}% \collebox@@@cr{[#1]}%
} }
\def\collebox@@@cr#1{% \def\collebox@@@cr#1{%
\def\collectbox@aftercrstuff{#1}% \def\collectbox@aftercrstuff{#1}%
\expandafter\collebox@@@@cr \expandafter\collebox@@@@cr
\romannumeral-`0% \romannumeral-`0%
} }
\def\collebox@@@@cr{% \def\collebox@@@@cr{%
\@ifnextchar\egroup{\collectbox@dorealarraycr\collectbox@aftertab}{% \@ifnextchar\egroup{\collectbox@dorealarraycr\collectbox@aftertab}{%
\ifx\@let@token\noalign \ifx\@let@token\noalign
\expandafter\collectbox@handlenoalign \expandafter\collectbox@handlenoalign
\else \else
\expandafter\collectbox@dorealarraycr \expandafter\collectbox@dorealarraycr
\fi \fi
}% }%
} }
\def\collectbox@handlenoalign#1#2{% \def\collectbox@handlenoalign#1#2{%
\collectbox@dorealarraycr \collectbox@dorealarraycr
\noalign{\bgroup\aftergroup\collectbox@afternoalign#2}% \noalign{\bgroup\aftergroup\collectbox@afternoalign#2}%
} }
\def\collectbox@handlenextnoalign#1#2{% \def\collectbox@handlenextnoalign#1#2{%
\egroup \egroup
\noalign{\bgroup\aftergroup\collectbox@afternoalign#2}% \noalign{\bgroup\aftergroup\collectbox@afternoalign#2}%
} }
\def\collectbox@afternoalign{% \def\collectbox@afternoalign{%
\expandafter\collectbox@@afternoalign \expandafter\collectbox@@afternoalign
\romannumeral-`0% \romannumeral-`0%
} }
\def\collectbox@@afternoalign{% \def\collectbox@@afternoalign{%
\@ifnextchar\egroup{\egroup\collectbox@aftertab}{% \@ifnextchar\egroup{\egroup\collectbox@aftertab}{%
\ifx\@let@token\noalign \ifx\@let@token\noalign
\expandafter\collectbox@handlenextnoalign \expandafter\collectbox@handlenextnoalign
\else \else
\expandafter\egroup \expandafter\egroup
\fi \fi
}% }%
} }
\def\collectbox@aftertab{% \def\collectbox@aftertab{%
\collectbox@endtabenv \collectbox@endtabenv
\afterassignment\collectbox@codeafter \afterassignment\collectbox@codeafter
\let\@let@token=% \let\@let@token=%
} }
\endinput \endinput
%% %%
%% End of file `collectbox.sty'. %% End of file `collectbox.sty'.