[NTG-context] line numbers in margin from xml in context mkiv
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: /Users/jjc/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.04.24 15:15 But now, while running my environment.tex file against my target TEI/xml file context complains: ! Undefined control sequence. l.77 \defineinmargin [lineNumbers] [normal] ? My own fragile understanding of what I'm doing may well be at fault, but perhaps something relevant has changed with the minimals? I had an environment file that I'd arrived at by much trial and error that renders page/line numbers encoded in the xml/TEI source in the margins of my pdf output: \startxmlsetups xml:pb \def\svopage{\xmlatt{#1}{n}.} \xmlflush{#1} \stopxmlsetups \startluacode function filter(lb) if math.mod(lb,5) == 0 then context.svopage() context(lb) end end \stopluacode \define[1]\MyNumber% {\ctxlua{filter(#1)}\endgraf} \startxmlsetups xml:lb \xmldoifelse{#1}{ancestor::head[@type='diarytitle']} {\\} {\lineNumbers{\tfxx\MyNumber{\xmlatt{#1}{n \xmlflush{#1} \stopxmlsetups \defineinmargin [lineNumbers] [normal] Any suggestions would be gratefully received. Jon ___ 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] Updating contex minimal for Ubuntu 10.10
On Tue, Apr 26, 2011 at 10:54, Matthieu Stigler 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 message once every thing has run: I get the same unknown configuration file error messages during the first-setup.sh process: [...] mtxrun | forcing cache reload resolvers | resolving | unknown configuration file '/usr/local/texmf-local/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmfcnf.lua' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated mtx-update | state, loaded mtx-update | mtx-update | update, start [...] However, ConTeXt works fine afterwards. (I'm the person who added those Ubuntu 10.10 instructions to the wiki.) Did you remember to either start a clean shell or source ~/.bashrc after changing .bashrc? Do echo $TEXROOT echo $PATH echo $OSFONTDIR to check what the environment variables are set to when you're trying to run ConTeXt. mathew -- http://www.pobox.com/~meta/> ___ 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] Finite state machine
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 - ___ 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] tikz / pgf 2.10: errors
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 first-setup.bat + make format files - don't set environment variables (have MikTeX 2.9 on this machine as well) Errors during installation: Update failed Error Code: 1 Make failed Error Code: 1 Now the installation directory does not contain any binary named context, there's also no setuptex.bat. I need that perform the next step according to the installation and usage instructions in the wiki. That is really strange. The setup script should not delete the installation directory. Can you provide details of what commands you ran and the detailed output. Which version of Windows are you using? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] tikz / pgf 2.10: errors
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 failed Error Code: 1 Make failed Error Code: 1 Now the installation directory does not contain any binary named context, there's also no setuptex.bat. I need that perform the next step according to the installation and usage instructions in the wiki. I then deleted the folder c:\contextminimal from my disk. Next try: No gui installer. unzipped the files to c:\Programme\context (no spaces in there) ran first-setup.bat from command line after a while I got an error: mktexlsr.exe - Unable To Locate Component - This application has failed to start because kpathsea600.dll was not found. Re-Installing the application may fix this problem. (same error, again) (same error, again) (same error, again) (same error, again) (same error, again) (same error, again) (same error, again) In command window: "Please type another input file name: " pressed CTRL-C and terminated batch job. What's wrong? Regards Christoph On 26.04.2011 14:22, Hans Hagen wrote: 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 - 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] Updating contex minimal for Ubuntu 10.10
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: context --version mtxrun | forcing cache reload resolvers | resolving | unknown configuration file '/usr/local/texmf-local/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmfcnf.lua' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' Any idea what I did wrong? Did I miss a particular step? (I did also luatools --generate and context --make) Most likely because you do not have write permissions in $TEXMFCACHE. Try adding export TEXMFCACHE=$HOME/texmf-cache and then rerunning mtxrun --generate 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finite state machine
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 ___ 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] Layers again
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 \setupbackgrounds[page][state=repeat,background={XXX,YYY}] as well as put stuff in front \setupbackgrounds[page][state=repeat,background={XXX,foreground,YYY}] in this case YYY goes in front. And then there are viewerlayers (acrobat) that you can turn on and off with \goto{On}[VideLayer{mylayer}] but that's a different topic. 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 ___
Re: [NTG-context] Finite state machine
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 - ___ 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] Finite state machine
On Tue, 26 Apr 2011, Vedran Miletić wrote: 2011/4/26 Cecil Westerhof 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. 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___ 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] Layers again
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 get more and more stuff until you do a \resetlayer, assuming you set repeat=yes in the \definelayer. Thus(?) \definelayer is all about the contents of the layer (? Apart from setting the dimensions and so on... I think that's what deflected me into thinking that this command was about the canvas, and the \setlayer about the contents.) The \setupbackgrounds[page][state=repeat,background={XXX}] is the command that puts the logical layer on each page. If this seems about right then I'll have a go at adding a sentence or two to the wiki...maybe on-one else thinks of it in terms of the existence and then the population of a layer...? On 26 April 2011 17:44, Hans Hagen wrote: > 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] >> >> \setlayer [SPTinteractivemedium] % name of the layer >> [hoffset=0px, voffset=0px,] % placement (from upper left >> corner of the layer) >> { \externalfigure [dummy][width=100px]} % the actual >> contents of the layer >> >> And; >> >> \page[yes] >> \setlayer [SPTinteractivemedium] % name of the layer >> [hoffset=0px, voffset=0px,] % placement (from upper left >> corner of the layer) >> { \externalfigure ??? } % HOW TO SET THE >> \externalfigure to >> NOTHING, or hide the layer? > > \resetlayer [SPTinteractivemedium] > >> I might try changing the backgrounds on a page by page basis, but this >> seems inelegant, as the \setups ought to be before the \starttext..? > > > - > 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] Finite state machine
2011/4/26 Cecil Westerhof > 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. > IIRC it's converted to PDF on the fly (but Inkscape must be installed). Vedran Miletić ___ 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] Layers again
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] \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure [dummy][width=100px]} % the actual contents of the layer And; \page[yes] \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure ??? } % HOW TO SET THE \externalfigure to NOTHING, or hide the layer? \resetlayer [SPTinteractivemedium] I might try changing the backgrounds on a page by page basis, but this seems inelegant, as the \setups ought to be before the \starttext..? - 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] Layers again
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 page. Now I think need a layer to be able to position exactly - that is so many pixels in and down from the top ('Paper' size is 1024 by 768) - I don't know how to do this with overlays, and it seems to me that the documentation suggests that layers are made for this job: So I write: \definepapersize[Screen][width=1024px,height=768px] \setuppapersize[Screen][Screen] \definelayer[SPTinteractivemedium] % name of the layer [x=359px, y=140px, % from upper left corner of paper width=642px, height=492px, repeat=yes] % let the layer be large enough for the med swf And then \setupbackgrounds[page][state=page,background={SPTinteractivemedium}] Then i the text I write \starttext Hello world, etc \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) {\externalfigure [plug][width=200px]} % the actual contents of the layer But when I get to a new page I'd like to be able to change that plug, or even have the layer blank So \page[yes] \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure [dummy][width=100px]} % the actual contents of the layer And; \page[yes] \setlayer [SPTinteractivemedium] % name of the layer [hoffset=0px, voffset=0px,] % placement (from upper left corner of the layer) { \externalfigure ??? } % HOW TO SET THE \externalfigure to NOTHING, or hide the layer? It seems this ought to be easy, but I tried guessing a 'state=page' parameter in \setlayer... And trawling wiki, manuals. No joy. I might try changing the backgrounds on a page by page basis, but this seems inelegant, as the \setups ought to be before the \starttext..? On 26 April 2011 13:35, Wolfgang Schuster wrote: > > 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 a layer in >> \definelayer, \setupbackgrounds - and these ought to preceed >> \starttext >> >> Any pointers / elegant suggestions / neat solutions? > > > A better solution requires more information from you! > > \definelayer[test] > > \startsetups[test] > \doifinset{\pagenumber}{1,3,7,10}{\setlayer[test][x=3cm,y=7cm]{\ssd Test: > \test}} > \stopsetups > > \setupbackgrounds[page][background=test,setups=test] > > \starttext > \dorecurse{12} > {\def\test{\convertnumber{A}{\recurselevel}}% > \dontleavehmode\page} > \stoptext > > 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] Updating contex minimal for Ubuntu 10.10
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 that's not taken care of. So, best try to see what the 'native' minimals do. Just install them in a different location. http://wiki.contextgarden.net/ConTeXt_Minimals At least you then have the reference source/binary/setup to start with. 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 ___
[NTG-context] Updating contex minimal for Ubuntu 10.10
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 cache reload resolvers | resolving | unknown configuration file '/usr/local/texmf-local/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf-local/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmf/web2c/texmfcnf.lua' resolvers | resolving | unknown configuration file '/usr/local/texmfcnf.lua' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' mtxrun | unknown script 'context.lua' or 'mtx-context.lua' Any idea what I did wrong? Did I miss a particular step? (I did also luatools --generate and context --make) Thanks!! Matthieu ___ 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] Context and metapost: using \frac
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 - 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] Finite state machine
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 ___ 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] Context and metapost: using \frac
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... 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). no, use the 'context' command as texexec is for mkii ok, so I was using the right compiler I get a mystake while trying to compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) this does not work neither I still get error message with this code: \usemodule[newmat] \setupbodyfont[palatino] \starttext \startMPpage label.top(textext("$ \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, 1)); \stopMPpage \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=1ex] u := cm ; label.top(textext("$ \frac{\sigma_t}{a}$") scaled 2, origin); label.top(textext("$ \frac{\sigma_t}{a}$"), (u,u)); label.top(textext("$\dfrac{\sigma_t}{a}$") scaled .5, (u,0)); \stopMPpage Andreas Thanks for answer! Is this code you wrote supposed to be the whole doc to compile? And compiled with context? If yes, I got an error again... I have version context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.11.26 16:2 Is it likel;y then that the problem is solved in more recent versions? I would try to update then... I am on Ubuntu 10.10 64b, is there a simple way to update from other repos, or should I compile? Thanks for your help!!! Matthieu Greeting Andreas ___ 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] strange error on ntgmaps style
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, because deleting some lines shifts the given linenumber that number of lines down. If I comment out the maps style and its macros: \usemodule[map-se]\enablemode[nosubsub] \startArticle[.] \startAbstract ... \stopAbstract \startKeywords ... \stopKeywords \stopArticle then typesetting does not give the error. The error message is: 122 \placefigure[][fig:cdtypes]{Cover types for CD}{% ...ttwo ] \par \usemathcollection no math collections in mkiv - 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] Finite state machine
On Tue, Apr 26, 2011 at 09:06, Cecil Westerhof 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 PDF directly. mathew -- http://www.pobox.com/~meta/> ___ 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] Context and metapost: using \frac
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 >>> compiler? I tried with context and texexec (I thought texexec is the >>> compiler for mkiv, right? I'm on linux ubuntu). >> >> no, use the 'context' command as texexec is for mkii >> > ok, so I was using the right compiler I get a mystake while trying to > compile a file with the code you sent... you didn't? Would you be so nice and > send complete file, so I can check what is wrong? > > >>> I saw also that, as you mention, context has a \frac: >>> http://wiki.contextgarden.net/Math_with_newmat >> >> indeed, \frac is already there for a long time (ams compatible command) > >> btw, in mkiv there is no m-newmath >> >>> I tried then to simply add \usemodule[newmat] and compile with context, >>> but did not work... Code below, error message below below... >>> ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. >>> l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ >>> } >>> ...ore.mp ; fi ; ;;;]===], false)} >> >> make sure that a font is loaded that has math before \starttext is seen >> >> (try with \setupbodyfont[palatino] at the top of your file) >> > this does not work neither I still get error message with this code: > > \usemodule[newmat] > > \setupbodyfont[palatino] > > \starttext > > \startMPpage > > label.top(textext("$ \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); > > %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); > > %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, > 1)); > > \stopMPpage > > \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=1ex] u := cm ; label.top(textext("$ \frac{\sigma_t}{a}$") scaled 2, origin); label.top(textext("$ \frac{\sigma_t}{a}$"), (u,u)); label.top(textext("$\dfrac{\sigma_t}{a}$") scaled .5, (u,0)); \stopMPpage Greeting Andreas ___ 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] strange error on ntgmaps style
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 linenumber that number of lines down. If I comment out the maps style and its macros: \usemodule[map-se]\enablemode[nosubsub] \startArticle[.] \startAbstract ... \stopAbstract \startKeywords ... \stopKeywords \stopArticle then typesetting does not give the error. The error message is: 122 \placefigure[][fig:cdtypes]{Cover types for CD}{% ...ttwo ] \par \usemathcollection [eul] \par \stoptypescript \dodousetypescript ...e \the \documenttypescripts \firsttypescriptpassfalse ... \dotripleemptythreespaced #1#2#3->#1[{#2}][{#3}][] \par ConTeXt ver: 2011.03.28 01:03 MKIV fmt: 2011.3.28 int: english/english I must mention the fact that formerly this did work (the article even being published in the NTG-MAPS). Is there a new version of the NTG-MAPS module to try? Hans van der Meer ___ 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] Finite state machine
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 - ___ 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] Finite state machine
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 > ___ pgpamrpZgSMqV.pgp Description: PGP signature ___ 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] Finite state machine
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 ___ 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] Finite state machine
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 ___ 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] Finite state machine
On Sun, Apr 24, 2011 at 8:10 PM, Philipp Gesang 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 : >> > 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 ___
Re: [NTG-context] Finite state machine
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 > ___ pgpH9gXZiU8hm.pgp Description: PGP signature ___ 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] Finite state machine
2011/4/26 Cecil Westerhof > 2011/4/26 luigi scarso : > > On Tue, Apr 26, 2011 at 3:38 PM, Cecil Westerhof > wrote: > >> 2011/4/26 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 > >> > >> How? > > I don't know the details, but it should be simple with Lua using the > > 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ć ___ 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] Finite state machine
2011/4/26 luigi scarso : > On Tue, Apr 26, 2011 at 3:38 PM, 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? > I don't know the details, but it should be simple with Lua using the > 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 ___ 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] tikz / pgf 2.10: errors
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 \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 - 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] Finite state machine
On Tue, Apr 26, 2011 at 3:38 PM, 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? I don't know the details, but it should be simple with Lua using the 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. -- 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 ___
Re: [NTG-context] Finite state machine
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? -- 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 ___
Re: [NTG-context] Finite state machine
On Tue, Apr 26, 2011 at 3:14 PM, Cecil Westerhof wrote: > Is there a way to create finite state machines with ConTeXt? yes -- 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 ___
[NTG-context] Finite state machine
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 / 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] Layers again
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 a layer in > \definelayer, \setupbackgrounds - and these ought to preceed > \starttext > > Any pointers / elegant suggestions / neat solutions? A better solution requires more information from you! \definelayer[test] \startsetups[test] \doifinset{\pagenumber}{1,3,7,10}{\setlayer[test][x=3cm,y=7cm]{\ssd Test: \test}} \stopsetups \setupbackgrounds[page][background=test,setups=test] \starttext \dorecurse{12} {\def\test{\convertnumber{A}{\recurselevel}}% \dontleavehmode\page} \stoptext 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 ___
Re: [NTG-context] tikz / pgf 2.10: errors
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 - 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 ___
[NTG-context] tikz / pgf 2.10: errors
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. \pgfutil@addpdfresource@colorspaces ...olorspaces {#1} l.396 ...rspaces{ /pgfprgb [/Pattern /DeviceRGB] } The latex pendant (even with a tikz picture in it) compiles fine. I have another computer with an older version of pgf, which works well (with context and with latex). After an update to 2.10, context stopped working, latex still does. Is anyone else encountering this problem? Regards, Christoph ___ 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] Context and metapost: using \frac
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 is the compiler for mkiv, right? I'm on linux ubuntu). no, use the 'context' command as texexec is for mkii ok, so I was using the right compiler I get a mystake while trying to compile a file with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) this does not work neither I still get error message with this code: \usemodule[newmat] \setupbodyfont[palatino] \starttext \startMPpage label.top(textext("$ \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, 1)); \stopMPpage \stoptext Thanks a lot for your help Matthieu 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 ___
Re: [NTG-context] Grid typesetting and inline math
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 convenient solution, but it works and I've got the impression that I can do what I want. Again: Does anyone have a better solution or advice regarding grid usage? Regards, Christoph Am 19.04.2011 11:59, schrieb Christoph Redecker: Hello, I'm struggling with the grid. I've stepped from LaTeX to luaLaTeX for a simpler font selection, and from luaLaTeX to ConTeXt for getting a usable grid (because I was told that it supports typesetting on a grid). Now that I got font selection working as desired in ConTeXt, the grid is driving me crazy. I'm trying to use the grid as described in details.pdf, and I want halfline spacing around formulas in text, because a full line is definitely too much. This is what I'm compiling: \setupbodyfont[10pt,serif] % should be lm? \setuplayout[grid=yes] \setuptextformulas[step=halfline] \starttext \showgrid Testing inline math: \gform{x_2 = \frac{a}{b}}. The following line should be seperated from this one by half a line, but it isn't. Testing inline math: \gform[-]{x_2 = \frac{a}{b}}. The following line should be seperated from this one by half a line, but it isn't. \stoptext Both paragraphs look identical, the second line is too far away from the first one. What's wrong with my code? Also, how can I manually depart from the grid, e.g. for block quotes? Regards, Christoph ___ 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] Context and metapost: using \frac
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 ubuntu). no, use the 'context' command as texexec is for mkii I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } ...ore.mp ; fi ; ;;;]===], false)} make sure that a font is loaded that has math before \starttext is seen (try with \setupbodyfont[palatino] at the top of your file) 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 ___
[NTG-context] Layers again
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 these ought to preceed \starttext Any pointers / elegant suggestions / neat solutions? Thanks Ian ___ 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] Ideas for restructuring the ConTeXt garden?
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 are necessary lubricants for this process. I think you probably cannot have too many (documented) examples. Things which are very obvious to some , are not so obvious to others. And if too much has to be done by trial and error then everything is very slow... Very very slow. For me, there is too much that is cryptic in the Wiki. Often I read the entry and am no wiser. Each word is well formed, but there is no mental model emerging. Maybe a wiki is good place for archiving, curating and exchanging tips, but just not so good for learning from scratch. The 'Starting with Context' pdf I find very good, but for later work all kinds of things are 'bad style', 'deprecated' etc. So maybe a way in to thinking about what to do is to consider how the newer user might get a handle on what Context is really for, and why one might prefer it to manually typesetting documents... Kind regards Ian 2011/3/16 Vedran Miletić : > 2011/3/14 Carlos Breton Besnier >> >> >> 2011/3/12 Florian Wobbe >>> >>> Maybe we should start a discussion in a new thread to find out: >>> >>> 5) how to better promote context to new/latex users? >>> >> >> I think is needed a installation guide for non-technical. A guide not only >> for programmers but a simple guide for dummies. Like me, I am no-developer, >> I write law books. Latex installation and update is very simple for >> beginners. On Windows with MiKTeX, everyone can write very soon his first >> document. Not so with ConTeXt, except old stand-alone installation. It's >> cause of frustration and after several attempts they give up. Then they >> return to LaTeX (like me too). > > Well, with TeX Live 2010 it's very simple to use MkII with both pdfTeX and > XeTeX. Hopefully, some future version of TeX Live (2011?) will offer the > same for MkIV. Script is already there, it's just not integrated with > TeXworks in TeX Live yet. > > Regards, > > Vedran Miletić > > ___ > 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] Creating a PDF named destination
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 (annotations) .. where do you expect to see destinations in pro? You can view a list of all named destinations in a file in Pro (View; Navigation tabs; Destinations) and these are externally accessible via links of the form filename.pdf#nameddest=. That's what I'm trying to achieve. It looks like it might be achievable with a third-party module called Navigator documented here: http://www.tex.ac.uk/ctan/macros/generic/navigator/navigator-doc.pdf but I haven't tried that out yet. when you add them in acrobat pro destination objects get an extra entry (that probably triggers showing in the list) anyhow, there is currently no way to force such keys into the object 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 ___
Re: [NTG-context] Context and metapost: using \frac
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 mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... Thanks a lot Matthieu Code: \usemodule[newmat] \starttext \setupMPpage[offset=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (0, 10)); \stopMPpage \stoptext Error: ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ } ...ore.mp ; fi ; ;;;]===], false)} \processMPgraphic ...s ;\!!es , \MPaskedfigure )}} \egroup \global \MPinstanc... \dostartMPpage ...??mg ][#1]\processMPgraphic {#3} \dostopfittingpage l.26 \stopMPpage Le 26/04/2011 10:37, Hans Hagen a écrit : 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$") scaled 1.00, (0, 10)); label.top(textext("$\displaystyle \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac is available in context 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 ___
Re: [NTG-context] Creating a PDF named destination
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 destinations in pro? You can view a list of all named destinations in a file in Pro (View; Navigation tabs; Destinations) and these are externally accessible via links of the form filename.pdf#nameddest=. That's what I'm trying to achieve. It looks like it might be achievable with a third-party module called Navigator documented here: http://www.tex.ac.uk/ctan/macros/generic/navigator/navigator-doc.pdf but I haven't tried that out yet. Thanks, Duncan ___ 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] Creating a PDF named destination
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? - 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] Creating a PDF named destination
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 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 ___ 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] Creating a PDF named destination
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 - 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] Context and metapost: using \frac
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$") scaled 1.00, (0, 10)); label.top(textext("$\displaystyle \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac is available in context 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 ___
[NTG-context] Context and metapost: using \frac
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 one post where it was mentione done should add //\setupMPpage[offset=1pt] //(http://www.tug.org/pipermail/pdftex/2001-March/000429.html). I tried, but did not work however... Any idea how I should do? Find below minimal example, that does not work on my computer when compiling with context... Thanks!! Matthieu \starttext \setupMPpage[offset=1pt] \switchtobodyfont[10pt] % Beginning MetaPost graphic \startMPpage label.top(btex 1.4 etex scaled 1.00, (10, 10)); label.top(btex $\sigma_t$ etex scaled 1.00, (0, 10)); label.top(btex $\displaystyle \frac{\sigma_t}{a}$ etex scaled 1.00, (1, 1)); \stopMPpage \stoptext ___ 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 ___