Re: [NTG-context] nath catcode issues

2004-07-05 Thread Giuseppe Bilotta
Sunday, July 4, 2004 Nikolai Weibull wrote:

 It seems that the code to enable catcode handling in nath math mode
 isn't working.  Currently, nath uses

[snip]

 to set it up, but as far as I can see this doesn't actually do anything
 as [EMAIL PROTECTED] doesn't get invoked for commas and \dots always renders like
 \cdots.  Am I missing something perhaps?

Well, the nath catcodes only apply in math mode, and indeed in
math mode , will trigger [EMAIL PROTECTED] :)

About \dots: with the nath module, \dots will *in math mode*
use \cdots in all cases *except* after punctuation (e.g. after
a comma); indeed, the code

\[
a=b, \dots c=d \dots
\]

will give you \ldots in the first case and \cdots in the second
case. Do you have some example of when it doesn't work?

 Furthermore,

 [EMAIL PROTECTED] command \string\over }
  {No more a valid command. Replace {A \over B} with \frac A B.}}
 [EMAIL PROTECTED] command \string\atop }
  {No more a valid command. Use array instead.}}
 [EMAIL PROTECTED] command \string\choose }
  {No more a valid command. Replace {A \choose B} with \binom A B.}}

 also messes up stuff in core-ref.tex for example:

AHA! Good point. Try this fix:

[EMAIL PROTECTED] command \string\over }
 {No more a valid command. Replace {A \over B} with \frac A
 [EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\atop }
 {No more a valid command. Use array [EMAIL PROTECTED]
[EMAIL PROTECTED] command \string\choose }
 {No more a valid command. Replace {A \choose B} with \binom A
 [EMAIL PROTECTED]
 
(hm. this is untested. I'm sure it'll bomb out because of
expansion, I'll have to design a cleaner one.)

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[10]: [NTG-context] Known nath bugs?

2004-07-05 Thread Giuseppe Bilotta
Sunday, July 4, 2004 Sebastian Sturm wrote:

 I will look into the interaction with MPenvironment. To solve
 the subscript problem, please change line 2738 of t-nath.tex
 from

  \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]

 to

  \ifdim\wd\!!boxa[EMAIL PROTECTED] [EMAIL PROTECTED]

 (in the definition of \axis@)

 and let me know how it works.

 Hi,

 works perfectly, thanks!


Good. I'll submit the new version to CTAN.

-- 
Giuseppe Oblomov Bilotta


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: nath catcode issues

2004-07-05 Thread Nikolai Weibull
* Giuseppe Bilotta [EMAIL PROTECTED] [Jul 05, 2004 12:10]:
 Well, the nath catcodes only apply in math mode, and indeed in
 math mode , will trigger [EMAIL PROTECTED] :)

Hm, not here...

 About \dots: with the nath module, \dots will *in math mode*
 use \cdots in all cases *except* after punctuation (e.g. after
 a comma); indeed, the code

 \[
 a=b, \dots c=d \dots
 \]

 will give you \ldots in the first case and \cdots in the second
 case. Do you have some example of when it doesn't work?

Your example above renders with \cdots for both \dots.

\usemodule[nath]
\starttext
$a, b, \dots, n$
\[ a=b, \dots c=d \dots \]
\stoptext

The first line is my old test case, the second is yours...both render
with \cdots everywhere.  Totally weird.  I'm using the latest context
from the pragma-ade page.

 [EMAIL PROTECTED] command \string\over }
  {No more a valid command. Replace {A \over B} with \frac A
  [EMAIL PROTECTED]
 [EMAIL PROTECTED] command \string\atop }
  {No more a valid command. Use array [EMAIL PROTECTED]
 [EMAIL PROTECTED] command \string\choose }
  {No more a valid command. Replace {A \choose B} with \binom A
  [EMAIL PROTECTED]

Ah, of course...
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] definetypeface usage

2004-07-05 Thread dr. Hans van der Meer
Trying to findout how ConTeXt's font mechanism works, I come to 
following question:

From the brochure Fonts in Context (mfonts.pdf) I have picked up the 
notion that exercising a call to \definetypeface gets fonts in working 
order (see the examples there on font specifiers funny and whow, 
for example, and the resulting typeface collection).
Also in file type-exa.tex there is a typescript [postscript] where 
\definetypeface is exercised, seemingly to bring a matched series of 
times, helvetica and courier into existence.
However, the usage of the postscript fonts via \setupbodyfont[pos] 
seems to be completely unconnected with this script (I traced the 
typescript checking). Neither can I find somany calls to 
\definetypeface (and its derivatives \dodefinetypeface and 
\dododefinetypeface); it seems they are barely used in the code.
So, the questions are:
- Does \setupbodyfont[pos] results in the scaled font set as given in 
type-exa?
- Or does \definetypeface belong to an alternative/obsolete font 
definition scheme, totally unrelated to the definitions called up in 
the scripts in type-pre.tex, type-syn.tex, and other friends?
- In preparing font scripts, can I therefore totally ignore 
\definetypeface or will that be disastrous for the result?

