unic-033.tex and unic-034.tex
I wrote the arrow parts of vector 033 as well. Works OK. Comments welcome. I'd personally enjoy both being included in ConTeXt at some point. For some reason one needs to do the "\numexpr(x+1) \unknownchar \or ..." trick for things to work. Why?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Nikolai Weibull wrote:
I wrote the arrow parts of vector 033 as well. Works OK. Comments welcome. I'd personally enjoy both being included in ConTeXt at some point.
For some reason one needs to do the "\numexpr(x+1) \unknownchar \or ..." trick for things to work. Why?,
Braces do not end the \numexpr parsing engine, only \relax does that (or something that does not fit the syntax). So it is 'normal' to use \numexpr x+1\relax \unknownchar instead. Taco
Taco Hoekwater wrote:
Nikolai Weibull wrote:
For some reason one needs to do the "\numexpr(x+1) \unknownchar \or ..." trick for things to work. Why?,
Braces do not end the \numexpr parsing engine, only \relax does that (or something that does not fit the syntax). So it is 'normal' to use
\numexpr x+1\relax \unknownchar
instead.
Ah, thanks for clarifying, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Nikolai Weibull wrote:
I wrote the arrow parts of vector 033 as well. Works OK. Comments welcome. I'd personally enjoy both being included in ConTeXt at some point.
sure, concerning these: \unexpanded\def\unic@ratio{\mathrel{:}} an option is to add them to the default math vector, something \startmathcollection[default] \definemathcommand [unic@ratio] [...] {...} that way you get a lot for free Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Nikolai Weibull wrote:
I wrote the arrow parts of vector 033 as well. Works OK. Comments welcome. I'd personally enjoy both being included in ConTeXt at some point.
sure,
concerning these:
\unexpanded\def\unic@ratio{\mathrel{:}}
an option is to add them to the default math vector, something
\startmathcollection[default]
\definemathcommand [unic@ratio] [...] {...}
that way you get a lot for free
Thanks for the information! Yes, that definitely saves a lot of work. I really need to learn more of ConTeXt’s internals. I’ll convert to this method instead, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
participants (3)
-
Hans Hagen
-
Nikolai Weibull
-
Taco Hoekwater