[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mathfont V0.55
- To: clasen@tetris.mathematik.uni-freiburg.de
- Subject: Re: mathfont V0.55
- From: David Carlisle <david@dcarlisle.demon.co.uk>
- Date: Thu, 11 Dec 1997 23:52:28 +0000 (GMT)
- Cc: math-font-discuss@cogs.susx.ac.uk
Some comments on newmath.sty (or whatever Chris is calling it today)
It is probably more important to get the encodings sorted out than
the TeX code at this stage, but since I was skimming through and
spotted my name...
> % We temporarily put some code by David Carlisle
er yes but you did *exactly* what I put in my email, including a
missing % after the \fi} below
\noexpand##2%
\fi}
\xdef\group@list{\group@list}%
sorry about that!!
> The fix will hopefully be in \LaTeX\ 1997/12/01.
It is, it even has the % in the right place in that version:-)
\def\@extpart#1{%
\ifcase#1
\or\@EXT
\or\@EXT\@EXT
\or\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT
\or\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\@EXT\fi
}
There are three of these triangles which look pretty, but take up a
fair number of tokens, and also make the arrows shrink without warning
if you try to push past 9.
They don't seem to need to be via expansion only, so how about
something like the following which is rather more compact and produces
arrows of arbitrary length?
\def\@extbuilder#1#2#3{%
\edef\@tempa{%
\expandafter\@extbuild@r\romannumeral\number#3001\relax}%
\@tempa\ifodd#3#1\else#2\fi\@tempa}
\def\@extbuild@r#1#2{%
\if#2m%
\@EXT
\expandafter\@extbuild@r
\fi}
\def\@extpart{\@extbuilder\@EXT\@empty}
\def\@extpartnegated{\@extbuilder\@NEGEXT\@NEG}
\def\@extpartbroken{\@extbuilder\@GAPEXT\@GAP}
David