summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/schemata/schemata.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-17 23:41:05 +0000
committerKarl Berry <karl@freefriends.org>2013-02-17 23:41:05 +0000
commit43a34c14d732c0fc71e5887210152c9df8110f8b (patch)
tree12e7c8f05f999f9606a6687faff659a55bb17495 /Master/texmf-dist/tex/generic/schemata/schemata.sty
parent1e7aa3e3846065276f35ea4d5822fd163aa71578 (diff)
schemata (18feb13)
git-svn-id: svn://tug.org/texlive/trunk@29144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/schemata/schemata.sty')
-rw-r--r--Master/texmf-dist/tex/generic/schemata/schemata.sty184
1 files changed, 184 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/schemata/schemata.sty b/Master/texmf-dist/tex/generic/schemata/schemata.sty
new file mode 100644
index 00000000000..8d971f6990b
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/schemata/schemata.sty
@@ -0,0 +1,184 @@
+%%
+%% This is file `schemata.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% schemata.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2013 by Charles P. Schaum <charles dot schaum at att dot net>
+%%
+%% This file may be distributed and/or modified under the conditions 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/12/01 or later.
+%%
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+\else
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{schemata}
+ [2013/02/14 v0.5 generic package to aid construction of topical categories]
+\fi
+\newbox\rhs%
+\newbox\lhs%
+\newdimen\rheight%
+\newdimen\lheight%
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+{\catcode`@=11
+\gdef\schemabox{\futurelet\testchar\schemab@x}
+\gdef\schemab@x{\ifx[\testchar \let\next\@schemabox%
+ \else \let\next\@schemab@x \fi \next}
+\gdef\@schemab@x#1{\@schemabox[0pt]{#1}}
+\gdef\@schemabox[#1]#2{%
+ \ifdim#1<1pt
+ \def\\{\egroup\hbox\bgroup\ignorespaces }%
+ \vbox{\hbox\bgroup\strut\ignorespaces #2\egroup}%
+ \else
+ \def\\{\hfil\egroup\hbox to #1\bgroup\ignorespaces }%
+ \vbox{\hbox to #1\bgroup\strut\ignorespaces #2\hfil\egroup}%
+ \fi
+}}\else
+\newcommand{\schemabox}[2][0pt]{%
+ \ifdim#1<1pt
+ \def\\{\egroup\hbox\bgroup\ignorespaces }%
+ \vbox{\hbox\bgroup\strut\ignorespaces #2\egroup}%
+ \else
+ \def\\{\hfil\egroup\hbox to #1\bgroup\ignorespaces }%
+ \vbox{\hbox to #1\bgroup\strut\ignorespaces #2\hfil\egroup}%
+ \fi
+}\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+{\catcode`@=11
+\gdef\schema{\futurelet\testchar\schem@}
+\gdef\schem@{\ifx[\testchar \let\next\@schema%
+ \else \let\next\@schem@ \fi \next}
+\gdef\@schem@#1#2{\@schema[open]{#1}{#2}}
+\gdef\@schema[#1]#2#3{%
+ \def\Option{#1}\def\Open{open}%
+ \ifx\Option\Open
+ \setbox\rhs=\vbox{#3}%
+ \rheight=\ht\rhs%
+ \advance\rheight\dp\rhs%
+ \advance\rheight by 1.44265ex%
+ \hbox{$\vcenter{#2}\basiclbrace{\rheight}\vcenter{#3}$}%
+ \else
+ \setbox\lhs=\vbox{#2}%
+ \lheight=\ht\lhs%
+ \advance\lheight\dp\lhs%
+ \advance\lheight by 1.44265ex%
+ \hbox{$\vcenter{#2}\kern-0.2em\basicrbrace{\lheight}\vcenter{#3}$}%
+ \fi
+}}\else
+\newcommand{\schema}[3][open]{%
+ \def\Option{#1}\def\Open{open}%
+ \ifx\Option\Open
+ \setbox\rhs=\vbox{#3}%
+ \rheight=\ht\rhs%
+ \advance\rheight\dp\rhs%
+ \advance\rheight by 1.44265ex%
+ \hbox{$\vcenter{#2}\basiclbrace{\rheight}\vcenter{#3}$}%
+ \else
+ \setbox\lhs=\vbox{#2}%
+ \lheight=\ht\lhs%
+ \advance\lheight\dp\lhs%
+ \advance\lheight by 1.44265ex%
+ \hbox{$\vcenter{#2}\kern-0.2em\basicrbrace{\lheight}\vcenter{#3}$}%
+ \fi
+}\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+{\catcode`@=11
+\gdef\Schema{\futurelet\testchar\Schem@}
+\gdef\Schem@{\ifx[\testchar \let\next\@Schema \else \let\next\@Schem@ \fi \next}
+\gdef\@Schem@#1#2#3#4{\@Schema[open]{#1}{#2}{#3}{#4}}
+\gdef\@Schema[#1]#2#3#4#5{%
+ \def\Option{#1}\def\Open{open}%
+ \ifx\Option\Open
+ \dimen0=#2%
+ \hbox{$\vcenter{\vskip1.44265\dimen0#4}\complexlbrace{#2}{#3}\vcenter{#5}$}%
+ \else
+ \dimen0=#2%
+ \hbox{$\vcenter{\vskip1.44265\dimen0#4}\kern-0.2em%
+ \complexrbrace{#2}{#3}\vcenter{#5}$}%
+ \fi
+}}\else
+\newcommand{\Schema}[5][open]{%
+ \def\Option{#1}\def\Open{open}%
+ \ifx\Option\Open
+ \dimen0=#2%
+ \hbox{$\vcenter{\vskip1.44265\dimen0#4}\complexlbrace{#2}{#3}\vcenter{#5}$}%
+ \else
+ \dimen0=#2%
+ \hbox{$\vcenter{\vskip1.44265\dimen0#4}\kern-0.2em%
+ \complexrbrace{#2}{#3}\vcenter{#5}$}%
+ \fi
+}\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+ \def\basiclbrace#1{%
+ \ifmmode\left.\vcenter{\vbox to #1{\vfil}}\right\lbrace\fi}
+\else
+ \newcommand{\basiclbrace}[1]{%
+ \ifmmode\left.\vcenter{\vbox to #1{\vfil}}\right\lbrace\fi}
+\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+ \def\basicrbrace#1{%
+ \ifmmode\left\rbrace\vcenter{\vbox to #1{\vfil}}\right.\fi}
+\else
+ \newcommand{\basicrbrace}[1]{%
+ \ifmmode\left\rbrace\vcenter{\vbox to #1{\vfil}}\right.\fi}
+\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+\def\complexlbrace#1#2{%
+ \dimen0=#1%
+ \dimen2=#2%
+ \ifdim\dimen0<0pt
+ \ifmmode\vcenter{\hbox{$\left.\vbox to 1.44265\dimen2{\vfil}\right\lbrace%
+ \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
+ \else
+ \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
+ \atop\left.\vbox to 1.44265\dimen2{\vfil}\right\lbrace$}}\fi
+ \fi
+}\else
+\newcommand{\complexlbrace}[2]{%
+ \dimen0=#1%
+ \dimen2=#2%
+ \ifdim\dimen0<0pt
+ \ifmmode\vcenter{\hbox{$\left.\vbox to 1.44265\dimen2{\vfil}\right\lbrace%
+ \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
+ \else
+ \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
+ \atop\left.\vbox to 1.44265\dimen2{\vfil}\right\lbrace$}}\fi
+ \fi
+}\fi
+\expandafter\ifx\csname newenvironment\endcsname\relax%
+\def\complexrbrace#1#2{%
+ \dimen0=#1%
+ \dimen2=#2%
+ \ifdim\dimen0<0pt
+ \ifmmode\vcenter{\hbox{$\left.\vbox to 1.44265\dimen2{\vfil}\right\rbrace%
+ \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
+ \else
+ \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
+ \atop\left.\vbox to 1.44265\dimen2{\vfil}\right\rbrace$}}\fi
+ \fi
+}\else
+\newcommand{\complexrbrace}[2]{%
+ \dimen0=#1%
+ \dimen2=#2%
+ \ifdim\dimen0<0pt
+ \ifmmode\vcenter{\hbox{$\left.\vbox to 1.44265\dimen2{\vfil}\right\rbrace%
+ \atop\vbox to -1.44265\dimen0{\vfil}$}}\fi
+ \else
+ \ifmmode\vcenter{\hbox{$\vbox to 1.44265\dimen0{\vfil}%
+ \atop\left.\vbox to 1.44265\dimen2{\vfil}\right\rbrace$}}\fi
+ \fi
+}\fi
+\endinput
+%%
+%% End of file `schemata.sty'.