[NTG-context] Movable code, was Re: starttexdefinition error in standalone, works in TL2013

2014-03-12 Thread Rik
On 2014-03-01 07:32, Wolfgang Schuster wrote: \unexpanded\def\startTranslation {\begingroup \dosingleempty\dostartTranslation} \def\dostartTranslation[#1]% {\iffirstargument \getrawparameters[Translation][setups=,language=en,#1]% \fi \grabbufferdata[Translation][startTra

Re: [NTG-context] Problem with an environment

2014-03-12 Thread Fabrice
Hi Wolfgang, Thank you for your help. I actually forgot this : \ definetypeface [mainface] [ss] [sans] [dejavu] [default] [rscale = auto]. The problem is that I'm still new with ConTeXt, but I think I can say that I grew to people like you. __

Re: [NTG-context] MP bounding box

2014-03-12 Thread Peter Rolf
Am 12.03.2014 18:15, schrieb Hans Hagen: > On 3/12/2014 5:25 PM, Peter Rolf wrote: >> Am 12.03.2014 17:05, schrieb Hans Hagen: >>> On 3/12/2014 2:38 PM, Peter Rolf wrote: Hi, I run into a problem with the bounding box calculation of a MP graphic. Seems like very small values are

Re: [NTG-context] MP bounding box

2014-03-12 Thread Hans Hagen
On 3/12/2014 5:25 PM, Peter Rolf wrote: Am 12.03.2014 17:05, schrieb Hans Hagen: On 3/12/2014 2:38 PM, Peter Rolf wrote: Hi, I run into a problem with the bounding box calculation of a MP graphic. Seems like very small values are represented in scientific notation and MP can't handle those. E

Re: [NTG-context] MP bounding box

2014-03-12 Thread Peter Rolf
Am 12.03.2014 17:05, schrieb Hans Hagen: > On 3/12/2014 2:38 PM, Peter Rolf wrote: >> Hi, >> >> I run into a problem with the bounding box calculation of a MP graphic. >> Seems like very small values are represented in scientific notation and >> MP can't handle those. >> >> Example attached. >> >>

Re: [NTG-context] MP bounding box

2014-03-12 Thread Hans Hagen
On 3/12/2014 2:38 PM, Peter Rolf wrote: Hi, I run into a problem with the bounding box calculation of a MP graphic. Seems like very small values are represented in scientific notation and MP can't handle those. Example attached. [..] e e - 6.103515625e- 005 \setMPboundingbox

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 11:06 AM, Wolfgang Schuster wrote: > > Am 12.03.2014 um 15:51 schrieb Lars Huttar >: > >> This gets rid of the error, but it seems to prevent any expansion of the >> content of \CurrentUser, because the page head now literally looks like >> this: > > You ca

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:51 schrieb Lars Huttar : > This gets rid of the error, but it seems to prevent any expansion of the > content of \CurrentUser, because the page head now literally looks like > this: You can try to print the string in verbatim mode: \def\CurrentUser{\cldcommand{sprint(tex.

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:21 AM, Wolfgang Schuster wrote: > > Am 12.03.2014 um 15:12 schrieb Lars Huttar >: > >> On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: >>> Am 12.03.2014 um 15:00 schrieb Lars Huttar >> >: >>> Hello, I've got a runnin

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:12 schrieb Lars Huttar : > On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: >> Am 12.03.2014 um 15:00 schrieb Lars Huttar : >> >>> Hello, >>> I've got a running page head like this in my document: >>> >>> \def\CurrentUser{\cldcontext{os.resultof"whoami"}} >>> >>> \def\Markna

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
On 3/12/2014 10:05 AM, Wolfgang Schuster wrote: > Am 12.03.2014 um 15:00 schrieb Lars Huttar : > >> Hello, >> I've got a running page head like this in my document: >> >> \def\CurrentUser{\cldcontext{os.resultof"whoami"}} >> >> \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ >> \

Re: [NTG-context] confusion about expansion

2014-03-12 Thread Wolfgang Schuster
Am 12.03.2014 um 15:00 schrieb Lars Huttar : > Hello, > I've got a running page head like this in my document: > > \def\CurrentUser{\cldcontext{os.resultof"whoami"}} > > \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ > \contextversion } > > and later: > > \setlayer[cropmar

[NTG-context] confusion about expansion

2014-03-12 Thread Lars Huttar
Hello, I've got a running page head like this in my document: \def\CurrentUser{\cldcontext{os.resultof"whoami"}} \def\Markname { Compiled \date by \CurrentUser \LUATEX +\ConTeXt\ \contextversion } and later: \setlayer[cropmark][preset=lefttop,x=3cm,y=-1.5\lineheight]{\Markname} But when I run

[NTG-context] MP bounding box

2014-03-12 Thread Peter Rolf
Hi, I run into a problem with the bounding box calculation of a MP graphic. Seems like very small values are represented in scientific notation and MP can't handle those. Example attached. [..] e e - 6.103515625e- 005 \setMPboundingbox #1#2#3#46-\global \MPllx #1