If somebody would be so kind to enlighten me...
Hans van der Meer
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Re: nath catcode issues

2004-07-05 Thread Nikolai Weibull
* Giuseppe Bilotta [EMAIL PROTECTED] [Jul 05, 2004 14:00]:
 Weird indeed. I'm not using the latest ConTeXt. (Actually I'm
 quite back with the updates ... gotta get down to it.) I'll see
 if upgrading gives me the same problem and in case get a fix.

OK.

  [EMAIL PROTECTED] command \string\over }
   {No more a valid command. Replace {A \over B} with \frac A
   [EMAIL PROTECTED]
  [EMAIL PROTECTED] command \string\atop }
   {No more a valid command. Use array [EMAIL PROTECTED]
  [EMAIL PROTECTED] command \string\choose }
   {No more a valid command. Replace {A \choose B} with \binom A
   [EMAIL PROTECTED]

  Ah, of course...
  nikolai

 It works like that? Excellent.

It seems I spoke too soon.  It does in fact not work.  [EMAIL PROTECTED] can't be
put like that inside the if-statement.  A suggestion would be to re-work
the whole section and instead make it

\appendtoks
[EMAIL PROTECTED] command \string\over }
 {No more a valid command. Replace {A \string\over B} with \string\frac A B.}}
[EMAIL PROTECTED] command \string\atop }
 {No more a valid command. Use array instead.}}
[EMAIL PROTECTED] command \string\choose }
 {No more a valid command. Replace {A \string\choose B} with \string\binom A B.  }}
\to\everymath

but I don't know if that's a good solution.  It forces you to use
\string\over in the second argument to [EMAIL PROTECTED] which I don't understand
why, but otherwise TeX runs out of stack space.  I suppose it's being
expanded even though it shouldn't be.
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Re: listings.sty

2004-07-05 Thread Morten Hgholm
On Mon, 28 Jun 2004 10:03:37 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

what is listings.sty providing?
Pretty printing of source code for a large number of programming  
languages. Lots of bells and whistles, and easily extensible. The manual  
http://www.ctan.org/tex-archive/macros/latex/contrib/listings/listings.pdf  
shows a lot of examples.
--
Morten Høgholm

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] basic graphics

2004-07-05 Thread Idris Samawi Hamid
Hi crew,
In the ConTeXt documentation the basic graphics commands are not 
documented, like \rotate[]{}, which I discovered combing the /context/base 
files. Can a list of similar commands be provided? At least those commands 
which are analogous to LaTeX's graphix.sty?

I need an, e.g., \mirror command which inverts its argument along the 
horizontal or vertical axis. Is this already there?

All the best
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupURL issues

2004-07-05 Thread Nikolai Weibull
\setupURL
  [color=blue]

seems buggy.  Try this:

\setupcolors
  [state=start]
\setupinteraction
  [state=start]
\setupurl
  [color=blue]
\useURL[one][http://www.google.com/]
\starttext
Why the hell is \from[one] wrapping so badly?
\stoptext

You will (hopefully...or something) notice that the http:// appears
above and slightly to the left of www.google.com in the sentence.
remove \setupurl[...] and it works fine, rendering it green.  It also
works fine if you remove the color=blue and add style=type instead or
whatever.  In noninteractive versions this works fine though and in
documents without \setupcolors[state=start],
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \setupURL issues

2004-07-05 Thread Patrick Gundlach
Hi Nikolai,


 \setupurl
   [color=blue]

Does setupurl take color as an argument? Where is this documented?


Patrick


BTW: \setupinteraction[color=blue] works; perhaps this is enough for
a workaround.
-- 
texshow-web:  http://members.ping.de:8061
ConTeXt wiki: http://members.ping.de:8062
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \setupURL issues

2004-07-05 Thread Nikolai Weibull
* Patrick Gundlach [EMAIL PROTECTED] [Jul 05, 2004 23:40]:
  \setupurl
[color=blue]

 Does setupurl take color as an argument? Where is this documented?

Yes.  It's not really documented, but it's in core-ref.tex around lines
2885.

 BTW: \setupinteraction[color=blue] works; perhaps this is enough for
 a workaround.

Yes, but what if you want different colors for urls and other
interactive items?
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context