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] 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  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] 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
 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,   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  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] Page Numbering Hell

2009-10-25 Thread Boštjan Vesnicer
Alan,

for me it is actually very obvious an easy to understand the situation
about missing documentation. In my opinion there are a couple of
reasons for that:
- The gurus don't have time to write the documentation since they have
more important things to do, i.e. implementing features.
- Documentation (in a form of a manual) is of the most value to the
newbies, but they can't write a manual by themselves about something
they dont't know much about. So they ask for the documentation on the
mailing list, but they eventually find out that the up-to-date
documentation is missing and they start to use other sources of
information (wiki, mailing list, source code etc.). They learn slowly,
but at the end (if they persist long enough) they know enough that
they maybe could write a manual. However, they don't really need the
manual any more so they decide not to write one. (Paradoxical
situation, I know.)
- The key is in the motivation. If you want better documentation, you
have to figure out how to convince the gurus to write one.

Best regards,
Bostjan


On Wed, Oct 21, 2009 at 4:24 PM, Bryant Eastham
 wrote:
> Alan-
>
> Thanks for taking time to respond. However, I'm not sure how exaggerated
> my post was.
>
> Believe me, I understand learning curves. I have been a LaTeX user (off
> and on) for almost two decades (leading to my excitement about ConTeXt,
> :-) ). However, in order to learn one either needs documents or mentors.
> It helps to have both.
>
> I also understand the complexity that comes with powerful languages. I
> have been writing software of various types for almost thirty years. The
> move from mkii to mkiv will, I'm sure, be a good thing in the end.
>
> However, I find it interesting that in your response there was not a
> single real answer to any of my direct questions, nor a working example
> of what you admit should be a "simple matter".
>
> Don't get me wrong! This is not an attack on the group or on you
> personally - I really do appreciate the response. I hope that others
> will be able to correctly fill in the rest of the "magic sauce" that
> makes the document work and answer my other questions. However, I
> believe that my original statements, which boil down to "This thing may
> be great, but it needs to be documented (or where is it documented?)",
> have been strengthened.
>
> Thanks,
> -Bryant
>
> -Original Message-
> From: Alan BRASLAU [mailto:alan.bras...@cea.fr]
> Sent: Wednesday, October 21, 2009 1:14 AM
> To: ntg-context@ntg.nl
> Cc: Bryant Eastham
> Subject: Re: [NTG-context] Page Numbering Hell
>
> Dear Bryant,
>
> Your post is slightly exaggerated.
> The document structure that you want to produce
> appears to be relatively standard. Whereas,
> indeed, the learning curve for ConTeXt (as for TeX)
> can be somewhat slow, the richness and powerfulness
> is well worth the effort.
>
> The documentation for ConTeXt (mkii) is quite rich,
> although it did take me some time to get used to
> the presentation and style. Some of the syntax
> has evolved in mkiv, mostly in an effort of
> simplification, but also to allow some powerful
> new features. The documentation is (slowly)
> being updated, as this is a tremendous effort.
> But it is a necessary effort. I believe that
> all of us users will appreciate the updated
> reference manual when it is completed!
>
> A notable change between mkii and mkiv
> is the handling of document structure.
> I, too, have had a difficult time with this evolution
> of such a fundamental functionality and will
> therefore let someone more expert reply to
> your request with specific examples on how
> to tune the style, notably page numbering;
> it should be a simple matter.
>
> Alan
>
> % missing setups to:
> % 1. frontmatter pagenumbering conversion=romannumerals
> % 2. bodymatter pagenumbering "chapter-page"
> % 3. reset pagenumber for each chapter
> % 4. add blank pages if necessary to start chapters on odd pages.
>
> \starttext
>
> \startfrontmatter
> \completecontent
> \stopfrontmatter
>
> \startbodymatter
> \chapter{Chapter}
> \section{Section}
> \chapter{Chapter 2}
> \section{Section}
> \stopbodymatter
>
> \stoptext
>
> On Wednesday 21 October 2009 08:36:35 Bryant Eastham wrote:
>> All-
>>
>> A few days ago when I first stumbled on ConTeXt I was very, very
>> excited. I have some 500 pages of technical documentation that could
>> benefit from this, particularly since I need Japanese font support.
> But
>> it has to be real.
>>
>> I'm sorry if this sounds caustic, but after 12 hours of failed
> attempts
>> to even get a minimal document formatted I have some serious questions
>> for the list:
>>
>> 1.       Is Mark IV real? I am only somewhat joking here - after
>> spending hours searching for reasonable documentation on even the most
>> trivial options, I am left wondering whether this is something I want
> to
>> use...
>>
>> 2.       ConTeXt looks great. But what is current? Seriously, I like
> the
>> look and the support (particularly 

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