[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


[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] \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] 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


Re: [NTG-context] bug in layers

2004-07-05 Thread dr. Hans van der Meer
On 30-jun-04, at 09:01, Hans Hagen wrote:
Hi,
If you think that in the current version layers are using too many 
resources, you're right and may patch:

\def\checkproperty[#1]%
 {\bgroup
  \def\currentproperty{#1}%
  \csname\??py\s!check\currentproperty\endcsname
  \egroup}
Hans
Hans,
I tested this patch, but see no difference. For your convenience I 
include both source and output's, as much documented as I could. The 
pdf's show the macro in question used.
 

testing.tgz
Description: GNU Zip compressed data

Although the effect wanted (alternating backgrounds) can be reached 
with the alternating sequence of textbackground calls (apart from 
adding a \nowhitespace occasionally), I suppose you are a bit like me: 
perfection dictates that everything should behave well and as expected!

Good luck with the debugging!
Hans van der Meer



[NTG-context] Define new flow chart cell shape

2004-07-05 Thread Pedro Mendonça
Hi Hans!
 I'm using the flow chart module and I want to know how to create a new cell shape 
using MetaPost and assign that new shape to a shape number.
 Could you give me an example? Thanks.

Pedro Mendonca.



___

Maisfutebol - a paixão do futebol actualizada ao minuto.
Saiba tudo sobre o Euro 2004 e vibre com as emoções do futebol.
http://www.maisfutebol.iol.pt/

___
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 Høgholm
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  
  
shows a lot of examples.
--
Morten Høgholm

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


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

2004-07-05 Thread Giuseppe Bilotta
Monday, July 5, 2004 Nikolai Weibull wrote:

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

[snip]

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

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.

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

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


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


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


[NTG-context] was: Configuration SciTE under Linux

2004-07-05 Thread Willi Egger
Hi,
yesterday I posted my problems configuring SciTE under Linux. Thanks to 
the tip of Hraban I came to the following solution:

In the SciTEUser.porperties file setup the paths to the perl and ruby 
scripts. Do not forget the slash at the end of the line.

path.context.rubyscripts=/usr/local/tex/texmf-local/scripts/context/ruby/
path.context.perlscripts=/usr/local/tex/texmf-local/scripts/context/perl/
In the context.properties file change the menu issues as follows:
name.context.concheck=ruby $(path.context.rubyscripts)concheck.rb
name.context.texexec=perl $(path.context.perlscripts)texexec.pl --autopdf
name.context.texshow=perl $(path.context.perlscripts)texshow.pl
name.context.texutil=perl $(path.context.perlscripts)texutil.pl
name.context.examplap=ruby $(path.context.rubyscripts)texmfstart.rb 
--file=examplap.pdf --program=context --browser

name.context.showcase=ruby $(path.context.rubyscripts)texmfstart.rb 
--file=showcase.pdf --program=contextname.context.concheck=ruby 
$(path.context.rubyscripts)concheck.rb

So may be that there is still a better solution to this. Any comment is 
welcome.

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