Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer
Hi Troy

Here is a simple solution:

\def\MyGraphics#1{%
\startMPcode
path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
q:=subpath (0,#1/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopMPcode}

\starttext
\dostepwiserecurse{0}{20}{1}{%
\startTEXpage
\MyGraphics{\recurselevel}
\stopTEXpage}
\stoptext

Regards, Bostjan

On Thu, Apr 15, 2010 at 7:53 PM, Troy Henderson thend...@gmail.com wrote:

 I am trying to create an animation in ConTeXt + MetaPost.  In
 particular, I would like to have ConTeXt + MetaPost generate each
 individual frame of the animation, and then I would like to place each
 of these graphics on the page in succession.  I am looking for a
 ConTeXt way without placing the MetaPost code in a separate source
 file, running MetaPost, and using \externalfigure.  The following
 MetaPost sample code generate 21 graphics images  (numbered .0 to
 .20), but I have no idea how to have ConTeXt generate these graphics
 without a manual external MetaPost run and have them included in a way
 that is consistent with \startuseMPgraphic or similar.

 Thanks in advance,

 Troy Henderson

 path p,q;
 p:=fullcircle scaled 72;
 L:=length p;
 N:=20;
 for n=0 upto N:
beginfig(n);
q:=subpath (0,n/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q
 withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5)
 scaled 75;
endfig;
 endfor;
 end


 --
 Troy Henderson
 Assistant Professor
 Department of Mathematics
 University of Mobile
 http://www.tlhiv.org

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


Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer

 If I have two different \startMPcode ... \stopMPcode sections, is
 there a way (perhaps it does this by default) to have the variables
 stored in the first block available in the second block?  In pure
 MetaPost, I can do

 numeric a:=4;
 beginfig(1);
label(decimal(a),origin);
 endfig;
 beginfig(2);
label(decimal(a),origin);
 endfig;
 end

 and both figures have the value of 'a' available to them because 'a'
 was defined before each figure.  What is the ConTeXt way of doing
 this?


Do you mean something like this?

\starttext
\startMPpage
a := 4;
label(decimal a, origin);
\stopMPpage
\startMPpage
a := a+1;
label(decimal a, origin);
\stopMPpage
\stoptext

Regards, Bostjan
___
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] Blank at beginning of page

2010-01-19 Thread Boštjan Vesnicer

On 18.1.2010 13:40, Philipp Gesang wrote:

\showframe
\starttext
\blank[5*big]
Some text.
\stoptext
   


\dontleavehmode
\blank[5*big]

See http://wiki.contextgarden.net/A_Very_Simple_Cover_Page for explanation.

Bostjan


___
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] MathTime Lite fonts for free

2009-12-17 Thread Boštjan Vesnicer
Do the typescripts for the MathTime fonts exist?

On Wed, Dec 16, 2009 at 9:12 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 FYI,

 http://www.texdev.net/2009/12/16/mathtime-lite-fonts-for-free/

 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
 ___

___
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] equivalent of \substack

2009-12-09 Thread Boštjan Vesnicer
See http://dl.contextgarden.net/myway/mathalign.pdf

On Wed, Dec 9, 2009 at 1:11 PM,  comm...@googlemail.com wrote:
 hi,

 is there an equivalent of \substack, or how could i get multiline-limits for
 math operators?

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


Re: [NTG-context] labelling again: tables? And captions?

2009-10-30 Thread Boštjan Vesnicer
 how can I add a label and a caption to a table?

http://wiki.contextgarden.net/Floating_Objects
___
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] \label equivalent in a section?

2009-10-29 Thread Boštjan Vesnicer
\section[intro]{Introduction}

On Thu, Oct 29, 2009 at 5:06 PM, Pau vim.u...@googlemail.com wrote:
 Hello,

 how do I translate

 
 \section{Introduction}
 \label{intro}

 In Section \ref{intro}, we show an example of labelling
 

 in ConTeXt?

 I have looked in the wiki, and googled and I haven't found out...

 Thanks a lot,

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


Re: [NTG-context] [MP] labels of points on a circle

2009-10-19 Thread Boštjan Vesnicer
Hi Dalyoung,

You can try to adapt the following snippet:

numeric i;
pickup pencircle scaled 4pt;
for i = 1 upto 10:
z[i] = dir(uniformdeviate 360);
drawdot z[i] scaled 4cm;
label(decimal(i), z[i] scaled 4.3cm);
endfor;

Best regards,
Bostjan


On Mon, Oct 19, 2009 at 2:48 PM, dalyoung hak...@me.com wrote:
 Hi all,

 To draw 9 points with labels, I used the following code.

 \startbuffer[point2]
 path p;
 numeric i; i=1;
 for j =0.5,1.3,2.5,3,4,4.8,6,7.2,7.9:
 z[i] = dir(j*45) scaled 4cm;
 i:= i+1;
 endfor;
 p := z1..z2..z3..z4..z5..z6..z7..z8..z9..cycle;
 draw p;
 drawpoints p;
 drawpointlabels p;
 \stopbuffer
 \placefigure[middle][]{}{\processMPbuffer[point2]}

 Then it draw everything well except writing labels inside the circle. How
 can I write the labels of the  points outside of the circle?

 I'd like to draw 9 points randomly on a circle. Is there a nice way to do
 it?

 Thank you.

 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
 ___

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


[NTG-context] \startalign + \boldsymbol weird behavior

2009-03-29 Thread Boštjan Vesnicer
Hi,

I've noticed a weird behavior using \boldsymbol within \startalign
\stopalign. Please see the attached minimal example.

MKII version 2009.03.13 17:35

Bostjan


minimal.tex
Description: TeX document
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bold math

2009-03-27 Thread Boštjan Vesnicer
Thanks, Aditya.

I have the same question for calligraphic and doublestroke symbols.

Bostjan

On Fri, Mar 27, 2009 at 4:17 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 27 Mar 2009, Bostjan Vesnicer wrote:

  Hi,

 what is the current (preferred) way of using math bold symbols.


 For MKII, define

 \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

 and then use \boldsymbol around symbol that you want in bold.

 For MKIV, bold math isn't handled yet.

 Aditya

 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___