Re: [NTG-context] makeupwidth in externalfigure yields invalid escape sequence

2013-01-01 Thread Wolfgang Schuster

Am 31.12.2012 um 13:38 schrieb Andreas Mang m...@imt.uni-luebeck.de:

 Hi there,
 
 did I miss something or is there a problem with the use of makeupwidth in 
 conection with the externalfigure command in the latest beta?

The \externalfigure commands passes the values of the width/height keys to Lua 
which can’t handle relative values.

When you want to dimension to Lua they have to be in the form “10pt”, 5cm” or 
“1200” (dimension without units are in scaled points), to convert a relative 
(e.g. \textwidth) in a absolute value (e.g. 12pt) you can use the \dimexpr 
command.

  \externalfigure[…][width=\the\dimexpr.3\textwidth\relax]

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] makeupwidth in externalfigure yields invalid escape sequence

2013-01-01 Thread Andreas Mang
Hi,

Thanks for the quick responses.

 The \externalfigure commands passes the values of the width/height keys to 
 Lua which can’t handle relative values [...] to convert a relative (e.g. 
 \textwidth) in a absolute value (e.g. 12pt) you can use the \dimexpr command.
 
  \externalfigure[…][width=\the\dimexpr.3\textwidth\relax]

I'm seem to be not educated enough about dos and don'ts: To me it seemed 
mandatory to use relative sizes as I might have to change the layout of my 
document (*). So, do I get it right that the idea of this change is to stick to 
a rigid A4 setting (i.e. all figures are e.g. of width 5 cm) and then simply 
change the print out size to A5: 

\setuppapersize[A4][A5]

A quick yes, keep it rigid or no, do it adaptively would be enough to get 
me on track (in case I am not telling bull). I'll adapt my doc accordingly. 

Cheers,
Andreas

(*) I am currently working on a document, which Iis going through assessment in 
A4 and very likely published in A5
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Jeong Dal
Dear Wolfgang,

Thank you for the explanation and the correction of the code.

It works nicely. It also taught me some other things too.

I'd like to ask you one more thing.
When you update the animation module, would you please concern the location of 
the menu?
I think that it is better to put it at the bottom center of the animation frame 
in default?  
Currently, it is located slightly left from the center.

Thanks again.

Best regards,

Dalyoung
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Wolfgang Schuster

Am 01.01.2013 um 15:30 schrieb Jeong Dal hak...@me.com:

 Dear Wolfgang,
 
 Thank you for the explanation and the correction of the code.
 
 It works nicely. It also taught me some other things too.
 
 I'd like to ask you one more thing.
 When you update the animation module, would you please concern the location 
 of the menu?
 I think that it is better to put it at the bottom center of the animation 
 frame in default?  
 Currently, it is located slightly left from the center.

This is a bug in context which adds a space for each symbol in a fieldstack 
(the mechanism
which is used to create the animation and which is documented in the metafun 
manual).

I reported it a few days ago on the dev list and hope Hans will fix it in the 
next beta.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___