Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
> > label(decimal(n),origin); > Sorry. I found the answer by wrapping the decimal() inside textext(). That is, label(textext(decimal(n)),origin); does what I want. Troy ___ If your question is of interest to others

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
That works great too. One more question now. I would like a particular MetaPost label to contain the value of a variable, say n. I don't want to use label(decimal(n),origin); because I want the label to be a TeX picture instead of a string. That is, I would like to have label(btex n etex,ori

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
That works great. Now I have defined a global numeric N:=8; in \startMPinclusions ... \stopMPinclusions at the be beginning of my document. All of my \startMPpage ... \stopMPpage environments understand this N, but how do I reference this value as the start value for \dostepwiserecurse? That

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
That works great. Now I have defined a global numeric N:=8; in \startMPinclusions ... \stopMPinclusions at the be beginning of my document. All of my \startMPpage ... \stopMPpage environments understand this N, but how do I reference this value as the start value for \dostepwiserecurse? That i

Re: [NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Aditya Mahajan
On Sun, 9 Sep 2012, Troy Henderson wrote: When I create animations using MetaPost, I typically do something like for n=1 upto N: beginfig(n); endfig; endfor; and a sequence of figures are created. How can I do this in ConTeXt using \startMPpage ... \stopMPpage? (untested) \dorecu

[NTG-context] Sequence of MetaPost Pages

2012-09-09 Thread Troy Henderson
When I create animations using MetaPost, I typically do something like for n=1 upto N: beginfig(n); endfig; endfor; and a sequence of figures are created. How can I do this in ConTeXt using \startMPpage ... \stopMPpage? Troy Henderson ___

[NTG-context] Search path.

2012-09-09 Thread Andre Caldas
Hello, list! I am really new to ConTeXt. I am writing a book http://topologia-geral.ourproject.org/ It is written in LaTeX and I intend to migrate it to ConTeXt. I want to migrate and I want to be as far from HACKS as I can. So I want to know the recommended way to do things. One of my first diff

[NTG-context] No cmyk support in MKIV (TexLive 2012 version)?

2012-09-09 Thread Bill Meahan
Trying to define some spot colors using the wiki examples. I get the following error message every time I run MKIV: colors > cmyk color space is not supported Here's the relevant section of my environment file: % Turn on colors. \setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overp

Re: [NTG-context] 3D annotations problems

2012-09-09 Thread Wolfgang Schuster
Am 09.09.2012 um 16:07 schrieb Michail Vidiassov : > Just a follow up - > the old way "width=0.5\textwidth" still works for png external figures. When you use images in jpg, png or pdf format context still uses a lot of tex code where you can use this form of assignment because the values are as

Re: [NTG-context] 3D annotations problems

2012-09-09 Thread Michail Vidiassov
Just a follow up - the old way "width=0.5\textwidth" still works for png external figures. Is it considered non-kosher now and is to be changed everywhere to the new one “width=\the\dimexpr0.5\textwidth\relax” whenever possible to avoid potential problems? _

Re: [NTG-context] 3D annotations problems

2012-09-09 Thread Michail Vidiassov
Dear Wolfgang and All, On Sun, Sep 9, 2012 at 4:52 PM, Wolfgang Schuster wrote: >> in the latest minimals (2012.09.06 23:03) the following example from >> back-u3d.mkiv fails to work >> >> \useexternalfigure [test] [test.prc] [width=0.5\textwidth, ... > It should work when you use “width=\t

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
Thanx Wolfgang for your explanations. Jaroslav Hajtmar Dne 9.9.2012 14:44, Wolfgang Schuster napsal(a): Am 09.09.2012 um 13:56 schrieb Jaroslav Hajtmar: Thanx Wolfgang. So far I have never worked with namespaces as follows. I thought that \setvariables macro automatically namespace fo

Re: [NTG-context] 3D annotations problems

2012-09-09 Thread Wolfgang Schuster
Am 09.09.2012 um 11:00 schrieb Michail Vidiassov : > Dear Hans and All, > > > On Sat, Aug 18, 2012 at 10:00 PM, Michail Vidiassov > wrote: >> the examples from back-u3d.mkiv fail to work with latest beta >> (rectangled "undefined" message appears instead of annotation), >> but if "\textwidth"

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Wolfgang Schuster
Am 09.09.2012 um 13:56 schrieb Jaroslav Hajtmar : > Thanx Wolfgang. > > So far I have never worked with namespaces as follows. I thought that > \setvariables macro automatically namespace for variables creates and sets > the values in it. Setvariables somehow connected with the creation of mac

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
Thanx Wolfgang. So far I have never worked with namespaces as follows. I thought that \setvariables macro automatically namespace for variables creates and sets the values in it. Setvariables somehow connected with the creation of macro variables in the namespace of the given name? It appears

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Wolfgang Schuster
Am 09.09.2012 um 12:35 schrieb Jaroslav Hajtmar : > Thanx Wolfgang. > > I do not know anything about such a possibility. > What do you mean? Can you show a simple example? > I tried several options but nothing works. Here are some examples: > > \setvariables[myspacename][id=1, value={value}] >

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
Thanx Wolfgang. I do not know anything about such a possibility. What do you mean? Can you show a simple example? I tried several options but nothing works. Here are some examples: \setvariables[myspacename][id=1, value={value}] \getparameters[myotherspacename][id=1, value={value}] \starttext

Re: [NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Wolfgang Schuster
Am 09.09.2012 um 10:42 schrieb Jaroslav Hajtmar : > Hello ConTeXist, > > Is it possible go through all the keys of \setvariables (getvariable) macro > and create the appropriate macros, as in the case of \getparameters macro? > > I mean macro like \getallvariablesfrom[myfirstnamespace], which

Re: [NTG-context] 3D annotations problems

2012-09-09 Thread Michail Vidiassov
Dear Hans and All, On Sat, Aug 18, 2012 at 10:00 PM, Michail Vidiassov wrote: > the examples from back-u3d.mkiv fail to work with latest beta > (rectangled "undefined" message appears instead of annotation), > but if "\textwidth" is replaced by "in" in the tex file 3D annotations > appear OK. i

[NTG-context] Working with variables in MkIV (\ setvariables, \getparameters etc)

2012-09-09 Thread Jaroslav Hajtmar
Hello ConTeXist, Is it possible go through all the keys of \setvariables (getvariable) macro and create the appropriate macros, as in the case of \getparameters macro? I mean macro like \getallvariablesfrom[myfirstnamespace], which return contents of brackets macro \setvariables[myfirstname