%%% ==================================================================== %%% @LaTeX-style-file{ %%% author = "Enrico Bertolazzi", %%% version = "0.4", %%% date = "15-SEPT-96", %%% filename = "easytable.sty", %%% address = "Laboratorio di Matematica Applicata %%% Trento University, %%% Via Mesiano, Trento, Italy", %%% FAX = "+39 (461) 882672", %%% email = "bertolaz@ing.unitn.it (Internet)", %%% supported = "yes. Please send comments via E-mail", %%% docstring = "package for easy typing equations. %%% %%% INSTALLATION: %%% Put this file where your TeX looks for inputs. %%% %%% DOCUMENTATION: %%% Compile doctable.tex. %%% %%% COPYING: %%% Copying of part or all of this file is allowed under the following %%% conditions only: %%% (1) You may freely distribute unchanged copies of the file. Please %%% include the documentation when you do so. %%% (2) You may modify a renamed copy of the file, but only for personal %%% use or use within an organization. %%% (3) You may copy fragments from the file, for personal use or for %%% distribution, as long as credit is given where credit is due. %%% %%% You are NOT ALLOWED to take money for the distribution or use of %%% this file or modified versions or fragments thereof, except for %%% a nominal charge for copying etc. %%% %%% } %%% ==================================================================== %%% ___ ____ ___ _ _ __ __ ____ ______ %%% / \ / / \ \ / / \ / \ / / %%% /____/ /__ /____/ \/ \ / / /__ / %%% / \ / / \ / \ / / / / %%% /____/ /____ / \ / \__/ \__/ / / %%% ==================================================================== \typeout{Document Style `easytable' version 0.4 <15-SEPT-1996>.} %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{easytable}[1996/09/15 v0.4] \DeclareOption{thinlines}{% \@tab@srule=.7pt \@tab@sdash=.5pt } \DeclareOption{thiklines}{% \@tab@srule=1.5pt \@tab@sdash=1.2pt } \newdimen\@tab@srule\@tab@srule=1pt \newdimen\@tab@sdash\@tab@sdash=.7pt \newif\if@tab@eq \ProcessOptions \input{easy.sty} \newdimen\@tab@spread %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\@tab@parse@col[#1]{% \gdef\@easy@list@rules{@.;:|0123456789}% \gdef\@easy@list@align{lrc}% \@easy@parse(#1)% \@easy@xdef(@tab@align@col\@roman\@easy@level)\@easy@align% \@easy@xdef(@tab@rules@col\@roman\@easy@level)\@easy@rules% \@tab@make@preamble% } \def\@tab@parse@row[#1]{% \gdef\@easy@list@rules{@.;:|0123456789}% \gdef\@easy@list@align{tbc}% \@easy@parse(#1)% \@easy@xdef(@tab@align@row\@roman\@easy@level)\@easy@align% \@easy@xdef(@tab@rules@row\@roman\@easy@level)\@easy@rules% } \def\@tab@addcol{\g@addto@macro\@tab@preamble{\@killglue##\@killglue&}} \def\@tab@make@preamble{% \gdef\@tab@preamble{% \vbox\bgroup\lineskip\z@skip% \tabskip\z@skip% \baselineskip\z@skip% \everycr{}\halign\bgroup}% \@easy@rotate\@easy@align% \loop% \@easy@rotate\@easy@align% \edef\@tempa{\@easy@firstchar\@easy@align}% \expandafter\ifx\@tempa`\relax\else% \@tab@addcol% \repeat% \g@addto@macro\@tab@preamble{\@killglue##\@killglue\crcr} } \def\TAB{\@ifnextchar({\@TAB}{\@TAB(@)}} \def\@TAB(#1){\@ifnextchar[{\@@TAB(#1)}{\@@TAB(#1)[2pt]}} \def\@@TAB(#1)[#2]#3#4{% \advance\@easy@level\@ne% \@tab@parse@col[#3]% \@tab@parse@row[#4]% \@easy@xdef(@tab@spread\@roman\@easy@level){#2}% \@easy@xdef(@tab@balance\@roman\@easy@level){#1}% \def\\{\crcr}% \setbox\@nameuse{@easy@box\@roman\@easy@level}\@tab@preamble% } \def\endTAB{% \crcr\egroup\egroup% \@easy@glet(@easy@mainbox){@easy@box\@roman\@easy@level}% \@easy@glet(@easy@calign){@tab@align@col\@roman\@easy@level}% \@easy@glet(@easy@crule){@tab@rules@col\@roman\@easy@level}% \@easy@glet(@easy@ralign){@tab@align@row\@roman\@easy@level}% \@easy@glet(@easy@rrule){@tab@rules@row\@roman\@easy@level}% \@easy@glet(@tab@spread){@tab@spread\@roman\@easy@level}% \@easy@glet(@tab@balance){@tab@balance\@roman\@easy@level}% % \@easy@evaldim\@easy@mainbox\@tab@spread% \@easy@balance\@tab@balance% % \gdef\@easy@kern##1{\@easy@kernkind[##1,\@tab@sdash,\@tab@srule]} \gdef\@easy@vruledraw##1{\@easy@vrulekind[##1,\ht\@easy@mainbox,\@tab@sdash,\@tab@srule]} \gdef\@easy@hruledraw##1{\@easy@hrulekind[##1,\wd\@easy@mainbox,\@tab@sdash,\@tab@srule]} \global\let\@easy@spread\@tab@spread% \@easy@buildbox% \@easy@vlines1% \@easy@hlines3% \advance\@easy@level\m@ne% \@killglue\mbox{\rlap{\box1}\rlap{\box3}\box\@easy@mainbox}} \endinput %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%