max

Petr Danecek petr at ics.cas.cz
Thu Apr 22 15:08:47 CEST 1999


> No napadla mne takova oklika
> \edef\pom\maxdim{...}
> \dimen3\maxdim
>
>

Tomu nerozumim.
Ale kdyz je rec o oklikach, lze to provest treba takhle:

\newdimen\maxdimno
\def\setmaxdim#1{\global\maxdimno=0pt\maxdimm#1,|}
                          %% Toto vynechame: ...|\the\maxdimno}
\def\maxdimm#1,#2|{\ifdim#1 >\maxdimno \global\maxdimno=#1 \fi%
  \def\param{#2}\ifx\empty\param\else\maxdimm#2|\fi}

% A pouzit pak jako:

\dimen0=0pt
\dimen1=1pt
\dimen2=2pt

\maxdim{\dimen0,\dimen1,\dimen2}

\dimen3=\maxdimno


Ale neni to nijak elegantni reseni :-(

Petr Danecek


On Thu, 22 Apr 1999, Va'clav Studeny' wrote:

> At 13:50 22.4.1999 +0200, you wrote:
> >
> >
> >Ne, toto take neni spravne reseni, uz jsem to zkousel:
>
> No napadla mne takova oklika
> \edef\pom\maxdim{...}
> \dimen3\maxdim
>
>
>
> >! Missing number, treated as zero.
> ><to be read again>
> >                   \global
> >\maxdim #1->\global
> >                    \maxdimno =0pt\maxdimm #1,|\the \maxdimno
> >l.14 ...ter\dimen3\maxdim{\dimen0,\dimen1,\dimen2}
> >
> >Petr Danecek
> >
> >>
> >> \expandafter\dimen3\maxdim{. . .?
> >>
> >
> >
>




More information about the csTeX mailing list