Re: [NTG-context] Numerical Calculations

2012-12-21 Thread Andre Caldas
 Here's the animated (video) version.

 http://www.youtube.com/watch?v=2_OZ-yKMd7g

How did you produce a video out of the PDF?
___
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] Numerical Calculations

2012-12-21 Thread Troy Henderson

 How did you produce a video out of the PDF?


I wrote a BASH script to automate this process, but essentially it involves
converting each frame/page of the PDF to JPG and then combining the JPG
sequence into a MP4 movie.

The hypocycloid example has 191 frames, and so I did something like:

let n=0;
while [ $n -lt 191 ]
do
   convert -density 720 hypocycloid.pdf[$n] -resize x720 -flatten
-gravity center -extent 1280x720 -quality 100 hypocycloid-$n.jpg
done
ffmpeg -r 13 -i hypocycloid-%d.jpg -b 5000k -vcodec libx264 -y
hypocycloid.mp4
___
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] spacing: units in math

2012-12-21 Thread Hans Hagen

On 12/19/2012 7:18 PM, Andreas Mang wrote:

Hi there,

sorry for being such a pain in the neck.

Is there going to be a solution considering the spacing problems with the use 
of units (native mkiv command) in near future (within 2-3 weeks)? If there is 
none and I am not doing something wrong, I'll add a local work around every 
time I use units. As this is much work, I'd appreciate if someone told me if 
this is something that might be fixed soon. If not I'm good - I just need to 
know.

Explanation of my problem: Maybe I am doing something wrong, but in the 
resulting document the spacing is bigger in math mode then in the text mode in 
case I use \units{...}. In particular, the distance for the decimal separator 
is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$)..


can you try

\appendtoks
\disablemathpunctuation
\to \everyunits




Thanks.

Cheers,
Andreas

Am Dec 11, 2012 um 1:49 PM schrieb Andreas Mang m...@imt.uni-luebeck.de:


Hi,

I still do have problems with a wrong spacing between number and unit in math 
mode (minimal example below). Clearly, I could do something like

$\alpha = $ \unit{1,2 meter}

but I think this is likely to result in problems with the look of the result in 
case this is close to a line break.

Cheers,
Andreas

 MINIMAL EXAMPLE 
\starttext
\unit{1,2 meter} % what I would expect

$\unit{1,2 meter}$ % wrong spacing

$\unit{1{,}2 meter}$ % there is no output after 1
\stoptext
 MINIMAL EXAMPLE 


Am Nov 30, 2012 um 8:43 PM schrieb Romain Diss romain.d...@yahoo.fr:


Le jeudi 29 novembre 2012, Andreas Mang a écrit :

Hi there,

I encountered some problems with the built in units command in MKIV. I
provide a minimal example which should demonstrate my problems. Maybe I am
doing something wrong...

\setupbodyfont[pagella]
\starttext
\unit{11,1e-1 micro mol per second} \par
$\unit{11,1e-1 micro mol per second}$ \par
\unit{11,1e-1 per second} \par
\unit{11,1e-1 / second} \par
\stoptext

Don't know for the first two, but the last two should be replaced by:
\unit{11,1e-1 inverse second}

All the best.


--
Romain Diss
romain.d...@yahoo.fr
___
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
___


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


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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] spacing: units in math

2012-12-21 Thread Andreas Mang
Dear Hans,

 On 12/19/2012 7:18 PM, Andreas Mang wrote:
 Hi there,
 
 sorry for being such a pain in the neck.
 
 Is there going to be a solution considering the spacing problems with the 
 use of units (native mkiv command) in near future (within 2-3 weeks)? If 
 there is none and I am not doing something wrong, I'll add a local work 
 around every time I use units. As this is much work, I'd appreciate if 
 someone told me if this is something that might be fixed soon. If not I'm 
 good - I just need to know.
 
 Explanation of my problem: Maybe I am doing something wrong, but in the 
 resulting document the spacing is bigger in math mode then in the text mode 
 in case I use \units{...}. In particular, the distance for the decimal 
 separator is as if I would type $1,2$ instead of $1{,}2$ (example: 
 $\units{1,2}$)..
 
 can you try
 
 \appendtoks
 \disablemathpunctuation
 \to \everyunits

Thanks for looking into this. The problem with the decimal separator is solved. 
You made my day with just 4 commands!

Just that you know: I still observe a tiny difference in the blank space 
between numbers and times symbol (\times) when comparing math mode to standard 
text mode (minimal example below). AFAIK this does not make a difference. If I 
find the time i might just put every unit stuff into math mode (for consistency 
reasons). So my document is ready for being published (in this respect). It 
just still lacks content :)

Happy holidays to all of you.

Andreas


% MINIMAL EXAMPLE

\appendtoks
\disablemathpunctuation
\to \everyunits

\starttext 
\unit{1,2e3 meter}

$\unit{1,2e3 meter}$
\stoptext

% MINIMAL EXAMPLE
___
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] spacing: units in math

2012-12-21 Thread Hans Hagen

On 12/21/2012 7:36 PM, Andreas Mang wrote:


Just that you know: I still observe a tiny difference in the blank space 
between numbers and times symbol (\times) when comparing math mode to standard 
text mode (minimal example below). AFAIK this does not make a difference. If I 
find the time i might just put every unit stuff into math mode (for consistency 
reasons). So my document is ready for being published (in this respect). It 
just still lacks content :)


math spacing will always be somewhat different

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Odd /externalfigure behavior

2012-12-21 Thread Hans Hagen

On 12/19/2012 9:38 PM, Guy Stalnaker wrote:

I'm willing to give you an image, but it cannot be the images. I have
edited the file and put systematically % before the /externalfigure
lines then run context against the file. As I added the % the nil error
shifted to the next /externalfigure. I stopped this after five times. I
have confirmed, by the way, file/directory ownership with chown and
privileges with chmod. They are set as they should be, so whatever is
awry is not owner/privilege related.

Another reason it cannot be the images is that I used context with the
same document and the same images to successfully create a document.
They were unchanged, to my knowledge, the next day when context started
throwing the error. While it's conceivable that some agent might have
modified the documents and/or my office Linux install overnight without
my knowledge, that must be considered a very remote possibility.

That said, I'm hard-pressed to figure out what can possibly have
changed, overnight, such that context would suddenly begin throwing the
errors. That is why I unlinked/relinked Dropbox. They could change
something on their end. But that had no affect on the error. Nor did
moving all the images that are in the document from multiple directories
into one directory.


There has been some cleanup of filename constructors but nor that 
drastic. Maybe some are (temporary) More sensitive so nil arguments but 
that is then an indication of some issue earlier in the chain. The 
comment and next one being a problem is weird.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___