diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:53:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:53:06 +0000 |
commit | 1f8578b9d04091cdb62c12a9b2d9f57b268ab318 (patch) | |
tree | f90919f89dae86687c0c98f117fe03b4b994b776 /Master | |
parent | d6b13fbc6d8704c91d60823a8ba0860834a37b2c (diff) |
cjw
git-svn-id: svn://tug.org/texlive/trunk@761 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjw-env.cls | 199 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjw-ltr.cls | 273 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwderiv.tex | 100 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwinteg.tex | 73 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwmacro.sty | 463 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwmath.sty | 441 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwoutl.sty | 187 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwphys.tex | 80 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwplain.sty | 255 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwplout.clo | 99 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwpltab.clo | 82 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwresize.sty | 226 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/cjw/cjwunits.sty | 89 |
13 files changed, 2567 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cjw/cjw-env.cls b/Master/texmf-dist/tex/latex/cjw/cjw-env.cls new file mode 100644 index 00000000000..84460a22d69 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjw-env.cls @@ -0,0 +1,199 @@ +%%-*- LaTeX -*-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% cjwenv.cls +% +% +% Class file for typesetting envelopes. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Title: cjwenv.cls +% Author: Colin J. Wynne <cwynne@brutus.mts.jhu.edu> +% Date: Tue Dec 31 13:10:56 1996 +% Last Rev.: +% +% Usage: +% +% Here is an example: +% +% \documentclass[business,11pt]{cjwenv} +% \address{% +% My Home Address \\ +% Street Name \\ +% City, ST ZIP} +% +% \begin{document} +% \begin{envelope}[c]{% +% Prof. Peter Schickele \\ +% USND Hoopole \\ +% Hoopole, ND 12345} +% \end{envelope} +% +% \begin{envelope}{% +% Dr. Seuss \\ +% Whoville, ?? 67890} +% \address[c]{% +% Horton \\ +% Lost \\ +% Hoboken, NJ 13579} +% \end{envelope} +% +% \end{document} + +% Declare the file version and date. +\def\fileversion{1.1} +\def\filedate{1998/10/5} + +% Identify the class. +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{cjw-env}% + [\filedate\space v\fileversion\space Envelope Class---CJW] + +% My printer puts the top of the landscape page on the opposite side +% of the printer from the envelope feed. Therefore, we offer the +% option of putting the output at the bottom of a standard page. +\newif \if@atbottom \@atbottomfalse + +% We set an envelope type with the following macro. +\newcommand{\envtype}[1]{% + \renewcommand{\do@envelope}{\csname env@#1\endcsname}} +\newcommand{\do@envelope}{} + +% Class options: +% +% For business envelopes. Other types should be handled thusly. +\DeclareOption{business}{\envtype{business}} +% For 6.5" business envelopes. +\DeclareOption{narrow}{\envtype{narrow}} +% For bottom printing. +\DeclareOption{bottom} {\@atbottomtrue} +% Default: pass to article. +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} + +% Pick a default envelope type. +\ExecuteOptions{business} +\ProcessOptions + +% Load primary class. +\LoadClass[12pt]{article} + +% All we care about is hieght, width, and offsets. Zero out +% everything else. +\newcommand{\reset@page}{% + \setlength{\oddsidemargin} {0.0pt} + \setlength{\topmargin} {0.0pt} + \setlength{\headheight} {0.0pt} + \setlength{\headsep} {0.0pt} + \setlength{\marginparsep} {0.0pt} + \setlength{\marginparwidth} {0.0pt} + \setlength{\footskip} {0.0pt} + % + \setlength{\parskip} {0.0pt} + \setlength{\parindent} {0.0pt} + % + \setlength{\textwidth} {\paperwidth} + \addtolength{\textwidth} {-1.0in} + \setlength{\textheight} {\paperheight} + \addtolength{\textheight} {-1.0in} + } + +% This is the business envelope code. +\newcommand{\env@business}{% + % Introduce a postscript special for landscape printing. + \special{landscape} + % Swap the height and width in TeX to match the landscape orientation. + \setlength{\@tempdima} {\paperheight} + \setlength{\paperheight} {\paperwidth} + \setlength{\paperwidth} {\@tempdima} + % + % Our business envelope has physical height of 4.125", and we will + % leave a half inch on either side as a margin. + \setlength{\textheight} { 3.125in} + \setlength{\voffset} {-0.500in} + % For bottom printing: + \if@atbottom + % This calculates the \voffset necessary to put the *physical* + % bottom off the envelope (half inch below printable area) flush + % bottom on the physical (landscap) page. + \setlength{\@tempdima} {\paperheight} + \addtolength{\@tempdima}{-1.0in} + \setlength{\@tempdimb} {\textheight} + \addtolength{\@tempdimb}{-\voffset} + \addtolength{\@tempdima}{-\@tempdimb} + % + \setlength{\voffset} {\@tempdima} + \fi + % We leave 0.75" horizontal margin on either side of a 9.5" + % envelope. + \setlength{\textwidth} { 8.000in} + \setlength{\hoffset} {-0.250in} + } + +% For a narrow (3.625" x 6.5") business envelope. +\newcommand{\env@narrow}{% + % Introduce a postscript special for landscape printing. + \special{landscape} + % Swap the height and width in TeX to match the landscape orientation. + \setlength{\@tempdima} {\paperheight} + \setlength{\paperheight} {\paperwidth} + \setlength{\paperwidth} {\@tempdima} + % + % Our envelope has physical height of 3.625", and we will + % leave a quarter inch on either side as a margin. + \setlength{\textheight} { 3.125in} + \setlength{\voffset} {-0.250in} + % For bottom printing: + \if@atbottom + % This calculates the \voffset necessary to put the *physical* + % bottom off the envelope (quarter inch below printable area) + % flush bottom on the physical (landscap) page. + \setlength {\@tempdima}{\paperheight} + \addtolength{\@tempdima}{-1.000in} + \setlength {\@tempdimb}{\textheight} + \addtolength{\@tempdimb}{-\voffset} + \addtolength{\@tempdima}{-\@tempdimb} + % + \setlength{\voffset} {\@tempdima} + \fi + % We leave 0.5" horizontal margin on either side of a 6.5" + % envelope. + \setlength{\textwidth} { 5.50in} + \setlength{\hoffset} {-0.50in} + } + +% How the sender's address is input. By default, it will be flush +% left/ragged right. An appropriate optional argument may be given. +\newcommand{\address}[2][l]{% + \gdef\@address{#2}\gdef\from@align{#1}} +\address{} + +% This does the actual page setup at the end of the preamble. It must +% be done here and not after the \begin{document} in order for all the +% page parameters to work out, it seems. +\AtBeginDocument{% + \reset@page\do@envelope} + +% The envelope environment sets the actual envelope. Mandatory +% argument is the recipient's address. Optional argument changes the +% alignment of that adress. There should probably be nothing in the +% actual environemnt, though in printing numerous envelopes one could +% put different return addresses in, or perhaps additional typesetting +% commands. +\newenvironment{envelope}[2][l]% + {\gdef\@recipient{#2}\gdef\recip@align{#1}} + {\do@envelope\clearpage + \thispagestyle{empty} + \vtop to \textheight{ + \hbox{% + \begin{tabular}{\from@align} + \@address + \end{tabular}} + \vfill + \hbox to \textwidth{\hss + \begin{tabular}{\recip@align} + \@recipient + \end{tabular}\hss} + \vfill}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\endinput +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/latex/cjw/cjw-ltr.cls b/Master/texmf-dist/tex/latex/cjw/cjw-ltr.cls new file mode 100644 index 00000000000..ea89cae934e --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjw-ltr.cls @@ -0,0 +1,273 @@ +%% +%% This is file `cjw-ltr.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-ltr.dtx (with options: `class') +%% +%% Copyright (C) 1995 by Colin J. Wynne +%% +%% This file is part of cjw-ltr, a class for creating modified standard +%% letters as well as German style letters under LaTeX2e. +%% +\def\fileversion{0.9} +\def\filedate{1997/01/01} +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{cjw-ltr} + [\filedate\space v\fileversion\space + Modified Letter Class for LaTeX2e---CJW] + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}} +\ProcessOptions + +\LoadClass{letter} +\setlength\headsep {25\p@} +\newlength{\letterskip} + \setlength{\letterskip}{0.7em} +\let\addresswidth\indentedwidth +\newlength\lblwd +{\setbox0=\hbox{Fax:\enskip}\global\setlength{\lblwd}{\wd0}} +\newcommand*{\faxlabel}{\hbox to\lblwd{Fax:\enskip\hfil}} +\newcommand*{\tellabel}{\hbox to\lblwd{Tel:\enskip\hfil}} + +\newcommand*{\fax}[1]{\def\faxnum{#1}} + \fax{} +\def\check@iffax{% + \ifx\@empty\faxnum\else + \edef\faxnum{\protect\faxlabel\faxnum} + \ifx\@empty\telephonenum\else + \edef\telephonenum{\protect\tellabel\telephonenum} + \fi\fi} +\def\opening#1{% + \check@iffax + \def\from@address{% + \ifx\@empty\fromaddress% + \@date% + \else% home address + \fromaddress% + \ifx\@empty\telephonenum\else% + \\ \telephonenum% + \fi% + \ifx\@empty\faxnum\else% + \\ \faxnum% + \fi% + \\*[\letterskip]\@date% + \fi} + \setbox0=\hbox{% + \begin{tabular}{l}\from@address\end{tabular}} + \global\setlength{\addresswidth}{\wd0} + \ifx\@empty\fromaddress + \thispagestyle{firstpage}% + \else + \thispagestyle{empty} + \fi + \noindent\hfill\box0 + \par + \vspace{2\letterskip}% + {\raggedright\toname\\ \toaddress\par}% + \vspace{2\letterskip}% + \noindent#1% + \setlength{\parindent}{20\p@} + \setlength{\parskip}{0\p@ \@plus\@ne\p@\relax} + \par\nobreak} +\long\def\closing#1{\par\nobreak\vspace{2\letterskip}% + \stopbreaks + \noindent\hfill + \parbox{\addresswidth}{\raggedright% + #1\\[6\letterskip]% + \ifx\@empty\fromsig + \fromname + \else + \fromsig + \fi\strut} + \par} +\let\unterschrift \signature +\let\absender \address +\let\ort \location +\let\telefon \telephone +\let\datum \date +\newcommand{\theday}{\number\day\relax} +\newcommand{\themonth}{% + \ifcase\month\or January\or February\or% + March\or April\or May\or June\or July\or August\or% + September\or October\or November\or December\fi} +\newcommand{\themonat}{% + \ifcase\month\or Januar\or Februar\or% + M\"arz\or April\or Mai\or Juni\or Juli\or August\or% + September\or Oktober\or November\or Dezember\fi} +\newcommand{\theyear}{\number\year\relax} +\newcommand{\heute}{den~\theday.\ \themonat\ \theyear} +\newcommand{\betreff}[2][Betreff]{% + \def\betreffname{#1}\long\def\@betreff{#2}} +\newcommand{\bezug}[2][Bezug]{% + \def\bezugname{#1}\long\def\@bezug{#2}} +\betreff[]{} +\bezug[]{} +\long\def\brief#1{% + \newpage + \setlength{\parindent}{0pt} + \setlength{\parskip}{0.7em} + \if@twoside \ifodd\c@page + \else\thispagestyle{empty} \hbox{}\newpage\fi + \fi + \c@page\@ne + \interlinepenalty=200 % Smaller than the TeXbook value + \@prozessan{\leavevmode\ignorespaces #1} + \date{\heute}} +\long\def\@prozessan#1{% + \@xproz #1!!@@@% + \ifx\@empty\toPLZ\else\@xproz #1@@@\fi% + \expandafter\@yproz \@tempa\\@@@% + \ifx\@empty\@tempc + \let\@tempd\@empty + \else + \expandafter\@zproz \@tempa\\@@@% + \ifx\@empty\@tempd + \else + \expandafter\@zproz \@tempa{}@@@% + \fi + \fi + \ifx\@empty\@tempb + \let\totitle\@empty \let\toname\@empty \let\toaddress\@empty + \else + \ifx\@empty\@tempc + \let\totitle\@empty + \ifx\@empty\toPLZ + \let\toname\@tempb \let\toaddress\@empty + \else + \let\toname\@empty \let\toaddress\@tempb + \fi + \else + \ifx\@empty\@tempd + \let\totitle\@empty \let\toname\@tempb \let\toaddress\@tempc + \else + \let\totitle\@tempb \let\toname\@tempc \let\toaddress\@tempd + \fi + \fi + \fi} +\long\def\@xproz #1!!#2@@@{\def\@tempa{#1}\def\toPLZ{#2}} +\long\def\@yproz #1\\#2@@@{\def\@tempb{#1}\def\@tempc{#2}\def\@tempd{}} +\long\def\@zproz #1\\#2\\#3@@@{\def\@tempc{#2}\def\@tempd{#3}} +\let\endbrief\endletter +\def\anrede#1{% + \check@iffax + \ifx\@empty\fromlocation + \def\@dateline{\@date} + \else + \def\@dateline{\fromlocation,\space\@date} + \fi + \null\vspace{1.2\letterskip} + \noindent\ignorespaces + \ifx\@empty\fromaddress% + \pagestyle{firstpage}% + {\raggedleft \@dateline}% + \else % Home address + \pagestyle{empty}% + {\raggedright% + \fromname \hfill \@dateline\\ + \fromaddress} + \ifx\@empty\telephonenum + \else + \\ \telephonenum + \fi + \ifx\@empty\faxnum + \else + \\ \faxnum + \fi + \fi + \par + \vspace{2.2\letterskip} + {\raggedright + \ifx\@empty\totitle + \else + \totitle \\ + \fi + \toname + \ifx\@empty\toaddress + \else + \\ \toaddress + \fi + \ifx\@empty\toPLZ + \else + \\*[0.6\letterskip]\toPLZ + \fi + \par} + \@checkbetreffbezug + \ifx\@empty\@betreff + \else + \vspace{\letterskip} + \ifx\@empty\betreffname + \else + \betreffname:\quad + \fi + \@betreff\par + \fi + \ifx\@empty\@bezug + \else + \vspace{1\letterskip} + \ifx\@empty\bezugname + \else + \bezugname:\quad + \fi + \@bezug\par + \fi + \vspace{1.4\letterskip}% + #1\par\nobreak} +\def\@checkbetreffbezug{% + \ifx\@empty\@betreff + \ifx\@empty\@bezug + \else + \ClassWarningNoLine{cjw-ltr}{% + Die \protect\betreff und \protect\bezug Befehlen sollen nur + \MessageBreak + zusammen verwendet werden. Ihnen fehlt die \MessageBreak + Betreff-Zeile.} + \fi + \else + \ifx\@empty\@bezug + \ClassWarningNoLine{cjw-ltr}{% + Die \protect\betreff und \protect\bezug Befehlen sollen nur + \MessageBreak + zusammen verwendet werden. Ihnen fehlt die \MessageBreak + Bezug-Zeile.} + \fi + \fi} +\long\def\gruss#1{\par\nobreak\vspace{2\letterskip}% + \stopbreaks + \noindent% + {\raggedright #1 \\[5\letterskip] + \ifx\@empty\fromsig + \fromname + \else + \fromsig + \fi} + \par + \vspace{\letterskip}} +\newcommand{\anlage}[1][Anlage]{% + \def\@tempa{n} \def\@tempb{#1} + \ifx\@tempa\@tempb + \renewcommand{\enclname}{Anlagen} + \else + \renewcommand{\enclname}{\@tempb} + \fi\encl} +\endinput +%% +%% End of file `cjw-ltr.cls'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwderiv.tex b/Master/texmf-dist/tex/latex/cjw/cjwderiv.tex new file mode 100644 index 00000000000..1608ad31bc5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwderiv.tex @@ -0,0 +1,100 @@ +%% +%% This is file `cjwderiv.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `deriv') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{cjwderiv.tex} + [\filedate\space v\fileversion\space + Derivative macros for cjwmath.sty---CJW] +\newcommand{\dd} [2]{\frac{d#1}{d#2}} +\newcommand{\ddt}[1]{\dd{#1}{t}} +\newcommand{\ddu}[1]{\dd{#1}{u}} +\newcommand{\ddv}[1]{\dd{#1}{v}} +\newcommand{\ddx}[1]{\dd{#1}{x}} +\newcommand{\ddy}[1]{\dd{#1}{y}} + +\newcommand{\sdd} [2]{\frac{d^2#1}{d#2^2}} +\newcommand{\sddx}[1]{\sdd{#1}{x}} +\newcommand{\sddy}[1]{\sdd{#1}{y}} +\newcommand{\sddt}[1]{\sdd{#1}{t}} +\newcommand{\sddu}[1]{\sdd{#1}{u}} +\newcommand{\sddv}[1]{\sdd{#1}{v}} +\newcommand{\pard} [2]{\frac{\partial#1}{\partial#2}} +\newcommand{\pardx}[1]{\pard{#1}{x}} +\newcommand{\pardy}[1]{\pard{#1}{y}} +\newcommand{\pardz}[1]{\pard{#1}{z}} +\newcommand{\pardu}[1]{\pard{#1}{u}} +\newcommand{\pardv}[1]{\pard{#1}{v}} +\newcommand{\pardt}[1]{\pard{#1}{t}} + +\newcommand{\spard} [2]{\frac{\partial^2#1}{\partial#2^2}} +\newcommand{\spardx}[1]{\spard{#1}{x}} +\newcommand{\spardy}[1]{\spard{#1}{y}} +\newcommand{\spardz}[1]{\spard{#1}{z}} +\newcommand{\spardu}[1]{\spard{#1}{u}} +\newcommand{\spardv}[1]{\spard{#1}{v}} +\newcommand{\spardt}[1]{\spard{#1}{t}} + +\newcommand{\spardxy}[1]{\frac{\partial^2#1}{\partial x\partial y}} +\newcommand{\spardyx}[1]{\frac{\partial^2#1}{\partial y\partial x}} +\newcommand{\spardxz}[1]{\frac{\partial^2#1}{\partial x\partial z}} +\newcommand{\spardzx}[1]{\frac{\partial^2#1}{\partial z\partial x}} +\newcommand{\spardyz}[1]{\frac{\partial^2#1}{\partial y\partial z}} +\newcommand{\spardzy}[1]{\frac{\partial^2#1}{\partial z\partial y}} +\endinput +%% +%% End of file `cjwderiv.tex'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwinteg.tex b/Master/texmf-dist/tex/latex/cjw/cjwinteg.tex new file mode 100644 index 00000000000..79dfa270315 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwinteg.tex @@ -0,0 +1,73 @@ +%% +%% This is file `cjwinteg.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `integ') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{cjwinteg.tex} + [\filedate\space v\fileversion\space + Integration macros for cjwmath.sty---CJW] +\def\integ{\mathop{\int}\limits} +\alias\latex@d\d + \renewcommand{\d}{\,d} +\newcommand{\dint}{\int\!\!\!\int} +\newcommand{\dinteg}{\mathop{\int\!\!\!\int}\limits} +\newcommand{\tint}{\int\!\!\!\int\!\!\!\int} +\newcommand{\tinteg}{\mathop{\int\!\!\!\int\!\!\!\int}\limits} +\newcommand{\flushintlim}[1]{{\phantom{#1} #1}} +\endinput +%% +%% End of file `cjwinteg.tex'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwmacro.sty b/Master/texmf-dist/tex/latex/cjw/cjwmacro.sty new file mode 100644 index 00000000000..4775697975f --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwmacro.sty @@ -0,0 +1,463 @@ +%% +%% This is file `cjwmacro.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `general') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cjwmacro} + [\filedate\space v\fileversion\space + Personal macros for LaTeX2e---CJW] +\newif\if@verbext \@verbextfalse +\DeclareOption{verbext}{\@verbexttrue} +\DeclareOption{psfig}{% + \PackageWarning{cjwmacro}% + {Obsolete option \CurrentOption. Use package `epsfig' instead.}} +\DeclareOption{pstricks}{% + \InputIfFileExists{pstricks.sty}{% + \InputIfFileExists{pst-node.tex}{}{% + \PackageError{cjwmacro}{File `pst-node.sty' not found.}{}}}% + {\PackageError{cjwmacro}{File `pstricks.sty' not found.}{}}} + +\DeclareOption{psplot}{\InputIfFileExists{pst-plot.tex}{}{% + \PackageError{cjwmacro}{File `pst-plot.tex' not found.}{}}} +\DeclareOption{draft}{% + \def\ssbreakbar{\hbox to 2in{\hrulefill}}} +\DeclareOption{final}{% + \ExecuteOptions{pstricks} + \def\ssbreakbar{% + \psset{linewidth=0.4pt,unit=1in}% + \pspicture(-2.5,-0.15)(2.5,0.15)% + \qdisk(0,0){0.04}% + \qdisk(0.33,0){0.02}% + \qdisk(-0.33,0){0.02}% + \pspolygon*(0.33,-0.02)(0.33,0.02)(1.75,0)% + \pspolygon*(-0.33,-0.02)(-0.33,0.02)(-1.75,0)% + \endpspicture}} +\DeclareOption*{% + \PackageWarning{cjwmacro}{Unknown option `\CurrentOption'}} +\ExecuteOptions{draft} +\ProcessOptions +\newcommand{\alias} [2]{\@ifdefinable #1{\let #1 #2}} +\alias\realias\let +\newcommand{\providealias}[2]{\@ifundefined #1{\let #1 #2}} +\RequirePackage{amstext} +\RequirePackage{xspace} +\providecommand{\intertext}[1]{\noalign{% + \penalty\postdisplaypenalty\addvspace{ 0.5\belowdisplayskip} + \vbox{\normalbaselines\noindent#1}% + \penalty\predisplaypenalty\addvspace{0.5\abovedisplayskip}}} +\alias\rem\intertext +\providecommand{\pagenofont} {\normalfont} +\providecommand{\declarefont} {\normalfont\bfseries\mathversion{bold}} +\providecommand{\altdeclarefont}{\normalfont\itshape} +\providecommand{\captionfont} {\normalfont\itshape} +\providecommand{\examplefont} {\normalfont} +\providecommand{\altexamplefont}{\normalfont\itshape} +\providecommand{\labelfont} {\normalfont\bfseries\mathversion{bold}} +\providecommand{\timelinefont} {\normalfont} +\providecommand{\titlefont} {\normalfont\bfseries\Large\mathversion{bold}} +\providecommand{\verbatimfont} {\normalfont\ttfamily} +\newcommand{\swapdef}[2]{{% + \let \@tempa #1\relax + \global\let #1 #2\relax + \global\let #2 \@tempa}} +\newcommand{\swapdim}[2]{{% + \@tempdima #1\relax + \global #1 #2\relax + \global #2 \@tempdima}} +\newcommand{\expandthree}[2]{% + \expandafter\expandafter\expandafter #1\expandafter #2} +\newcommand{\nth}[1]{{% + \@tempcnta = #1\relax + \ifnum \@tempcnta < 0\relax % Make sure our number is + \@tempcnta = -\@tempcnta % non-negative. + \fi + \ifnum \@tempcnta < 14\relax % Deal first with the + \ifnum \@tempcnta > 10\relax % exceptions for + \def\@tempa{th} % 11, 12, and 13. + \fi + \else + \loop \ifnum\@tempcnta > 9\relax % Loop until the recursive + \@tempcntb = \@tempcnta % remainder (mod 10) is + \divide \@tempcntb by 10\relax % a single digit in order + \multiply\@tempcntb by 10\relax % to successfully satisfy + \advance \@tempcnta by -\@tempcntb% the ordinality test. + \repeat + \def\@tempa{\ifcase\@tempcnta % Figure the proper label: + th% % 0th + \or st% % 1st + \or nd% % 2nd + \or rd% % 3rd + \else th% % nth + \fi} + \fi + #1\ensuremath{^{\text{\@tempa}}}}} % Superscript the label in + % math mode. +\alias\sst\scriptscriptstyle +\newcommand{\ssp}[1]{^{\sst#1}} +\newcommand{\ssb}[1]{_{\sst#1}} +\newcommand{\smiley}[1][\@smiley]{% + \edef\@sf{\spacefactor=\the\spacefactor}% + \unskip\spacefactor=1000\relax\space #1\@sf\xspace} +\newcommand{\@smiley}{% + {\ttfamily\raise 0.078em\hbox{:}\kern-0.1em{-}\kern-0.1em{)}}} +\newcommand{\emote}[1]{% + \smiley[\ensuremath{\langle}\emph{#1}\ensuremath{\rangle}]} +\newenvironment{pledge}% + {\ifx\@empty\@date + \PackageWarning{cjwmacro}{Date is not set.} + \fi + \parskip=2pt \parindent=0pt\relax + \null\vfill\begin{flushright} + \itshape\small} + {\\[5ex]\normalfont\footnotesize + \makebox[2in]{\hrulefill}\quad\@date\\ + \makebox[2in]{Colin J.~Wynne}\quad{\hphantom{\@date}}\\ + \end{flushright}} +\newcommand{\wnlpledge}[1][paper]{% + \ifx\@empty\@date + \PackageWarning{cjwmacro}{Date is not set.} + \fi + \parskip=2pt \parindent=0pt\relax + \null\vfill\begin{flushright} + \itshape\small + On my honour, I have neither given nor received\\ + any unacknowledged aid on this #1.\\[5ex] + \normalfont\footnotesize + \makebox[2in]{\hrulefill}\quad\@date\\ + \makebox[2in]{Colin J.~Wynne,~'94}\quad{\hphantom{\@date}}\\ + \end{flushright}} +\newcommand{\ssbreak}{\bigskip + \centerline{\ssbreakbar}\bigbreak} +\providecommand{\ssbreakbar}{} +\def\mathbox #1{\hbox{$\mathpalette\@mathbox{#1}$}} +\def\Mathbox #1#2{\hbox{#1$\mathpalette\@mathbox{#2}$}} +\def\@mathbox#1#2{#1#2} +\newcommand{\smush}{\relax + \ifmmode + \def\next{\mathpalette\math@smush} + \else + \let\next\make@smush + \fi \next} +\newcommand{\make@smush}[1]{\setbox0=\hbox{#1}\fin@smush} +\newcommand{\math@smush}[2]{\setbox0=\hbox{$\m@th#1{#2}$}\fin@smush} +\newcommand{\fin@smush}{\wd0=0pt \box0 } +\newcommand{\bigmathstrut} {\vphantom{\big()}} +\newcommand{\biggmathstrut}{\vphantom{\bigg()}} +\newcommand{\Bigmathstrut} {\vphantom{\Big()}} +\newcommand{\Biggmathstrut}{\vphantom{\Bigg()}} +\newcommand{\ie} {\emph{i.e.}\xspace} +\newcommand{\eg} {\emph{e.g.}\xspace} +\newcommand{\heisst}{d.h\null.\xspace} % \dh is taken. +\newcommand{\initials}[2]{% + \break@init #2 + \@ifdefinable #1{% + \global\edef#1{% + \noexpand\hbox{\@tempa.\noexpand\,\@tempb}% + \noexpand\@ifnextchar.{\noexpand\@}{.\noexpand\xspace}}}} +\def\break@init #1.#2.{% + \def\@tempa{#1}\def\@tempb{#2}} +\initials{\UN}{U.N.} +\initials{\US}{U.S.} +\initials{\AI}{A.I.} +\providecommand{\theday}{\number\day\relax} +\providecommand{\themonth}{% + \ifcase\month\or January\or February\or% + March\or April\or May\or June\or July\or August\or% + September\or October\or November\or December\fi} +\providecommand{\themonat}{% + \ifcase\month\or Januar\or Februar\or% + M\"arz\or April\or Mai\or Juni\or Juli\or August\or% + September\or Oktober\or November\or Dezember\fi} +\providecommand{\theyear}{\number\year\relax} +\providecommand{\today}{} +\renewcommand{\today}{\theday~\themonth, \theyear\xspace} +\providecommand{\heute}{} +\renewcommand{\heute}{den~\theday.\ \themonat\ \theyear\xspace} + \alias\gdate\heute +\renewcommand{\ps@plain}{% + \let\@mkboth \@gobbletwo + \let\@oddhead \@empty + \let\@evenhead\@empty + \def\@oddfoot{\pagenofont\hfil\thepage\hfil} + \let\@evenfoot\@oddfoot} +\newcommand{\ps@topright}{% + \let\@mkboth \@gobbletwo + \def\@oddhead{\pagenofont\hfil\thepage} + \let\@evenhead\@oddhead + \let\@oddfoot \@empty + \let\@evenfoot\@empty} +\newlength{\timelineskip} +\setlength{\timelineskip}{1.75in} +\newcommand{\timeline}[2][l]{% + \noindent\hangindent=\timelineskip + \makebox[\timelineskip][#1]{\timelinefont{#2}}\ignorespaces} +\let\endtimeline\relax +\@ifundefined{c@section} + {\newcounter{declare}} + {\newcounter{declare}[section] + \renewcommand{\thedeclare}{\thesection.\arabic{declare}}} +\newlength{\declareindent} + \setlength{\declareindent}{0pt} +\newcommand{\@declare} [1]{{\declarefont#1:}\quad} +\newcommand{\@altdeclare}[1]{{\altdeclarefont#1:}\quad} +\newenvironment{declaration*}[1]% + {\medbreak\noindent\ignorespaces + \@declare{#1}\ignorespaces}% + {\kern0pt\nobreak\smallskip} +\newenvironment{altdeclaration*}[1]% + {\medbreak\noindent\ignorespaces + \@altdeclare{#1}\ignorespaces}% + {\kern0pt\nobreak\smallskip} +\newenvironment{declaration}[1]% + {\medbreak\refstepcounter{declare} + \noindent\ignorespaces + \ifnum\declareindent = 0\relax% + \@declare{\thedeclare\quad #1} + \else + \makebox[\declareindent]{\@declare{\thedeclare\hss #1}} + \fi\ignorespaces} + {\kern0pt\nobreak\smallskip} +\newenvironment{altdeclaration}[1]% + {\medbreak\noindent\ignorespaces + \refstepcounter{declare} + \ifnum\declareindent = 0\relax + \@altdeclare{\thedeclare\quad #1} + \else + \makebox[\declareindent]{\@altdeclare{\thedeclare\hss #1}} + \fi\ignorespaces} + {\kern0pt\nobreak\smallskip} +\def\declare #1#2\par{% + \begin{declaration*}{#1}#2\end{declaration*}\par} +\def\altdeclare #1#2\par{% + \begin{altdeclaration*}{#1}#2\end{altdeclaration*}\par} +\def\ndeclare #1#2\par{% + \begin{declaration}{#1}#2\end{declaration}\par} +\def\altndeclare#1#2\par{% + \begin{altdeclaration}{#1}#2\end{altdeclaration}\par} +\providecommand{\corollary} {\declare{Corollary}} +\providecommand{\definition} {\declare{Definition}} +\providecommand{\lemma} {\declare{Lemma}} +\providecommand{\proposition} {\declare{Proposition}} +\providecommand{\theorem} {\declare{Theorem}} +\providecommand{\note} {\altdeclare{Note}} + +\providecommand{\ncorollary} {\ndeclare{Corollary}} +\providecommand{\ndefinition} {\ndeclare{Definition}} +\providecommand{\nlemma} {\ndeclare{Lemma}} +\providecommand{\nproposition}{\ndeclare{Proposition}} +\providecommand{\ntheorem} {\ndeclare{Theorem}} +\providecommand{\nnote} {\altndeclare{Note}} +\providecommand{\behaupt} {\declare{Behauptung}} +\providecommand{\nbehaupt} {\ndeclare{Behauptung}} +\newcommand{\allndeclares}{% + \let\declare \ndeclare + \let\altdeclare \altndeclare} +\newenvironment{proof}[1][Proof]% + {\smallbreak\noindent{\altdeclarefont#1:}% + \quad\ignorespaces}% + {\qed} +\newenvironment{beweis}[1][Beweis]% + {\smallbreak\noindent{\altdeclarefont#1:}% + \quad\ignorespaces}% + {\qed} +\providecommand{\qed}{} + \renewcommand{\qed}{% + {\unskip\nobreak\hfil\penalty 50% + \hskip 2em\hbox{}\nobreak\hfil\qedsymbol% + \parfillskip=0pt \finalhyphendemerits=0 \par}} +\providecommand{\qedsymbol}{} + \renewcommand{\qedsymbol}{\lower 0.35ex\hbox{$\diamondsuit$}} + \newcommand{\qedbox}{\vrule height4pt width3pt depth2pt} +\newcommand{\Case}{\@ifstar{\@starCase}{\@Case}} +\newcommand{\@starCase}[1]{\@@Case{#1}} +\newcommand{\@Case}[1]{\@@Case{(#1)}} +\newcommand{\@@Case}[1]{% + \noindent{\declarefont#1}\quad\ignorespaces} +\alias\Fall\Case +\newcommand{\contra}{\ensuremath{\Rightarrow\Leftarrow}} +\newenvironment{example*}% + {\@nameuse{declaration*}{Example}\examplefont} + {\medbreak} +\newenvironment{altexample*}% + {\@nameuse{declaration*}{Example}\examplefont} + {\medbreak} +\newenvironment{example}% + {\declaration{Example}\examplefont} + {\medbreak} +\newenvironment{altexample}% + {\declaration{Example}\examplefont} + {\medbreak} +\newcounter{problem} + \setcounter{problem}{0} +\renewcommand{\theproblem}{\arabic{problem}} +\renewcommand{\p@problem}{} +\DeclareRobustCommand{\Page}{% + \@ifstar{\@Page{}}{\@Page{\#}}} +\def\@Page#1{% + \@ifnextchar [{\@@Page{#1}}{\@@Page{#1}[]}} +\def\@@Page#1[#2]#3#4{% + \def\@tempa{#2}% + \ifx\@empty\@tempa% + \let\@tempb\@tempa% + \else% + \edef\@tempb{\@tempa,~}% + \fi% + (\@tempb p.\,#3, #1{#4})} +\newenvironment{statement}[1][\null]% + {\def\@tempa{#1}\def\@tempb{\null}% + \ifx\@tempa\@tempb% + \def\@tempc{\null}% + \else% + \def\@tempc{\altdeclarefont\@tempa\quad}% + \fi% + \declarefont{\@tempc}\ignorespaces} + {\removelastskip\nopagebreak\smallskip} +\newenvironment{problem}% + {\setcounter{equation}{0}% + \gdef\theequation{\theproblem.\arabic{equation}}% + \removelastskip\medbreak% + \refstepcounter{problem}% + \noindent\theoutlabel{\theproblem.}% + \statement} + {\endstatement} +\newenvironment{problem*}% + {\removelastskip\medbreak% + \noindent\statement} + {\endstatement} +\alias \aufgabe \problem +\realias\endaufgabe\endproblem +\newcounter{teil} [problem] +\newcounter{steil}[teil] +\renewcommand{\theteil} {(\alph{teil})} + \renewcommand{\p@teil} {\theproblem} +\renewcommand{\thesteil} {(\roman{steil})} + \renewcommand{\p@steil}{\p@teil\theteil} +\newenvironment{teil}[1][2]% + {\@tempcnta=#1\advance\@tempcnta by -1\relax + \ifnum\@tempcnta < 1\relax + \leftskip=0pt\relax + \else + \leftskip=\@tempcnta\outlindent + \fi + \refstepcounter{teil} + \addvspace{\medskipamount}% + \noindent\theoutlabel{\theteil}% + \ignorespaces} + {\par\smallbreak} +\newenvironment{steil}[1][3]% + {\@tempcnta=#1\advance\@tempcnta by -1\relax + \ifnum\@tempcnta < 1\relax + \leftskip=0pt\relax + \else + \leftskip=\@tempcnta\outlindent + \fi + \refstepcounter{steil} + \addvspace{\medskipamount}% + \noindent\theoutlabel{\thesteil}% + \ignorespaces} + {\par\smallbreak} +\realias\part \teil +\realias\endpart \endteil +\alias \ppart \steil +\realias\endppart\endsteil +\long\def\@makefntext#1{% + \parindent 1em\noindent\hangindent=\parindent% + \hb@xt@ 1em{\hss \llap{\@makefnmark} }#1} +\newlength{\textdisplayindent} +\newenvironment{display}[2][] + {\vadjust{\penalty\predisplaypenalty} + \@newline[\abovedisplayskip]% + \begingroup% + #1% + \begin{tabular}{@{\null\hspace{\textdisplayindent}\null}#2}} + {\end{tabular}\endgroup + \vadjust{\penalty\postdisplaypenalty} + \@newline[\belowdisplayskip]\ignorespaces} +\if@verbext +\newcounter{vfline} +\renewcommand{\thevfline}{\arabic{vfline}} +\providecommand{\uncatcodespecials}{% + \def\do##1{\catcode`##1=12 }\dospecials} +\providecommand{\verbfile}[2][1]{% + \par\begingroup\@vf@lines{#1}\input{#2}\relax\endgroup} +\providecommand{\verbfilenolines}[1]{% + \par\begingroup\@vf@nolines\input{#1}\relax\endgroup} +\newcommand{\@vf@lines}[1]{% + \verbatimfont + \setcounter{vfline}{#1} + \addtocounter{vfline}{-1} + \setlength{\parindent}{0pt} + \setlength{\parskip}{0pt} + \def\par{\leavevmode\endgraf} + \obeylines \uncatcodespecials \obeyspaces + \everypar{\null\stepcounter{vfline}% + \llap{\scriptsize\thevfline\quad}\null}} +\newcommand{\@vf@nolines}{% + \verbatimfont + \setlength{\parindent}{0pt} + \setlength{\parskip}{0pt} + \def\par{\leavevmode\endgraf} + \obeylines \uncatcodespecials \obeyspaces + \everypar{\null}} +\fi +\AtBeginDocument{% + \setlength{\parindent} {20pt} + \setlength{\parskip} { 2pt plus 1pt} + \setlength{\textdisplayindent}{\parindent}} +\endinput +%% +%% End of file `cjwmacro.sty'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwmath.sty b/Master/texmf-dist/tex/latex/cjw/cjwmath.sty new file mode 100644 index 00000000000..e13b9601efd --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwmath.sty @@ -0,0 +1,441 @@ +%% +%% This is file `cjwmath.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `math') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cjwmath} + [\filedate\space v\fileversion\space + Math macros for LaTeX2e---CJW] +\newif \if@amsmath +\newif \if@derivatives +\newif \if@integrals +\newif \if@physics +\DeclareOption{amsmath} {\@amsmathtrue} +\DeclareOption{derivs} {\@derivativestrue} +\DeclareOption{integrals}{\@integralstrue} +\DeclareOption{physics} {\@physicstrue} +\DeclareOption{units}{% + \PackageWarning{cjwmath}% + {Obsolete option \CurrentOption. Use package `cjwunits' instead.}} +\DeclareOption*{% + \PackageWarning{cjwmath}{Unknown option `\CurrentOption'}} +\ProcessOptions +\RequirePackage{cjwmacro} +\RequirePackage{amssymb} +\RequirePackage{amstext} +\RequirePackage{bbm} +\if@amsmath + \RequirePackage{amsmath} +\fi +\DeclareRobustCommand{\NewMathOp}{% + \@ifstar{\@makenewop{\displaylimits}} + {\@makenewop{\nolimits}}} +\def\@makenewop#1{% + \@ifnextchar [{\@@makenewop{#1}} + {\@@makenewop{#1}[\operator@font]}} +\def\@@makenewop#1[#2]#3#4{% + \DeclareRobustCommand{#3}{% + \mathop{\kern\z@{#2{#4}}}#1}} +\swapdef{\epsilon}{\varepsilon} +\swapdef{\rho}{\varrho} +\swapdef{\nothing}{\varnothing} +\alias\leer\nothing +\alias\@@exists\exists + \renewcommand{\exists}{\mathrel{\@@exists}} +\alias\@@forall\forall + \renewcommand{\forall}{\mathrel{\@@forall}} +\newcommand{\st}{\mathrel{\ni}} +\newcommand{\WLOG}{Without loss of generality\xspace} +\newcommand{\Wlog}{without loss of generality\xspace} +\newcommand{\obda}{o.B.d.A.\xspace} +\newcommand{\fp}{floating-point\xspace} +\newcommand{\pneg}{\phantom{-}} +\newcommand{\peq}{\phantom{=}} +\newcommand{\anglebrackets}[1]{% + \left\langle #1 \right\rangle} +\newcommand{\curlybrackets}[1]{% + \left\{ #1 \right\}} +\newcommand{\squarebrackets}[1]{% + \left[ #1 \right]} +\newcommand{\vertbrackets}[1]{% + \left| #1 \right|} +\newcommand{\Vertbrackets}[1]{% + \left\| #1 \right\|} +\newcommand{\noarg}{\,\cdot\,} +\newcommand{\ee}[1]{\times10^{#1}} +\newcommand{\half}{\sfrac12} +\newcommand{\ninfty}{-\infty} +\newcommand{\fcn}[2]{\colon{#1}\rightarrow{#2}} + \newcommand{\mapping}[3]{{#1}\fkt{#2}{#3}} +\alias\fkt\fcn +\newcommand{\restr}[2][\big]{\kern -.1em #1|_{#2}} +\if@amsmath + \realias\choose\binom +\else + \renewcommand{\choose}[2]{{{#1}\atopwithdelims(){#2}}} +\fi +\newcommand{\mchoose}[2]{% + \mathchoice% + {\left(\kern-0.48em\choose{#1}{#2}\kern-0.48em\right)} + {\left(\kern-0.30em + \choose{\smash{#1}}{\smash{#2}}\kern-0.30em\right)} + {\left(\kern-0.30em + \choose{\smash{#1}}{\smash{#2}}\kern-0.30em\right)} + {\left(\kern-0.30em + \choose{\smash{#1}}{\smash{#2}}\kern-0.30em\right)} + } +\newcommand{\Comb}[2]{% % C + {}_{#1}{\operator@font C}_{#2}} % #1 #2 +\newcommand{\Komb}[2]{% % #2 + {\operator@font Ko}_{#1}^{#2}} % Ko +\newcommand{\Kombun}[2]{\Komb{#1,\neq}{#2}} % #1 +\newcommand{\Perm}[2]{% % #2 + {\operator@font Pe}_{#1}^{#2}} % Pe +\newcommand{\Permun}[2]{\Perm{#1,\neq}{#2}} % #1 +\newcommand{\set}[3][|]{{% + \newdimen\@tempdimd% + \setbox0=\mathbox{#2}\@tempdima=\ht0 \@tempdimb=\dp0% + \setbox0=\mathbox{#3}\@tempdimc=\ht0 \@tempdimd=\dp0% + \ifdim\@tempdimc > \@tempdima + \@tempdima=\@tempdimc + \fi + \ifdim\@tempdimd > \@tempdimb + \@tempdimb=\@tempdimb + \fi + \def\@tempa{\vrule width0pt height\@tempdima depth\@tempdimb} + \def\@tempb{#1} + \ifx\@empty\@tempb + \def\@tempb{.} + \fi + \left.\left\{ \@tempa{#2} \,\expandafter\right\@tempb\,{#3} \right\} }} +\alias\setl\set +\alias\setr\set +\newcommand{\lvl}[2][\alpha]{\Gamma\ssb{#2}\ssp{(#1)}} +\if@amsmath + \newcommand{\fset}[1]{\Tilde{#1}} +\else + \newcommand{\fset}[1]{\tilde{#1}} +\fi +\newcommand{\flvl}[2][\alpha]{\lvl[#1]{\fset{#2}}} +\alias\coll\mathcal +\alias\scomp\setminus +\alias\coset\backslash +\newcommand{\symmdiff}{% + \mathbin{\text{\footnotesize$\bigtriangleup$}}} +\newcommand{\seq} [1] {\curlybrackets{#1}} +\newcommand{\inset} [2][1]{\in\{ #1,\ldots,#2 \}} +\newcommand{\inrange}[2][1]{ = #1,\ldots,#2} +\if@derivatives + \InputIfFileExists{cjwderiv.tex}{}{% + \PackageWarning{cjwmath}{Option `cjwderiv.tex' not found.} + \@@derivativesfalse} +\fi +\if@integrals + \InputIfFileExists{cjwinteg.tex}{}{% + \PackageWarning{cjwmath}{Option `cjwinteg.tex' not found.} + \@@integralsfalse} +\fi +\alias\alg\mathbbm +\alias\field\mathbbm +\newcommand{\C}{\field{C}} % Complex +\newcommand{\E}{\field{E}} % Euclidean (also Evens) +\alias\latex@H\H % Quaternions + \renewcommand{\H}{\field{H}} % (Hamiltonian field) +\newcommand{\N}{\field{N}} % Natural numbers +\newcommand{\Q}{\field{Q}} % Rationals +\newcommand{\R}{\field{R}} % Reals +\newcommand{\Z}{\field{Z}} % Integers +\newcommand{\pr}{\field{P}} % Primes +\NewMathOp {\Aut}{Aut} % Automorphisms +\NewMathOp {\End}{End} % Endomorphisms +\NewMathOp {\GL}{GL} % General Linear +\NewMathOp {\Inn}{Inn} % Inner products +\NewMathOp {\Pin}{Pin} % Pin +\NewMathOp {\SL}{SL} % Special Linear +\NewMathOp {\SO}{SO} % Special Orthogonal +\NewMathOp {\SU}{SU} % Special Unitary +\NewMathOp[\mathfrak]{\Sn}{S} % Symmetric +\NewMathOp {\Spin}{Spin} % Spin +\NewMathOp {\Sp}{Sp} % Symplectic +\NewMathOp {\Unit}{U\kern 0pt}% Unitary +\NewMathOp {\Orth}{O\kern 0pt}% Orthogonal +\NewMathOp[\mathfrak]{\slin}{sl} % Tangent group to SL +\NewMathOp[\mathfrak]{\so}{o\kern 0pt} % skew orthogonal +\NewMathOp[\mathfrak]{\sp}{sp} % skew symplectic +\NewMathOp[\mathfrak]{\su}{u\kern 0pt} % skew hermitian +\alias\mtx\mathcal +\newcommand{\nullmtx}{\mtx\Theta} +\newcommand{\mnorm}[1]{% + \left\vert\kern-0.9pt\left\vert\kern-0.9pt\left\vert #1 + \right\vert\kern-0.9pt\right\vert\kern-0.9pt\right\vert} +\newcommand{\lie}[1]{\squarebrackets{#1}} +\NewMathOp{\Spur}{Spur} +\NewMathOp{\Tr}{Tr} +\NewMathOp{\Diag}{Diag} +\if@amsmath + \newenvironment{arbmatrix}[2]% + {\def\@tempa{#2}\left#1 \matrix}{\endmatrix \right\@tempa} +\else + \newcommand{\arbmatrix}[3]{\left#1 \matrix{#2} \right#3} + \providecommand{\bmatrix}[1]{\arbmatrix[{#1}]} + \providecommand{\vmatrix}[1]{\arbmatrix|{#1}|} +\fi +\newlength{\numoffset} +{\setbox0=\hbox{$\Bigmathstrut$} + \@tempdima=0.8\ht0\relax + \global\numoffset\@tempdima} +\newcommand{\Number}[2][-\numoffset]{% + \@tempdima=#1\relax + \smash{\hbox{\raise\@tempdima\@bignumber{#2}}}} +\newcommand{\@bignumber}[1]{\hbox{\LARGE$#1$}} +\def\bignumber #1{\multicolumn{2}{c}{\Number{#1}}} +\def\Bignumber[#1]#2{\multicolumn{2}{c}{\Number[#1]{#2}}} +\newcommand{\Zero}[1][-\numoffset]{\Number[#1]{0}} +\def\bigzero {\bignumber{0}} +\def\Bigzero[#1]{\Bignumber[#1]{0}} +\if@amsmath + \newcommand{\iidiagi}[4][-\numoffset]{% % 2 0 + \begin{bmatrix} % 3 + #2 & & \Bigzero[#1] \\ % . + & #3 & & \\ % . + \Bigzero[#1] & \ddots & \\ % 0 4 + & & & #4 + \end{bmatrix}} + \newcommand{\idiagii}[4][-\numoffset]{% % 2 0 + \begin{bmatrix} % . + #2 & & \Bigzero[#1] \\ % . + & \ddots & & \\ % 3 + \Bigzero[#1] & #3 & \\ % 0 4 + & & & #4 + \end{bmatrix}} + \newcommand{\idiagi}[3][-1.2pt]{% % 2 0 + \begin{bmatrix} % . + #2 & \Bigzero[#1] \\ % . + & \ddots & \\ % . + \Bigzero[#1] & #3 % 0 3 + \end{bmatrix}} +\else + \newcommand{\iidiagi}[4][-\numoffset]{% % 2 0 + \matrix{% % 3 + #2 & & \Bigzero[#1] \\ % . + & #3 & & \\ % . + \Bigzero[#1] & \ddots & \\ % 0 4 + & & & #4}} + \newcommand{\idiagii}[4][-\numoffset]{% + \pmatrix{% % 2 0 + #2 & & \Bigzero[#1] \\ % . + & \ddots & & \\ % . + \Bigzero[#1] & #3 & \\ % 3 + & & & #4}} % 0 4 + % + \newcommand{\idiagi}[3][-1.2pt]{% % 2 0 + \pmatrix{% % . + #2 & \Bigzero[#1] \\ % . + & \ddots & \\ % . + \Bigzero[#1] & #3}} % 0 3 +\fi +\newcommand{\@trans}[2][]{^{#1\text{\normalfont\textsf{t}}#2}} +\newcommand{\trans} [1][]{\@trans[]{#1}} +\newcommand{\trinv} {\@trans[-]{}} +\newcommand{\ct}[1]{\conj{#1}\trans} +\alias\sarvec\vec +\alias\arvec \overrightarrow +\renewcommand{\vec}[1]{\Mathbox{\boldmath}{#1}} +\if@amsmath + \newcommand{\bvec}[1]{% + \begin{bmatrix}#1\end{bmatrix}} + \newcommand{\pvec}[1]{% + \begin{pmatrix}#1\end{pmatrix}} + \alias\brvec\bvec + \alias\prvec\pvec +\else + \newcommand{\bvec}[1]{\bmatrix{#1}} + \newcommand{\pvec}[1]{\pmatrix{#1}} +\fi +\newcommand{\nullvec}{\vec{0}} +\newcommand{\dotp}[1]{\anglebrackets{#1}} +\newcommand{\vdotp}[1]{\@vdotp#1@@@} +\def\@vdotp #1,#2@@@{\dotp{\vec #1,\vec #2}} +\newcommand{\del} {\vec\nabla} +\alias\@@div\div +\renewcommand{\div}{\del\dot} +\newcommand{\curl} {\del\cross} +\newcommand{\lapl} {\del^2} +\alias\huelle\squarebrackets +\newcommand{\by}{\mathord{\times}} +\alias\mal \times +\alias\cross \times +\alias\iso \simeq +\alias\nsubgrp \trianglelefteq +\realias\cong \equiv +\alias\adj\leftrightarrow +\providecommand{\Box}{} +\renewcommand{\Box}{\mathbin{\square}} +\newcommand{\teilt}{\mathbin{|}} + \alias\divides\teilt +\newcommand{\defeq}{\stackrel{\text{def}}{=}} +\newcommand{\uminus}{% + \,\,{\mathbin{\cup\kern-.6em{\raise.05em% + \hbox{-\negthinspace-\kern-.25em-}}}}\,\,} +\newcommand{\Uminus}{% + \mathop{\bigcup\kern-0.9em{\raise.05em% + \hbox{-\negthinspace-\kern-.25em-}}}} +\providecommand{\implies}{\;\Longrightarrow\;} + \alias\then\implies +\if@amsmath + \newcommand{\when}{\DOTSB \;\Longleftarrow \;} +\else + \newcommand{\when}{\;\Longleftarrow \;} +\fi +\newcommand{\limplies}{\llap{$\implies$}\quad} +\newcommand{\sfrac}[2]{% + \hbox{\kern 0.1em% + \raise 0.5ex\hbox {\scriptsize$#1$}% + \kern -0.1em $/$% + \kern -0.15em% + \lower 0.25ex\hbox {\scriptsize$#2$}}% + \kern 0.2em} +\providecommand{\tfrac}{\sfrac} +\providecommand{\dfrac}[2]{{{#1}\over{#2}}} +\alias\sbar\bar + \renewcommand{\bar}[1]{\overline{#1}} +\alias\stilde\tilde + \alias\retilde\widetilde +\alias\shat\hat + \realias\hat\widehat +\renewcommand{\Im}{% + \mathop{\mathfrak{Im}}} +\renewcommand{\Re}{% + \mathop{\mathfrak{Re}}} +\alias\conj \bar +\newcommand{\inv}{^{-1}} +\@ifundefined{mathscript} + {\newcommand{\Pow}{\raise 0.4ex\Mathbox{\Large}{\wp}}} + {\NewMathOp[\mathscript]{\Pow}{P}} +\alias\Pot\Pow +\newcommand{\1}{\mathbbm{1}} +\alias\acos\arccos +\alias\asin\arcsin +\alias\atan\arctan +\alias\abs \vertbrackets +\alias\ord \abs +\alias\cyc \anglebrackets +\alias\norm\Vertbrackets +\newcommand{\dsum}{\mathop{\sum\sum}\limits} +\newcommand{\tsum}{\mathop{\sum\sum\sum}\limits} +\newcommand{\nsum}{\mathop{\sum\sum\cdots\sum}\limits} +\NewMathOp*{\ulim}{lim\raise0.4ex\mathbox{\mathord{\smash{\uparrow}}}} +\NewMathOp*{\dlim}{lim\raise0.4ex\mathbox{\mathord{\smash{\downarrow}}}} +\NewMathOp*{\argmax}{arg\,max} % arg min +\NewMathOp*{\argmin}{arg\,min} % arg min +\NewMathOp {\Aff} {Aff} % Affine hull +\NewMathOp {\Bild} {Bild} % Bild +\NewMathOp {\Cone} {Cone} % Cone +\NewMathOp {\Conv} {Conv} % Convex hull +\NewMathOp {\Core} {Core} % Fuzzy set core +\NewMathOp {\diam} {diam} % diameter +\NewMathOp {\dom} {dom} % Domain +\NewMathOp {\Epi} {Epi} % Epigraph +\NewMathOp*{\esssup}{ess\,sup} % Essential supremum +\NewMathOp {\fl} {fl} % float-point +\NewMathOp {\ggT} {ggT} % ggT +\NewMathOp {\Grad} {Grad} % Grad +\NewMathOp {\Hypo} {Hypo} % Hypograph +\NewMathOp {\Int} {Int} % Interior +\NewMathOp {\Kern} {Kern} % Kernel +\NewMathOp {\kgV} {kgV} % kgV +\NewMathOp {\Lin} {Lin} % Linear hull +\NewMathOp {\lcm} {lcm} % LCM +\NewMathOp {\Ord} {Ord} % order +\NewMathOp {\proj} {proj} % Projection +\NewMathOp {\Rang} {Rang} % Rang +\NewMathOp {\range} {range} % Range +\NewMathOp {\Rank} {Rank} % Rank +\NewMathOp {\rot} {rot} % Rotation +\NewMathOp {\Span} {Span} % Span +\NewMathOp {\val} {val} % value +\if@physics + \InputIfFileExists{cjwphys.tex}{}{% + \PackageWarning{cjwmath}{Option `cjwphys.tex' not found.} + \@@physicsfalse} +\fi +\NewMathOp{\Prob} {P} % Probability operator +\NewMathOp{\Corr} {Corr} % Correlation +\NewMathOp{\Cov} {Cov} % Covariance +\NewMathOp{\Expct}{E} % Expectation +\NewMathOp{\SD} {SD} % Standard Deviation. +\NewMathOp{\Var} {Var} % Variance +\newcommand{\given}{\,|\,} +\alias\distrib\sim +\NewMathOp{\Bin} {Bin} % Binary dist. + \newcommand{\Nbin}{-\!\Bin} % Negative Binom. +\NewMathOp{\Exp} {Exp} % Exponential dist. +\NewMathOp{\Geom}{Geom} % Geometric dist. +\NewMathOp{\Norm}{Norm} % Normal dist. +\NewMathOp{\Poi} {Poi} % Poisson dist. +\NewMathOp{\Unif}{Unif} % Uniform dist. +\NewMathOp[\mathfrak]{\Ndens}{N} +\NewMathOp[\mathfrak]{\Ndist}{n} +\NewMathOp*{\@mapsto}{\mapstochar\rightarrow} +\newcommand{\@probconv}[1]{\mathrel{\@mapsto\limits^{1}}} + \newcommand{\asconv}{\@probconv{a.s.}} % Almost sure conv. + \newcommand{\inprob}{\@probconv{P}} % Conv. in probability + \newcommand{\inlaw} {\@probconv{L}} % Conv. in law + \newcommand{\vague} {\@probconv{v}} % Vague conv. +\endinput +%% +%% End of file `cjwmath.sty'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwoutl.sty b/Master/texmf-dist/tex/latex/cjw/cjwoutl.sty new file mode 100644 index 00000000000..8bce48cf283 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwoutl.sty @@ -0,0 +1,187 @@ +%% +%% This is file `cjwoutl.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjwoutl.dtx (with options: `package') +%% +%% Copyright (C) 1995 by Colin J. Wynne +%% +%% This file is part of cjwoutl, a package +%% for generating outlines with LaTeX2e. +%% +\def\fileversion{0.6} +\def\filedate{1996/04/26} +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cjwoutl} + [1995/04/24 v0.5 Auto-Numbered Outlines--CJW] + +\DeclareOption*{% + \PackageWarning{cjwoutl}{Unknown option `\CurrentOption'}} + +\ProcessOptions + +\newif\ifoutl@group +\newlength{\aboveoutlskip} + \setlength{\aboveoutlskip}{\abovedisplayskip} +\newlength{\belowoutlskip} + \setlength{\belowoutlskip}{\belowdisplayskip} +\newlength{\outlindent} + \setlength{\outlindent}{\parindent} +\newcounter {outl@indsize} +\newcounter {outl@lastind} +\newcounter {outli} % I. +\newcounter {outlii} [outli] % A. +\newcounter {outliii}[outlii] % 1. +\newcounter {outliv} [outliii] % a. +\newcounter {outlv} [outliv] % i. +\newcounter {outlvi} [outlv] % (a) +\newcounter {outlvii}[outlvi] % (i) +\newcounter {outldef}[outlvii] +\renewcommand{\theoutli} {\Roman{outli}} +\renewcommand{\theoutlii} {\Alph{outlii}} +\renewcommand{\theoutliii} {\arabic{outliii}} +\renewcommand{\theoutliv} {\alph{outliv}} +\renewcommand{\theoutlv} {\roman{outlv}} +\renewcommand{\theoutlvi} {\alph{outlvi}} +\renewcommand{\theoutlvii} {\roman{outlvii}} +\renewcommand{\theoutldef} {} +\newcommand{\labeloutli} {\theoutli.} +\newcommand{\labeloutlii} {\theoutlii.} +\newcommand{\labeloutliii} {\theoutliii.} +\newcommand{\labeloutliv} {\theoutliv.} +\newcommand{\labeloutlv} {\theoutlv.} +\newcommand{\labeloutlvi} {(\theoutlvi)} +\newcommand{\labeloutlvii} {(\theoutlvii)} +\newcommand{\labeloutldef} {\ensuremath{\bullet}} +\renewcommand{\p@outli} {} +\renewcommand{\p@outlii} {\theoutli.} +\renewcommand{\p@outliii} {\p@outlii\theoutlii.} +\renewcommand{\p@outliv} {\p@outliii\theoutliii.} +\renewcommand{\p@outlv} {\p@outliv\theoutliv.} +\renewcommand{\p@outlvi} {\p@outlv\labeloutlv.} +\renewcommand{\p@outlvii} {\p@outlvi\labeloutlvi.} +\renewcommand{\p@outldef} {\p@outlvii\ldots} +\newenvironment{outline}[1][keep]% + {\def\@tempa{#1} \def\@tempb{new} + \ifx\@tempa\@tempb + \outl@reset + \fi + \penalty\predisplaypenalty\vspace{\aboveoutlskip}}% + {\par\endgroup\global\outl@groupfalse% + \penalty\postdisplaypenalty\vspace{\belowoutlskip}} +\newcommand{\outl@reset}{% + \setcounter{outli} {0} + \setcounter{outlii} {0} + \setcounter{outliii}{0} + \setcounter{outliv} {0} + \setcounter{outlv} {0} + \setcounter{outlvi} {0} + \setcounter{outlvii}{0}} +\newcommand{\outlstyle}[1]{% + \@ifundefined{ols@#1} + {\PackageWarning{cjwoutl}{Outline style `#1' is undefined. Using + style `plain' instead}% + \def\outl@style{\ols@plain}} + {\def\outl@style{\csname ols@#1\endcsname}}} +\def\ols@plain{\@empty} +\def\ols@firstpar#1\par{% + \bgroup\firstparfont #1\par\egroup} + +\DeclareOldFontCommand{\firstparfont}{\normalfont\itshape}{\relax} +\outlstyle{plain} +\newcommand{\ol}[2]{% + \outl@checkgroups \outl@processlvl{#1}% + \ifnum \c@outl@indsize < 1\relax% + \setcounter{outl@indsize}{0}% + \leftskip = 0pt% + \else% + \leftskip = \c@outl@indsize\outlindent% + \fi% + \noindent\theoutlabel{#2}% + \ignorespaces\outl@style} +\newcommand{\npp}[1]{\ol{#1}{\null}\null\indent} +\newcommand{\unpp}[1]{\ol{#1}{\null}} +\newcommand{\outl}[1]{% + \outl@checkgroups \outl@processlvl{#1}% + \ifnum \c@outl@indsize < 1\relax% + \setcounter{outl@indsize}{0}% + \leftskip = 0pt% + \else% + \leftskip = \c@outl@indsize\outlindent% + \fi% + \noindent\outl@label{\c@outl@indsize}% + \ignorespaces\outl@style} +\newcommand{\outl@checkgroups}{% + \ifoutl@group + \par\endgroup\global\outl@groupfalse + \smallbreak + \fi + \setcounter{outl@lastind}{\c@outl@indsize} + \smallbreak + \begingroup + \global\outl@grouptrue} +\newcommand{\outl@processlvl}[1]{% + \def\@tempa{+}\def\@tempb{-}\def\@tempc{=} + \def\@tempd{#1} + \ifx\@tempa\@tempd + \addtocounter{outl@indsize}{1} + \else\ifx\@tempb\@tempd + \addtocounter{outl@indsize}{-1} + \else\ifx\@tempc\@tempd + % Nothing---stay at same level. + \else + \setcounter{outl@indsize}{\@tempd} + \addtocounter{outl@indsize}{-1} + \fi + \fi + \fi} +\newcommand{\outl@label}[1]{% + \ifcase #1 + \@dolabeli\or\@dolabelii\or\@dolabeliii% + \or\@dolabeliv\or\@dolabelv\or\@dolabelvi% + \or\@dolabelvii\else\@dolabeldef% + \fi} +\@ifundefined{labelfont} + {\DeclareOldFontCommand{\labelfont}% + {\normalfont\bfseries\mathversion{bold}}{\mathbf}} + {} % Do nothing---|\labelfont| is already defined +\newcommand{\theoutlabel}[1]{% + \llap{\hbox{\labelfont#1\enskip}}} +\newcommand{\@dolabeli}{% + \refstepcounter{outli}\theoutlabel{\labeloutli}} +\newcommand{\@dolabelii}{% + \refstepcounter{outlii}\theoutlabel{\labeloutlii}} +\newcommand{\@dolabeliii}{% + \refstepcounter{outliii}\theoutlabel{\labeloutliii}} +\newcommand{\@dolabeliv}{% + \refstepcounter{outliv}\theoutlabel{\labeloutliv}} +\newcommand{\@dolabelv}{% + \refstepcounter{outlv}\theoutlabel{\labeloutlv}} +\newcommand{\@dolabelvi}{% + \refstepcounter{outlvi}\theoutlabel{\labeloutlvi}} +\newcommand{\@dolabelvii}{% + \refstepcounter{outlvii}\theoutlabel{\labeloutlvii}} +\newcommand{\@dolabeldef}{% + \refstepcounter{outldef}\theoutlabel{\labeloutldef}} +\endinput +%% +%% End of file `cjwoutl.sty'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwphys.tex b/Master/texmf-dist/tex/latex/cjw/cjwphys.tex new file mode 100644 index 00000000000..e436df69364 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwphys.tex @@ -0,0 +1,80 @@ +%% +%% This is file `cjwphys.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `phys') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{cjwphys.tex} + [\filedate\space v\fileversion\space + Physics macros for cjwmath.sty---CJW] +\newcommand{\bra}[1]{\left\langle #1 \right|\,} +\newcommand{\ket}[1]{\,\left| #1 \right\rangle} + +\newcommand{\braket}[2]{% + \newdimen\@tempdimd% + \setbox0=\mathbox{#1}\@tempdima=\ht0 \@tempdimb=\dp0% + \setbox0=\mathbox{#2}\@tempdimc=\ht0 \@tempdimd=\dp0% + \ifdim\@tempdimc > \@tempdima + \@tempdima=\@tempdimc + \fi + \ifdim\@tempdimd > \@tempdimb + \@tempdimb=\@tempdimb + \fi + \def\@tempa{\vrule width0pt height\@tempdima depth\@tempdimb} + \left.\left\langle \@tempa{#1} \,\right|\,{#2} \right\rangle } +\endinput +%% +%% End of file `cjwphys.tex'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwplain.sty b/Master/texmf-dist/tex/latex/cjw/cjwplain.sty new file mode 100644 index 00000000000..af53edc59c6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwplain.sty @@ -0,0 +1,255 @@ +%% +%% This is file `cjwplain.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjwplain.dtx (with options: `package') +%% +%% Copyright (C) 1995 by Colin J. Wynne +%% +%% This file is part of cjwplain, a style providing +%% Plain TeX functionality under LaTeX2e. +%% + \NeedsTeXFormat{LaTeX2e} + \ProvidesPackage{cjwplain} + [1995/05/01 v0.5 + Plain TeX Macros for LaTeX2e---CJW] +\def\RCSinfo{$Id: cjwplain.dtx,v 1.2 1998/08/31 22:57:40 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\newif\if@outerallocs \@outerallocsfalse +\newif\if@diagnostics \@diagnosticstrue +\newif\if@plainskips \@plainskipsfalse +\newif\if@strictline \@strictlinetrue +\newif\if@tabbing \@tabbingtrue +\newif\if@strictitem \@strictitemfalse +\newif\if@eqalign \@eqaligntrue +\newif\if@strictfootnotes \@strictfootnotesfalse +\newif\if@altfootnotes \@altfootnotesfalse +\newif\if@plainoutput \@plainoutputfalse +\newif\if@magnification \@magnificationfalse +\DeclareOption{outerallocs}{\@outerallocstrue} +\DeclareOption{outerallocsoff}{\@outerallocsfalse} + +\DeclareOption{diagnostics}{\@diagnosticstrue} +\DeclareOption{diagnosticsoff}{\@diagnosticsfalse} + +\DeclareOption{plainskips}{\@plainskipstrue} +\DeclareOption{planiskipsoff}{\@plainskipsfalse} + +\DeclareOption{strictline}{\@strictlinetrue} +\DeclareOption{strictlineoff}{\@strictlinefalse} + +\DeclareOption{tabbing}{\@tabbingtrue} +\DeclareOption{tabbingoff}{\@tabbingfalse} + +\DeclareOption{strictitem}{\@strictitemtrue} +\DeclareOption{strictitemoff}{\@strictitemfalse} + +\DeclareOption{eqalign}{\@eqaligntrue} +\DeclareOption{eqalignoff}{\@eqalignfalse} +\DeclareOption{strictfootnotes}{% + \@strictfootnotestrue \@altfootnotesfalse} +\DeclareOption{altfootnotes}{% + \@altfootnotestrue \@strictfootnotesfalse} +\DeclareOption{footnotesoff}{% + \@altfootnotesfalse \@strictfootnotesfalse} + +\DeclareOption{magnification}{\@magnificationtrue} +\DeclareOption{magnificationoff}{\@magnificationfalse} +\DeclareOption{plainoutput}{% + \@plainoutputtrue \@strictfootnotestrue + \@altfootnotesfalse \@magnificationtrue} +\DeclareOption{plainoutputoff}{\@plainoutputfalse} +\DeclareOption{none}{% + \@outerallocsfalse \@eqalignfalse + \@diagnosticsfalse \@plainskipsfalse + \@strictfootnotesfalse\@strictlinefalse + \@altfootnotesfalse \@tabbingfalse + \@magnificationfalse \@strictitemfalse + \@plainoutputfalse} + +\DeclareOption{all}{% + \@outerallocstrue \@eqaligntrue + \@diagnosticstrue \@plainskipstrue + \@strictfootnotestrue\@strictlinetrue + \@altfootnotestrue \@tabbingtrue + \@magnificationtrue \@strictitemtrue + \@plainoutputtrue} +\DeclareOption*{% + \PackageWarning{cjwplain}{Unknown option `\CurrentOption'}} +\ProcessOptions* +\if@outerallocs + +\outer\def\newcount{\alloc@0\count\countdef\insc@unt} +\outer\def\newdimen{\alloc@1\dimen\dimendef\insc@unt} +\outer\def\newskip{\alloc@2\skip\skipdef\insc@unt} + +\outer\def\newbox{\alloc@4\box\chardef\insc@unt} +\outer\def\newwrite{\alloc@7\write\chardef\sixt@@n} +\outer\def\newfam{\alloc@8\fam\chardef\sixt@@n} + +\fi +\if@diagnostics + +\showboxbreadth=5 +\showboxdepth=3 +\setcounter{errorcontextlines}{5} + +\fi +\if@plainskips + \def\smallskip{\vskip\smallskipamount} + \def\medskip{\vskip\medskipamount} + \def\bigskip{\vskip\bigskipamount} +\fi +\let\plainline\@@line + +\if@strictline + +\let\latex@line\line +\let\line\@@line +\def\@picture(#1,#2)(#3,#4){% + \let\line\latex@line% + \@picht#2\unitlength + \setbox\@picbox\hbox to#1\unitlength\bgroup + \hskip -#3\unitlength + \lower #4\unitlength\hbox\bgroup + \ignorespaces} + +\fi +\if@tabbing + \InputIfFileExists{cjwpltab.clo}{}{% + \PackageWarning{cjwplain}{Option `cjwpltab.clo' not found.} + \@tabbingfalse} +\fi +\def\@@item{\par\hang\textindent} +\let\plainitem\@@item +\def\itemitem{\par\indent \hangindent2\parindent \textindent} +\if@strictitem + \let\latexitem\item + \let\item\@@item +\fi +\outer\def\beginsection#1\par{\vskip\z@ plus.3\vsize\penalty-250 + \vskip\z@ plus-.3\vsize\bigskip\vskip\parskip + \message{#1}\leftline{\bf#1}\nobreak\smallskip\noindent} +\outer\def\bye{\end{document}} +\let\plaincentering\@centering + +\if@eqalign + +\def\eqalign#1{\null\,\vcenter{\openup\jot\m@th + \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil + \crcr#1\crcr}}\,} + +\def\eqalignno#1{\displ@y \tabskip\@centering + \halign to\displaywidth{\hfil$\@lign\displaystyle{##}$\tabskip\z@skip + &$\@lign\displaystyle{{}##}$\hfil\tabskip\@centering + &\llap{$\@lign##$}\tabskip\z@skip\crcr + #1\crcr}} +\def\leqalignno#1{\displ@y \tabskip\@centering + \halign to\displaywidth{\hfil$\@lign\displaystyle{##}$\tabskip\z@skip + &$\@lign\displaystyle{{}##}$\hfil\tabskip\@centering + &\kern-\displaywidth\rlap{$\@lign##$}\tabskip\displaywidth\crcr + #1\crcr}} + +\else +\@namedef{eqnarray*}{% + \let \\ \cr $$\null\,\vcenter{\openup\jot\m@th + \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil\crcr}}} +\@namedef{endeqnarray*}{\crcr} + +\fi +\if@plainoutput + \InputIfFileExists{cjwplout.clo}{}{% + \PackageWarning{cjwplain}{Option `cjwplout.clo' not found.} + \@tabbingfalse} +\fi +\if@plainoutput\else + +\def\footline{\@ifnextchar ={\@@footline}{\@@footline=}} +\def\@@footline=#1{\gdef\@oddfoot{#1} \gdef\@evenfoot{#1}} + +\def\headline{\@ifnextchar ={\@@headline}{\@@headline=}} +\def\@@headline=#1{\gdef\@oddhead{#1} \gdef\@evenhead{#1}} + +\def\nopagenumbers{\let\@oddfoot\relax \let\@evenfoot\relax} +\let\pageno\c@page +\newcommand{\folio}[1][\pageno]{\@folio{#1}} +\def\@folio#1{% + \edef\@tempa{\string#1}% + \expandafter\@ifundefined{c@\@tempa}% % Does the counter exist? + {% % No such counter. + \ifnum #1 <\z@ \romannumeral-#1 + \else \number #1 + \fi + }% + {% % It is a counter. + \ifnum\value{#1}<\z@ \roman{#1} \else \arabic{#1} \fi} + } +\def\advancepageno{\ifnum\pageno<\z@ \global\advance\pageno\m@ne + \else\global\advance\pageno\@ne \fi} +\let\normalbottom\flushbottom +\def\topinsert{\begin{figure}[t]} +\def\pageinsert{\begin{figure}[p]} +\def\midinsert{\begin{figure}[htpb]} +\def\endinsert{\end{figure}} + +\fi + +\let\latex@footnote\footnote + +\def\@@footnote#1{\let\@sf\empty % parameter #2 (the text) is read later + \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi + #1\@sf\vfootnote{#1}} +\def\vfootnote#1{\insert\footins\bgroup + \interlinepenalty\interfootnotelinepenalty + \splittopskip\ht\strutbox % top baseline for broken footnotes + \splitmaxdepth\dp\strutbox \floatingpenalty\@MM + \leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip + \xspaceskip\z@skip + \textindent{#1}\footstrut\futurelet\next\fo@t} +\def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t + \else\let\next\f@t\fi \next} +\def\f@@t{\bgroup\aftergroup\@foot\let\next} +\def\f@t#1{#1\@foot} +\def\@foot{\strut\egroup} +\def\footstrut{\vbox to\splittopskip{}} +\if@strictfootnotes + \let\footnote\@@footnote +\fi +\if@altfootnotes + \def\footnote#1{\latex@footnote[#1]} +\fi +\if@magnification + \def\magnification{\afterassignment\m@g\count@} + \def\m@g{\mag\count@ + \hsize6.5truein\vsize8.9truein\dimen\footins8truein} +\fi +\endinput +%% +%% End of file `cjwplain.sty'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwplout.clo b/Master/texmf-dist/tex/latex/cjw/cjwplout.clo new file mode 100644 index 00000000000..0f884fb08c8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwplout.clo @@ -0,0 +1,99 @@ +%% +%% This is file `cjwplout.clo', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjwplain.dtx (with options: `output') +%% +%% Copyright (C) 1995 by Colin J. Wynne +%% +%% This file is part of cjwplain, a style providing +%% Plain TeX functionality under LaTeX2e. +%% + \NeedsTeXFormat{LaTeX2e} + \ProvidesFile{cjwplout.clo} + [1995/05/01 v0.5 + Plain TeX Output Macros for LaTeX2e---CJW] +\def\RCSinfo{$Id: cjwplain.dtx,v 1.2 1998/08/31 22:57:40 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\countdef\pageno=0 \pageno=1 % first page is number 1 +\newtoks\headline \headline={\hfil} % headline is normally blank +\newtoks\footline \footline={\hss\reset@font\folio\hss} + % footline is normally a centered page number in font \tenrm +\def\nopagenumbers{\footline{\hfil}} % blank out the footline +\def\folio{% + \ifnum\pageno<\z@ \romannumeral-\pageno \else\number\pageno \fi} +\def\advancepageno{\ifnum\pageno<\z@ \global\advance\pageno\m@ne + \else\global\advance\pageno\@ne \fi} % increase |pageno| +\newif\ifr@ggedbottom +\def\raggedbottom{\topskip 10\p@ plus60\p@ \r@ggedbottomtrue} +\def\normalbottom{\topskip 10\p@ \r@ggedbottomfalse} + % undoes \raggedbottom +\newinsert\topins +\newif\ifp@ge \newif\if@mid +\def\topinsert{\@midfalse\p@gefalse\@ins} +\def\midinsert{\@midtrue\@ins} +\def\pageinsert{\@midfalse\p@getrue\@ins} +\skip\topins=\z@skip % no space added when a topinsert is present +\count\topins=1000 % magnification factor (1 to 1) +\dimen\topins=\maxdimen % no limit per page +\def\@ins{\par\begingroup\setbox\z@\vbox\bgroup} % start a \vbox +\def\endinsert{\egroup % finish the \vbox + \if@mid \dimen@\ht\z@ \advance\dimen@\dp\z@ \advance\dimen@12\p@ + \advance\dimen@\pagetotal \advance\dimen@-\pageshrink + \ifdim\dimen@>\pagegoal\@midfalse\p@gefalse\fi\fi + \if@mid \bigskip\box\z@\bigbreak + \else\insert\topins{\penalty100 % floating insertion + \splittopskip\z@skip + \splitmaxdepth\maxdimen \floatingpenalty\z@ + \ifp@ge \dimen@\dp\z@ + \vbox to\vsize{\unvbox\z@\kern-\dimen@}% depth is zero + \else \box\z@\nobreak\bigskip\fi}\fi\endgroup} +\def\plainoutput{\shipout\vbox{\makeheadline\pagebody\makefootline}% + \advancepageno + \ifnum\outputpenalty>-\@MM \else\dosupereject\fi} +\def\pagebody{\vbox to\vsize{\boxmaxdepth\maxdepth \pagecontents}} +\def\makeheadline{\vbox to\z@{\vskip-22.5\p@ + \@@line{\vbox to8.5\p@{}\the\headline}\vss}\nointerlineskip} +\def\makefootline{\baselineskip24\p@\@@line{\the\footline}} +\def\dosupereject{\ifnum\insertpenalties>\z@ + % something is being held over + \@@line{}\kern-\topskip\nobreak\vfill\supereject\fi} + +\def\pagecontents{\ifvoid\topins\else\unvbox\topins\fi + \dimen@=\dp\@cclv \unvbox\@cclv % open up \box255 + \ifvoid\footins\else % footnote info is present + \vskip\skip\footins + \footnoterule + \unvbox\footins\fi + \ifr@ggedbottom \kern-\dimen@ \vfil \fi} + \output{\plainoutput} +\endinput +%% +%% End of file `cjwplout.clo'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwpltab.clo b/Master/texmf-dist/tex/latex/cjw/cjwpltab.clo new file mode 100644 index 00000000000..2aa89423d7e --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwpltab.clo @@ -0,0 +1,82 @@ +%% +%% This is file `cjwpltab.clo', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjwplain.dtx (with options: `tabbing') +%% +%% Copyright (C) 1995 by Colin J. Wynne +%% +%% This file is part of cjwplain, a style providing +%% Plain TeX functionality under LaTeX2e. +%% + \NeedsTeXFormat{LaTeX2e} + \ProvidesFile{cjwpltab.clo} + [1995/05/01 v0.5 + Plain TeX Tabbing Macros for LaTeX2e---CJW] +\def\RCSinfo{$Id: cjwplain.dtx,v 1.2 1998/08/31 22:57:40 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\newif\ifus@ \newif\if@cr +\newbox\tabs \newbox\tabsyet \newbox\tabsdone + +\def\cleartabs{\global\setbox\tabsyet\null \setbox\tabs\null} +\def\settabs{\setbox\tabs\null \futurelet\next\sett@b} +\let\+=\relax % in case this file is being read in twice +\def\sett@b{\ifx\next\+\let\next\relax +\def\next{\afterassignment\s@tt@b\let\next}% + \else\let\next\s@tcols\fi\next} +\def\s@tt@b{\let\next\relax\us@false\m@ketabbox} +\def\tabalign{\us@true\m@ketabbox} % non-\outer version of \+ +\outer\def\+{\tabalign} +\def\s@tcols#1\columns{\count@#1 \dimen@\hsize + \loop\ifnum\count@>\z@ \@nother \repeat} +\def\@nother{\dimen@ii\dimen@ \divide\dimen@ii\count@ + \setbox\tabs\hbox{\hbox to\dimen@ii{}\unhbox\tabs}% + \advance\dimen@-\dimen@ii \advance\count@\m@ne} + +\def\m@ketabbox{\begingroup + \global\setbox\tabsyet\copy\tabs + \global\setbox\tabsdone\null + \def\cr{\@crtrue\crcr\egroup\egroup +\ifus@\unvbox\z@\lastbox\fi\endgroup +\setbox\tabs\hbox{\unhbox\tabsyet\unhbox\tabsdone}}% + \setbox\z@\vbox\bgroup\@crfalse +\ialign\bgroup&\t@bbox##\t@bb@x\crcr} + +\def\t@bbox{\setbox\z@\hbox\bgroup} +\def\t@bb@x{\if@cr\egroup % now \box\z@ holds the column + \else\hss\egroup \global\setbox\tabsyet\hbox{\unhbox\tabsyet + \global\setbox\@ne\lastbox}% now \box\@ne holds its size +\ifvoid\@ne\global\setbox\@ne\hbox to\wd\z@{}% +\else\setbox\z@\hbox to\wd\@ne{\unhbox\z@}\fi +\global\setbox\tabsdone\hbox{\box\@ne\unhbox\tabsdone}\fi + \box\z@} +\endinput +%% +%% End of file `cjwpltab.clo'. diff --git a/Master/texmf-dist/tex/latex/cjw/cjwresize.sty b/Master/texmf-dist/tex/latex/cjw/cjwresize.sty new file mode 100644 index 00000000000..2934fde43d9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwresize.sty @@ -0,0 +1,226 @@ +%% +% File: cjwresize.sty +%% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cjwresize} + [1995/05/09 v0.1 Change Default LaTeX Page Layouts -- CJW] + +\newif \if@autocalc + +\DeclareOption{auto} {\@autocalctrue} +\DeclareOption{final}{\@autocalctrue} +\DeclareOption*{% + \PackageWarning{cjwresize}{Unknown option `\CurrentOption'}} + +\ProcessOptions + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DISTRIBUTION NOTICE +% +% This is file |cjwresize.sty| for use with \LaTeX2e. +% +% Copyright (c) 1995 by Colin J. Wynne +% cwynne@sage.wlu.edu, cwynne@lorien,princeton.edu, +% ua7o@rz.uni-karlsruhe.de +% This file may be freely distributed in any form; electronic, +% physical or otherwise; so long as the distributor provides this +% file in its entirety (including this message) and the distributor +% receives no money (except for a reasonable recompense for the +% duplication process). Fair 'nough? +% +% This file is beer-ware. If you use it and like it, then you +% should buy me a beer if you ever meet me. :-) +% +% +% INTRO +% +% This is a fairly simple file, so I am not going to bother with a +% .dtx file. Here is the whole documentation, right here. :-) No +% \docstrip{} hastle or anything... +% +% +% WHY THIS PACKAGE? +% +% I think the default printable area used by \LaTeX{}, frankly, +% sucks. When I turn in three problem assignments for a math class +% and it takes up eight pages, there is just too much blank space. +% So, I hacked the relevant parts out of |classes.dtx| which deal +% with setting printable area and balancing margins and fiddled with +% some of the default values. Not only that, but it is easily +% customisable. +% +% +% HOW TO USE THIS PACKAGE +% +% There are two basic ways to use this package. Essentially, after +% including the package, the macro |\resize| is available to the +% user. After altering any of the relevant page information, one +% can invoke |\resize| to recalculate page margins. |\resize| +% should be called after changes to the following: +% +% \textheight \headheight \footskip +% \textwidth \headsep +% +% and optionally after changing |\topskip|. These are the +% dimensions on which the \LaTeX{} algorithms below depend. +% +% This only half solves the problem, though. Having to change the +% height and width in every document is also not a particularly +% ducky solution, so there is also a package option, namely |auto|. +% In commented sections below, you will see where I have altered +% some of the default values that \LaTeX{} uses for page layout +% calculations. Invoking the package with the |auto| option will +% automatically do a resize with these defaults. Of course, the +% |\resize| command will still be available if further modifications +% are desired. You should feel perfectly free to change these +% defaults to something that will be more appropriate for you. +% As the major advantage of \LaTeX's default, \emph{wide} margins is +% the availability of |\marginpar| space, for draft annotations, I +% also consider the revised margins of this package to be applicable +% to final output. Therefore the option |final| will be grabbed and +% interpreted to mean the same thing as |auto|. +% +% +% BUGS +% +% Well, I wouldn't call this a bug, but I haven't accounted for the +% slight differences in these calculations specific to the |book| +% class's options for size switching. This package was written in +% about twenty minutes, and I couldn't think of a way off the type +% of my head to test for the invoked class. If there is one (and +% I'm fairly sure there is), please let me know. +% +% +% COMMENTS? +% +% If you have any, send them to me at one of the e-mail addresses +% above. I hope this will be useful to somebody, somewhere. +% +% CJW, 09.05.1995 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\resize{\relax% + % + \if@twoside + \setlength\@tempdima {\paperwidth} + \addtolength\@tempdima {-\textwidth} + \setlength\oddsidemargin {.4\@tempdima} + \addtolength\oddsidemargin {-1in} + % + \setlength\marginparwidth {.6\@tempdima} + \addtolength\marginparwidth {-0.4in} + \else + \setlength\@tempdima {\paperwidth} + \addtolength\@tempdima {-\textwidth} + \setlength\oddsidemargin {.5\@tempdima} + \addtolength\oddsidemargin {-1in} + \setlength\marginparwidth {.5\@tempdima} + \addtolength\marginparwidth {-.4in} + \fi + % + \ifdim \marginparwidth >2in + \setlength\marginparwidth{2in} + \fi + % + \@settopoint\oddsidemargin + \@settopoint\marginparwidth + % + \setlength\evensidemargin {\paperwidth} + \addtolength\evensidemargin{-2in} + \addtolength\evensidemargin{-\textwidth} + \addtolength\evensidemargin{-\oddsidemargin} + % + \@settopoint\evensidemargin + % + % + \setlength\topmargin{\paperheight} + \addtolength\topmargin{-2in} + \addtolength\topmargin{-\headheight} + \addtolength\topmargin{-\headsep} + \addtolength\topmargin{-\textheight} + \addtolength\topmargin{-\footskip} + % + \addtolength\topmargin{-.5\topmargin} + \@settopoint\topmargin +} + +%%%% +%%%% +%% +%% CODE for the |auto| option: +%% +%%%% +%%%% + +\if@autocalc + +%% +% Compute the |\textwidth|. +%% + + \setlength\@tempdima{\paperwidth} + \addtolength\@tempdima{-2in} + +%% +% This choice of |\@tempdimb| is the `default' page size used by the +% |auto| option. The values from |classes.dtx| are 345pt, 360pt and +% 390pt respectively for 10pt, 11pt and 12pt document sizes. Feel +% free to change these to taste. I find that adding about 40--50pt to +% the original dimensions works pretty well. +%% + \ifcase \@ptsize + \setlength\@tempdimb{385\p@} \or + \setlength\@tempdimb{400\p@} \else + \setlength\@tempdimb{430\p@} + \fi + + \if@twocolumn + \ifdim\@tempdima>2\@tempdimb\relax + \setlength\textwidth{2\@tempdimb} + \else + \setlength\textwidth{\@tempdima} + \fi + \else + \ifdim\@tempdima>\@tempdimb\relax + \setlength\textwidth{\@tempdimb} + \else + \setlength\textwidth{\@tempdima} + \fi + \fi + + \@settopoint\textwidth + +%% +% Compute the |\textheight|. +%% + + \setlength\@tempdima{\paperheight} +%% +% These next two lines govern the `default' |\textheight| used by the +% |auto| option. The values from |classes.dtx| are -2in for the +% margins and -1.5in for headers and footers. I like reducing the +% extra space for headers/footers down to -1in. Feel free, however, +% to change these values to taste. +%% %% + \addtolength\@tempdima{-2in} % Minimum margins. + \addtolength\@tempdima{-1in} % Room for head/foot stuff. + % + \divide\@tempdima\baselineskip % Compute size in + \@tempcnta=\@tempdima % line numbers. + % + \setlength\textheight{\@tempcnta\baselineskip}% + \addtolength\textheight{\topskip} % First line of text has + % height |\topskip|. +%% %% +% Now call resize. +%% + \resize + +\fi + +\endinput +%% +% End of file: cjwresize.sty +%% diff --git a/Master/texmf-dist/tex/latex/cjw/cjwunits.sty b/Master/texmf-dist/tex/latex/cjw/cjwunits.sty new file mode 100644 index 00000000000..055cd5a520b --- /dev/null +++ b/Master/texmf-dist/tex/latex/cjw/cjwunits.sty @@ -0,0 +1,89 @@ +%% +%% This is file `cjwunits.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% cjw-latex.dtx (with options: `units') +%% +%% Copyright (C) 1997 by: Colin J. Wynne <cwynne@mts.jhu.edu> +%% +%% This file is part of cjw-latex, a collection of package files for +%% LaTeX2e, written by Colin J. Wynne. It may be freely distributed in +%% any form---electronic, physical, or otherwise---so long as the +%% distributor provides this file in its entirety (including this +%% copyright announcement) and charges no fee (except for reasonable +%% recompense for the duplication process). Fair 'nough? +%% +%% I would also prefer that the entire source file `cjw-latex.dtx', +%% together with `cjw-latex.ins', be propagated instead of any one +%% subfile. +%% +%% Please feel free to improve on or alter any code herein as suits your +%% needs, and by all means notify me of any suggestions, improvements, or +%% requests. +%% +%% This file is beer-ware. If you use it and like it, then you should +%% buy me a beer if you ever meet me. :-) +%% +%% RCS: $Id: cjw-latex.ins,v 1.3 1998/04/10 14:30:18 cwynne Exp $ +%% +\def\RCSinfo{$Id: cjw-latex.dtx,v 0.13 1998/09/01 15:54:20 cwynne Exp $} + +\def\RCSsplit $#1: #2,v #3 #4 #5 #6 #7${ + \gdef\filename {#2} + \gdef\fileversion{#3} + \gdef\filedate {#4} + \gdef\filetime {#5} + \gdef\fileauthor {#6} + \gdef\filelocker {#7}} + +\expandafter\RCSsplit\RCSinfo +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{cjwunits} + [\filedate\space v\fileversion\space + Typesetting units in LaTeX2e---CJW] +\newcommand{\unitfont}{\operator@font} +\newcommand{\unit}[1]{\ensuremath{\,{\unitfont{#1}\kern\z@}}\xspace} +\newcommand{\ang} {\unit{\AA}} % angstroms + \alias\Ao\ang +\newcommand{\cm} {\unit{cm}} % centimetres +\newcommand{\inch}{\unit{in}} % inches +\newcommand{\km} {\unit{km}} % kilometres +\newcommand{\mi} {\unit{mi}} % miles +\newcommand{\m} {\unit{m}} % metres +\newcommand{\Hz} {\unit{Hz}} % herz +\newcommand{\J} {\unit{J}} % joules +\newcommand{\V} {\unit{V}} % volts +\newcommand{\eV} {\unit{eV}} % electron volts +\newcommand{\erg} {\unit{erg}} % ergs +\newcommand{\amu} {\unit{amu}} % atomic mass units +\newcommand{\gram}{\unit{g}} % grams +\newcommand{\kg} {\unit{kg}} % kilograms +\newcommand{\Ton} {\unit{T}} % tons +\newcommand{\kT} {\unit{kT}} % kilotons +\newcommand{\MT} {\unit{MT}} % megatons +\newcommand{\kelv}{\unit{K}} % kelvins +\alias\secant\sec +\renewcommand{\sec} {\unit{s}} % seconds +\newcommand{\cee} {\unit{c}} % speed o' light +\endinput +%% +%% End of file `cjwunits.sty'. |