ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* unic-033.tex and unic-034.tex
@ 2005-06-07 20:37 Nikolai Weibull
  2005-06-07 21:35 ` Taco Hoekwater
  2005-06-10 22:19 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Nikolai Weibull @ 2005-06-07 20:37 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

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);}

[-- Attachment #2: unic-033.tex --]
[-- Type: application/x-tex, Size: 7324 bytes --]

[-- Attachment #3: unic-034.tex --]
[-- Type: application/x-tex, Size: 15245 bytes --]

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unic-033.tex and unic-034.tex
  2005-06-07 20:37 unic-033.tex and unic-034.tex Nikolai Weibull
@ 2005-06-07 21:35 ` Taco Hoekwater
  2005-06-10 11:37   ` Nikolai Weibull
  2005-06-10 22:19 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2005-06-07 21:35 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unic-033.tex and unic-034.tex
  2005-06-07 21:35 ` Taco Hoekwater
@ 2005-06-10 11:37   ` Nikolai Weibull
  0 siblings, 0 replies; 5+ messages in thread
From: Nikolai Weibull @ 2005-06-10 11:37 UTC (permalink / raw)


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);}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unic-033.tex and unic-034.tex
  2005-06-07 20:37 unic-033.tex and unic-034.tex Nikolai Weibull
  2005-06-07 21:35 ` Taco Hoekwater
@ 2005-06-10 22:19 ` Hans Hagen
  2005-06-10 22:47   ` Nikolai Weibull
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2005-06-10 22:19 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unic-033.tex and unic-034.tex
  2005-06-10 22:19 ` Hans Hagen
@ 2005-06-10 22:47   ` Nikolai Weibull
  0 siblings, 0 replies; 5+ messages in thread
From: Nikolai Weibull @ 2005-06-10 22:47 UTC (permalink / raw)


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);}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-10 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-07 20:37 unic-033.tex and unic-034.tex Nikolai Weibull
2005-06-07 21:35 ` Taco Hoekwater
2005-06-10 11:37   ` Nikolai Weibull
2005-06-10 22:19 ` Hans Hagen
2005-06-10 22:47   ` Nikolai Weibull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).