Is there a way to create finite state machines with ConTeXt? -- Cecil Westerhof
On 2011-04-26 <15:38:43>, Cecil Westerhof wrote:
2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof
wrote: 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 MP or -> filter through GraphViz http://www.graphviz.org/Gallery/directed/fsm.html (You might want to try http://luagraph.luaforge.net/ but beware it occasionally segfaults with luatex.) Hth, Philipp
-- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Sun, Apr 24, 2011 at 8:10 PM, Philipp Gesang
On 2011-04-26 <15:38:43>, Cecil Westerhof wrote:
2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof
wrote: 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? For both the questions the answer is always yes --- but of course it was a way to ask for more details.
-- luigi
On 2011-04-26 <16:00:55>, luigi scarso wrote:
On Sun, Apr 24, 2011 at 8:10 PM, Philipp Gesang
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 Westerhof wrote:
2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof
wrote: 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? For both the questions the answer is always yes --- but of course it was a way to ask for more details.
-- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________
2011/4/24 Philipp Gesang
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 MP or -> filter through GraphViz http://www.graphviz.org/Gallery/directed/fsm.html (You might want to try http://luagraph.luaforge.net/ but beware it occasionally segfaults with luatex.)
I just want to include a finite state machine in a pdf document. -- Cecil Westerhof
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 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 -----------------------------------------------------------------
On Tue, Apr 26, 2011 at 09:06, Cecil Westerhof
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. mathew -- URL:http://www.pobox.com/~meta/
2011/4/26 mathew :
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 ConTeXt document? Best would be then to create a SVG document and include it in my ConTeXt document. -- Cecil Westerhof
2011/4/26 Cecil Westerhof
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
2011/4/26 mathew : directly.
SVG can be included in a ConTeXt document? Best would be then to create a SVG document and include it in my ConTeXt document.
IIRC it's converted to PDF on the fly (but Inkscape must be installed). Vedran Miletić
On Tue, 26 Apr 2011, Vedran Miletić wrote:
2011/4/26 Cecil Westerhof
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
2011/4/26 mathew : directly.
SVG can be included in a ConTeXt document? Best would be then to create a SVG document and include it in my ConTeXt document.
IIRC it's converted to PDF on the fly (but Inkscape must be installed).
http://randomdeterminism.wordpress.com/2010/10/09/using-eps-and-svg-images/ Aditya
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? ----------------------------------------------------------------- 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 -----------------------------------------------------------------
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 blog post (its a blog, not a wiki :) Aditya
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, wasn't it?
Yes, but I have not updated the blog post (its a blog, not a wiki :)
so you should comment on your own blog -) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof
wrote: Is there a way to create finite state machines with ConTeXt? yes
How? I don't know the details, but it should be simple with Lua using the
On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof
2011/4/26 luigi scarso
2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof
wrote: Is there a way to create finite state machines with ConTeXt? yes
How? I don't know the details, but it should be simple with Lua using the
On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof
wrote: tables, cfr. http://en.wikipedia.org/wiki/Finite-state_machine State transition table In TeX should be almost the same, and with MetaPost you can draw states and transitions.
There is not a module like for flow charts? (Makes sense, because I could not find something.) -- Cecil Westerhof
2011/4/26 Cecil Westerhof
2011/4/26 luigi scarso
: 2011/4/26 luigi scarso
: On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof < cldwesterhof@gmail.com> wrote:
Is there a way to create finite state machines with ConTeXt? yes
How? I don't know the details, but it should be simple with Lua using the
On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof
wrote: tables, cfr. http://en.wikipedia.org/wiki/Finite-state_machine State transition table In TeX should be almost the same, and with MetaPost you can draw states and transitions.
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 I'm not sure it's the best module for that, though. Regards, Vedran Miletić
2011/4/26 Vedran Miletić
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 to work woth LaTeX. But I'll look into it. -- Cecil Westerhof
participants (7)
-
Aditya Mahajan
-
Cecil Westerhof
-
Hans Hagen
-
luigi scarso
-
mathew
-
Philipp Gesang
-
Vedran Miletić