[NTG-context] Context and metapost: using \frac

2011-04-26 Thread mat
Hi I am using context to run a metapost graph. I am however unable to insert a label with \frac, since this is not pure Tex but Latex. This seems to be a known problem for metapost: -Seems for metapost only, one should add %latex (http://ryanmlayer.wordpress.com/tag/metapost/). -I saw also

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 25-4-2011 8:33, mat wrote: Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... best use textext ... label.top(textext(1.4)scaled 1.00, (10, 10)); label.top(textext($\sigma_t$)

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Hans Hagen
On 25-4-2011 5:31, Duncan Hothersall wrote: \starttext \chapter[myid]{My chapter} Blah blah. \section[myotherid]{My section} Blah blah. \stoptext add \setupinteraction[state=start] and then in the pdf file you will find destinations like /Names [... (myid) 5 0 R (myotherid) 7 0 R] Hans

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Duncan Hothersall
Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. Duncan On 26/04/2011 09:40, Hans Hagen wrote: On 25-4-2011 5:31, Duncan Hothersall wrote: \starttext \chapter[myid]{My chapter} Blah blah. \section[myotherid]{My section} Blah blah. \stoptext

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Hans Hagen
On 26-4-2011 11:00, Duncan Hothersall wrote: Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. not sure what you expect ... you have no hyperlinks (annotations) .. where do you expect to see destinations in pro?

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Duncan Hothersall
On 26/04/2011 10:27, Hans Hagen wrote: On 26-4-2011 11:00, Duncan Hothersall wrote: Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. not sure what you expect ... you have no hyperlinks (annotations) .. where do you expect to see

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux ubuntu). I saw also that, as you

Re: [NTG-context] Creating a PDF named destination

2011-04-26 Thread Hans Hagen
On 26-4-2011 11:38, Duncan Hothersall wrote: On 26/04/2011 10:27, Hans Hagen wrote: On 26-4-2011 11:00, Duncan Hothersall wrote: Thanks Hans but this doesn't work for me - when I open in Acrobat Pro no named destinations appear. not sure what you expect ... you have no hyperlinks

Re: [NTG-context] Ideas for restructuring the ConTeXt garden?

2011-04-26 Thread Ian Lawrence
Well, I am a beginner. I have just lost 2 hours trying to do something which ought to be simple. Perhaps now I have spent 10's of hours working at my understanding, yet still I have to look up the simplest essentials, often. And I think knowing what kind of things it is, and where one might look

[NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
I have a layer that I'd like to appear on some pages but not others, and for which I'd like to switch the content by page. (I need the layer to precisely and reliably locate some graphics. However, as I see it, you can only set the visibility of a layer in \definelayer, \setupbackgrounds - and

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec is the compiler for mkiv, right? I'm on linux

Re: [NTG-context] Grid typesetting and inline math

2011-04-26 Thread Christoph Redecker
After some trial and error, I'm using \setuplayout[grid=yes] \startlinecorrection Paragraph with inline math \gform{math stuff} % without the optional [-] and some more text that belongs to this parapgraph \stoplinecorrection and \blank[-1*line] where necessary. It is not really a

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another compiler? I tried with context and texexec (I thought texexec

[NTG-context] tikz / pgf 2.10: errors

2011-04-26 Thread Christoph Redecker
When compiling this code \usemodule[pgf] \starttext test \stoptext I get an error: --snip-- (/apps/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def (/apps/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def) ! Undefined control sequence.

Re: [NTG-context] tikz / pgf 2.10: errors

2011-04-26 Thread Hans Hagen
On 26-4-2011 1:45, Christoph Redecker wrote: When compiling this code \usemodule[pgf] \starttext test \stoptext I get an error: --snip-- (/apps/texlive/2010/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def best try the minimals as that's the reference Hans

Re: [NTG-context] Layers again

2011-04-26 Thread Wolfgang Schuster
Am 26.04.2011 um 12:33 schrieb Ian Lawrence: I have a layer that I'd like to appear on some pages but not others, and for which I'd like to switch the content by page. (I need the layer to precisely and reliably locate some graphics. However, as I see it, you can only set the visibility of

[NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
Is there a way to create finite state machines with ConTeXt? -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Finite state machine

2011-04-26 Thread luigi scarso
On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof cldwester...@gmail.com wrote: Is there a way to create finite state machines with ConTeXt? yes -- luigi ___ If your question is of interest to others as well,

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof cldwester...@gmail.com wrote: Is there a way to create finite state machines with ConTeXt? yes How? -- Cecil Westerhof

Re: [NTG-context] Finite state machine

2011-04-26 Thread luigi scarso
On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof cldwester...@gmail.com wrote: Is there a way to create finite state machines with ConTeXt? yes How? I don't know

Re: [NTG-context] tikz / pgf 2.10: errors

2011-04-26 Thread Christoph Redecker
I tried to install and run the minimals on a win xp machine (a few days ago), but failed. I'll try it again and report the results. Christoph Am 26.04.2011 14:22, schrieb Hans Hagen: On 26-4-2011 1:45, Christoph Redecker wrote: When compiling this code \usemodule[pgf] \starttext test

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof cldwester...@gmail.com wrote: Is there a way to create finite state

Re: [NTG-context] Finite state machine

2011-04-26 Thread Vedran Miletić
2011/4/26 Cecil Westerhof cldwester...@gmail.com 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof cldwester...@gmail.com wrote: 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof

Re: [NTG-context] Finite state machine

2011-04-26 Thread Philipp Gesang
On 2011-04-26 15:38:43, Cecil Westerhof wrote: 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof cldwester...@gmail.com wrote: Is there a way to create finite state machines with ConTeXt? yes How? Do you want to *implement* a FSM or

Re: [NTG-context] Finite state machine

2011-04-26 Thread luigi scarso
On Sun, Apr 24, 2011 at 8:10 PM, Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: Whoa, you have seen these emails two days ago... On 2011-04-26 15:38:43, Cecil Westerhof wrote: 2011/4/26 luigi scarso luigi.sca...@gmail.com: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/26 Vedran Miletić riva...@gmail.com: There is not a module like for flow charts? (Makes sense, because I could not find something.) There is automata.mp at http://tug.ctan.org/tex-archive/graphics/metapost/contrib/macros/automata The first redirects to ch.mp and the second seems only

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/24 Philipp Gesang pges...@ix.urz.uni-heidelberg.de: Is there a way to create finite state machines with ConTeXt? yes How? Do you want to *implement* a FSM or *draw* a diagram of it?  * implementing - Lua - http://lua-users.org/wiki/FiniteStateMachine  * drawing - either    - use

Re: [NTG-context] Finite state machine

2011-04-26 Thread Philipp Gesang
On 2011-04-26 16:00:55, luigi scarso wrote: On Sun, Apr 24, 2011 at 8:10 PM, Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote: Whoa, you have seen these emails two days ago... No divination involved, just that the last sys update broke my ntp client … On 2011-04-26 15:38:43, Cecil

Re: [NTG-context] Finite state machine

2011-04-26 Thread Hans Hagen
On 26-4-2011 4:06, Cecil Westerhof wrote: I just want to include a finite state machine in a pdf document. tex's hyphenation routine will do I guess Hans - Hans Hagen | PRAGMA ADE

[NTG-context] strange error on ntgmaps style

2011-04-26 Thread Hans van der Meer
I get a strange error when using the dutch NTG-MAPS style I acquired from Taco, quite some time ago taking into account the fast pace of development in ConTeXt ;-) The error location in the log seems to be not directly related to the culprit, because deleting some lines shifts the given

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Andreas Harder
Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code... Should I actually then use another

Re: [NTG-context] Finite state machine

2011-04-26 Thread mathew
On Tue, Apr 26, 2011 at 09:06, Cecil Westerhof cldwester...@gmail.com wrote: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If you're happy with GraphViz's standard output, it'll write

Re: [NTG-context] strange error on ntgmaps style

2011-04-26 Thread Hans Hagen
On 26-4-2011 4:23, Hans van der Meer wrote: I get a strange error when using the dutch NTG-MAPS style I acquired from Taco, quite some time ago taking into account the fast pace of development in ConTeXt ;-) The error location in the log seems to be not directly related to the culprit,

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
Le 26/04/2011 16:33, Andreas Harder a écrit : Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: Le 26/04/2011 12:36, Hans Hagen a écrit : On 26-4-2011 12:02, Matthieu Stigler wrote: Dear Hans Thanks for your quick answer! I was however not able to produce the graph with the textext code...

Re: [NTG-context] Finite state machine

2011-04-26 Thread Cecil Westerhof
2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If you're happy with GraphViz's standard output, it'll write PDF directly. SVG can be included in a

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 5:17, Matthieu Stigler wrote: MTXrun | current version: 2009.11.26 16:2 that's rather old for a luatex/context combination on the wiki you can find how to install minimals (takes a few minutes only, no compilation needed) Hans

[NTG-context] Updating contex minimal for Ubuntu 10.10

2011-04-26 Thread Matthieu Stigler
Hi I just tried to get the most recent version of context minima, following instructions at: http://wiki.contextgarden.net/Ubuntu_installation#Maverick_.2810.10.29_with_ConTeXt_Minimals I get however following message once every thing has run: context --version mtxrun | forcing

Re: [NTG-context] Updating contex minimal for Ubuntu 10.10

2011-04-26 Thread Hans Hagen
On 26-4-2011 5:54, Matthieu Stigler wrote: Any idea what I did wrong? Did I miss a particular step? (I did also luatools --generate and context --make) I think that method installs minimals in an existing (older distribution). At some point we switched to a lua configuration file and maybe

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
Thanks, as every. More information - I hope without overload. I was trying to make a test suite... And failed depressingly... I have a series of swf files that I'd like to position in exactly the same location on a page. Not all pages will have an swf on them. The swf will be specific to that

Re: [NTG-context] Layers again

2011-04-26 Thread Hans Hagen
On 26-4-2011 6:26, Ian Lawrence wrote: But when I get to a new page I'd like to be able to change that plug, or even have the layer blank that happens automatically unless the state of the layer is set to 'repeat' so normally, once a layer is placed its content is forgotten \page[yes]

Re: [NTG-context] Finite state machine

2011-04-26 Thread Vedran Miletić
2011/4/26 Cecil Westerhof cldwester...@gmail.com 2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If you're happy with GraphViz's standard

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
OK, now maybe I get it. This might help someone... It's the **contents** of the layer that get repeated if you set repeat=yes in \definelayer - as in http://wiki.contextgarden.net/Layers If you do a \setlayer then this simply adds to the existing stack of contents displayed on the layer. You

Re: [NTG-context] Finite state machine

2011-04-26 Thread Aditya Mahajan
On Tue, 26 Apr 2011, Vedran Miletić wrote: 2011/4/26 Cecil Westerhof cldwester...@gmail.com 2011/4/26 mathew m...@pobox.com: I just want to include a finite state machine in a pdf document. I usually go GraphViz - SVG, touch up the SVG with Inkscape, then save from Inkscape to PDF. If

Re: [NTG-context] Finite state machine

2011-04-26 Thread Hans Hagen
On 26-4-2011 7:45, Aditya Mahajan wrote: http://randomdeterminism.wordpress.com/2010/10/09/using-eps-and-svg-images/ but (That is indeed m_k_v_i and not m_k_i_v due to a typo in grph-inc.lua) was fixed, wasn't it? -

Re: [NTG-context] Layers again

2011-04-26 Thread Hans Hagen
On 26-4-2011 7:41, Ian Lawrence wrote: The \setupbackgrounds[page][state=repeat,background={XXX}] is the command that puts the logical layer on each page. indeed, and that repeat is independent of layers Also, you can have multiple layers, so

Re: [NTG-context] Finite state machine

2011-04-26 Thread Aditya Mahajan
On Tue, 26 Apr 2011, Hans Hagen wrote: On 26-4-2011 7:45, Aditya Mahajan wrote: http://randomdeterminism.wordpress.com/2010/10/09/using-eps-and-svg-images/ but (That is indeed m_k_v_i and not m_k_i_v due to a typo in grph-inc.lua) was fixed, wasn't it? Yes, but I have not updated the

Re: [NTG-context] Updating contex minimal for Ubuntu 10.10

2011-04-26 Thread Aditya Mahajan
On Tue, 26 Apr 2011, Matthieu Stigler wrote: Hi I just tried to get the most recent version of context minima, following instructions at: http://wiki.contextgarden.net/Ubuntu_installation#Maverick_.2810.10.29_with_ConTeXt_Minimals I get however following message once every thing has run:

Re: [NTG-context] tikz / pgf 2.10: errors

2011-04-26 Thread Christoph Redecker
I downloaded the minimals installer installed to the default location c:\contextminimal options: + get latest setup files, + get latest distribution files (stable) + make format files - don't set environment variables (have MikTeX 2.9 on this machine as well) Errors during installation: Update

Re: [NTG-context] tikz / pgf 2.10: errors

2011-04-26 Thread Aditya Mahajan
On Tue, 26 Apr 2011, Christoph Redecker wrote: I downloaded the minimals installer installed to the default location c:\contextminimal options: + get latest setup files, + get latest distribution files (stable) Can you try with the latest beta rather than stable, that is just run

Re: [NTG-context] Finite state machine

2011-04-26 Thread Hans Hagen
On 26-4-2011 8:33, Aditya Mahajan wrote: On Tue, 26 Apr 2011, Hans Hagen wrote: On 26-4-2011 7:45, Aditya Mahajan wrote: http://randomdeterminism.wordpress.com/2010/10/09/using-eps-and-svg-images/ but (That is indeed m_k_v_i and not m_k_i_v due to a typo in grph-inc.lua) was fixed,

Re: [NTG-context] Updating contex minimal for Ubuntu 10.10

2011-04-26 Thread mathew
On Tue, Apr 26, 2011 at 10:54, Matthieu Stigler matthieu.stig...@gmail.com wrote: I just tried to get the most recent version of context minima, following instructions at: http://wiki.contextgarden.net/Ubuntu_installation#Maverick_.2810.10.29_with_ConTeXt_Minimals I get however following

[NTG-context] line numbers in margin from xml in context mkiv

2011-04-26 Thread Jon Crump
All, After being away from my project for a while I returned to find that something that worked now no longer does. I updated the minimals on my Mac and context is running as I would expect: jjc% context --version mtx-context | main context file: