Re: [NTG-context] etexshow and generation of cont-en.xlm (cont-XX.xml)?
That is a wonderful idea and one that would be very, very helpful, and much appreciated. Best Jonathan Barchi wrote: > Hi all, > > I'm using the emacs package etexshow to provide a quick ConTeXt > command reference in EMACS. This utility parses the interface file > cont-en.xml (for english, in my case) and uses the contents to provide > a basic dictionary of available commands. > > In the documentation for etexshow, there is a reference to being able > to generate a complete interface description (the aforementioned xml > file) like so: > > ";; There is still an xml-file shipped with this code. Usually you would > ;; generate the xml-file with 'texexec'ing the file setupe.tex. Then you > ;; will get the cont-en.xml file that can (could) be used as an input for > ;; this etexshow. But for now, this won't work. It will work rsn." > > It is not clear whether that file (setupe.tex or setup.tex) is/was > supposed to be shipped with etexshow or was supposed to be a part of > context. I've searched and found a few references to this problem, but > never a definitive answer, so if anyone knows the answer to these > questions I would love to know!! > > 1. Is the referenced setup(e).tex a file that was previously shipped > with ConTeXt - presumably mkii since the author refers to texexec - or > would this be something the author would have included with etexshow > itself? > > 2. Is the interface file, e.g. cont-en.xml, auto-generated from all of > the defined macros in ConTeXt, or is that file hand-written as > metadata to accompany the source-code definitions? > > 3. Since self-documentation is a goal of the project, is it possible > to generate something akin to the interface file that presents a > snapshot of all commands known to context at a given time, for use in > things like etexshow or other tools? If so, is it possible to do this > with modules loaded to see what they additionally define? > > Thanks in advance for any help! I'm hoping to use any information I > get to update etexshow, if possible, and maybe update the ConTeXt > support in AUCTEX as well. I think it would be really cool if AUCTEX > could reach out at compile or run time and pull in macro definitions > from the installed environment, for example. > > Best, > 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 > ___ ___ 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] Including section number in reference broken
Am 17.03.2013 um 09:37 schrieb Steffen Wolfrum : > Hi, > > in October 2011 Marco asked how to get an output like this: > > I Foo > A Bar > subsection I.A > > > The example he posted (see below) came to this result: > > I Foo > A Bar > subsection A > > > Then Wolfgang added this line: > > \setupreferencestructureprefix[default][prefixsegments=2:*] > > > But running this advice with todays beta does not have any effect one Marcos > original example, and it does not lead to the desired ouput. > > > Is this broken now? This happens because the definition of \currentreferencedefault has changed and the settings from \setupreferencestructureprefix are ignored. When I change the definition from \def\currentreferencedefault {\ctxcommand{filterdefaultreference()}} to (this is the code from 2011 adapted to the current version) \def\currentreferencedefault {\ctxcommand{filterreference("\s!default",\ctxcommand{getcurrentprefixspec("\s!default")})}} I get the section number as prefix in the reference. 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] etexshow and generation of cont-en.xlm (cont-XX.xml)?
On 3/18/2013 11:35 PM, Jonathan Barchi wrote: Hi all, I'm using the emacs package etexshow to provide a quick ConTeXt command reference in EMACS. This utility parses the interface file cont-en.xml (for english, in my case) and uses the contents to provide a basic dictionary of available commands. In the documentation for etexshow, there is a reference to being able to generate a complete interface description (the aforementioned xml file) like so: ";; There is still an xml-file shipped with this code. Usually you would ;; generate the xml-file with 'texexec'ing the file setupe.tex. Then you ;; will get the cont-en.xml file that can (could) be used as an input for ;; this etexshow. But for now, this won't work. It will work rsn." It is not clear whether that file (setupe.tex or setup.tex) is/was supposed to be shipped with etexshow or was supposed to be a part of context. I've searched and found a few references to this problem, but never a definitive answer, so if anyone knows the answer to these questions I would love to know!! 1. Is the referenced setup(e).tex a file that was previously shipped with ConTeXt - presumably mkii since the author refers to texexec - or would this be something the author would have included with etexshow itself? 2. Is the interface file, e.g. cont-en.xml, auto-generated from all of the defined macros in ConTeXt, or is that file hand-written as metadata to accompany the source-code definitions? the xml file is the master file (but I admit that it's a bit behind) if you only need the commands then the mult-def.lua files are better, also because they contain low level commands and primitives (it's what I use to generate files for scite where we have a rather advanced lexer) 3. Since self-documentation is a goal of the project, is it possible to generate something akin to the interface file that presents a snapshot of all commands known to context at a given time, for use in things like etexshow or other tools? If so, is it possible to do this with modules loaded to see what they additionally define? we can add a --emacs to mtx-interfaces.lua if something other than xml is needed .. so, what does emacs need? Thanks in advance for any help! I'm hoping to use any information I get to update etexshow, if possible, and maybe update the ConTeXt support in AUCTEX as well. I think it would be really cool if AUCTEX could reach out at compile or run time and pull in macro definitions from the installed environment, for example. 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] bug in new beta
On 18.03.2013 22:03, Wolfgang Schuster wrote: > > Am 18.03.2013 um 21:58 schrieb Xenia : > >> On 17.03.2013 11:34, Hans Hagen wrote: >>> On 3/17/2013 5:24 AM, Jonathan Barchi wrote: >>> Hans (mostly), I've seen that font error too, but it never seemed to cause problems so I've been ignoring it after I realized that. What I did figure out is that it seems to throw that error the first time it loads a new font - that is, the first time that a new (known to mtxrun) font is actually used in a document and loaded into the cache. The error seems to be due to luatex (? or whatever program does this) trying to compile a .tma file from the cache into a .tmc file, but the .tma file doesn't exist. I think it then goes to the .otf file, loads it, and is OK. >>> >>> Indeed. I fixed it. It has to do with a test for a tmc file (when we run >>> luajittex I need to make sure that a tmb file is generated as these >>> engines have a different bytecode format). I got rid of the message in >>> the new beta. >> >> Weird, because I still get this error with > > 1. Delete the cache and let context regenerate it. > > 2. When this doesn’t help try it with a clean installation. Thanks, the second method worked. :-) ___ 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] etexshow and generation of cont-en.xlm (cont-XX.xml)?
Hi all, I'm using the emacs package etexshow to provide a quick ConTeXt command reference in EMACS. This utility parses the interface file cont-en.xml (for english, in my case) and uses the contents to provide a basic dictionary of available commands. In the documentation for etexshow, there is a reference to being able to generate a complete interface description (the aforementioned xml file) like so: ";; There is still an xml-file shipped with this code. Usually you would ;; generate the xml-file with 'texexec'ing the file setupe.tex. Then you ;; will get the cont-en.xml file that can (could) be used as an input for ;; this etexshow. But for now, this won't work. It will work rsn." It is not clear whether that file (setupe.tex or setup.tex) is/was supposed to be shipped with etexshow or was supposed to be a part of context. I've searched and found a few references to this problem, but never a definitive answer, so if anyone knows the answer to these questions I would love to know!! 1. Is the referenced setup(e).tex a file that was previously shipped with ConTeXt - presumably mkii since the author refers to texexec - or would this be something the author would have included with etexshow itself? 2. Is the interface file, e.g. cont-en.xml, auto-generated from all of the defined macros in ConTeXt, or is that file hand-written as metadata to accompany the source-code definitions? 3. Since self-documentation is a goal of the project, is it possible to generate something akin to the interface file that presents a snapshot of all commands known to context at a given time, for use in things like etexshow or other tools? If so, is it possible to do this with modules loaded to see what they additionally define? Thanks in advance for any help! I'm hoping to use any information I get to update etexshow, if possible, and maybe update the ConTeXt support in AUCTEX as well. I think it would be really cool if AUCTEX could reach out at compile or run time and pull in macro definitions from the installed environment, for example. Best, 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] Bug in \column
Am 18.03.2013 um 19:32 schrieb Xan : > Hi, > > I found a possibly bug (I attached the doc). With bigskip twocolumns work but > with \column it does not. That is, with the diff: > > 98c98 > < \bigskip > --- > > %\bigskip > 100c100 > < %\column > --- > > \column > > > it does not work: the last exercise is shown in the first column. The default value to fill the column (\vskip\textheight) does only work when you start the columns at the top of the page but not when you start them in the middle of page. When this fixed value is replaced with \pagegoal it does also work in the middle of the page. % \installcolumnbreakmethod \s!multicolumn \v!yes % {\vskip\textheight %\penalty-200 % we can mark and intercept this %\vskip-\textheight} \unprotect \installcolumnbreakmethod \s!multicolumn \v!yes {\vskip .5\pagegoal \penalty-200 % we can mark and intercept this \vskip-.5\pagegoal} \protect \starttext \startcolumns a \column b \stopcolumns \page \blank[force,12cm] \startcolumns a \column b \stopcolumns \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] bug in new beta
Am 18.03.2013 um 21:58 schrieb Xenia : > On 17.03.2013 11:34, Hans Hagen wrote: >> On 3/17/2013 5:24 AM, Jonathan Barchi wrote: >> >>> Hans (mostly), >>> >>> I've seen that font error too, but it never seemed to cause problems >>> so I've been ignoring it after I realized that. >>> >>> What I did figure out is that it seems to throw that error the first >>> time it loads a new font - that is, the first time that a new (known >>> to mtxrun) font is actually used in a document and loaded into the >>> cache. The error seems to be due to luatex (? or whatever program does >>> this) trying to compile a .tma file from the cache into a .tmc file, >>> but the .tma file doesn't exist. I think it then goes to the .otf >>> file, loads it, and is OK. >> >> Indeed. I fixed it. It has to do with a test for a tmc file (when we run >> luajittex I need to make sure that a tmb file is generated as these >> engines have a different bytecode format). I got rid of the message in >> the new beta. > > Weird, because I still get this error with 1. Delete the cache and let context regenerate it. 2. When this doesn’t help try it with a clean installation. 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] bug in new beta
On 17.03.2013 11:34, Hans Hagen wrote: > On 3/17/2013 5:24 AM, Jonathan Barchi wrote: > >> Hans (mostly), >> >> I've seen that font error too, but it never seemed to cause problems >> so I've been ignoring it after I realized that. >> >> What I did figure out is that it seems to throw that error the first >> time it loads a new font - that is, the first time that a new (known >> to mtxrun) font is actually used in a document and loaded into the >> cache. The error seems to be due to luatex (? or whatever program does >> this) trying to compile a .tma file from the cache into a .tmc file, >> but the .tma file doesn't exist. I think it then goes to the .otf >> file, loads it, and is OK. > > Indeed. I fixed it. It has to do with a test for a tmc file (when we run > luajittex I need to make sure that a tmb file is generated as these > engines have a different bytecode format). I got rid of the message in > the new beta. Weird, because I still get this error with $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /home/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2013.03.18 18:49 ___ 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] Bug in \column
Hi, I found a possibly bug (I attached the doc). With bigskip twocolumns work but with \column it does not. That is, with the diff: 98c98 < \bigskip --- > %\bigskip 100c100 < %\column --- > \column it does not work: the last exercise is shown in the first column. Can anyone explain me what happens? Thanks in advance, Xan. PS: Please CCme. \enableregime[utf] \setupbodyfont [cmr,11pt] \mainlanguage[ca] \setuppagenumbering [location={footer}] \setuppapersize [A4] \setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm] \setuphead[title][align={center},style={\sca}, after={\medskip}] \setuphead[subject][after={\hrule\medskip}] % AMSTHM \defineenumeration [exercici] [text={Exercici},headstyle=bold,between=\blank,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em] % Heads and footers \setupfootertexts[\pagenumber] \setupfooter[text][before=\hrule] \setupheader[text][after=\hrule] \setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}] % underline \setupunderbar[alternative=b] \starttext \title{Examen de Matemà tiques} \bigskip \startframedtext[width=broad, location=middle, before={}] \startalignment[middle] Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B \stopalignment \stopframedtext \subject{Part comuna} \startcolumns \startexercici Resoleu emprant el mètode de substitució: \placeformula \startformula \startmathalignment \NC x + 3y \NC = 9 \NR[+] \NC 2x - y \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \startexercici Resoleu pel mètode de reducció: \placeformula \startformula \startmathalignment \NC 3x + 7y \NC = -23 \NR[+] \NC 5x + 4y \NC = -23 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \subject{Opció A} \startexercici Resoleu pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+] \NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR \stopmathalignment \stopformula \stopexercici \subject{Opció B} \startcolumns \startexercici Resoleu aquest sistema pel mètode que vulgueu: \placeformula \startformula \startmathalignment \NC -2x - y \NC = -11 \NR[+] \NC 3x - y \NC = 9 \NR \stopmathalignment \stopformula \stopexercici \bigskip %\column \startexercici Resoleu el sistema següent pel mètode que considereu oportú: \placeformula \startformula \startmathalignment \NC 2x + \frac{5y}{2} \NC = 7 \NR[+] \NC -3x + y \NC = -1 \NR \stopmathalignment \stopformula \stopexercici \stopcolumns \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 ___
Re: [NTG-context] Latest beta (minimals) failure to download/install
On 3/18/2013 6:46 PM, Alan Bowen wrote: Hi! My efforts to download/install the latest minimals was stopped with this error message: ! LuaTeX error .../ConTeXt/tex/texmf-context/tex/context/base/font-otn.lua:260: attempt to index field 'steppers' (a nil value) stack traceback: .../ConTeXt/tex/texmf-context/tex/context/base/font-otn.lua:260: in function 'code' .../ConTeXt/tex/texmf-context/tex/context/base/util-lua.lua:81: in function 'loadedluacode' .../ConTeXt/tex/texmf-context/tex/context/base/luat-env.lua:94: in function 'luafilechunk' .../ConTeXt/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode' [string "\directlua "]:1: in main chunk. log system > tex > error on line 41 in file /Applications/ConTeXt/tex/texmf-context/tex/context/base/font-lib.mkvi: LuaTeX error \registerctxluafile ...ua..registercode("#1","#2")} l.41 \registerctxluafile{font-otn}{1.001} % otf main node fixed (hopefully) .. was am missing (new) file ... beta uploaded - 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] Latest beta (minimals) failure to download/install
Hi! My efforts to download/install the latest minimals was stopped with this error message: ! LuaTeX error .../ConTeXt/tex/texmf-context/tex/context/base/font-otn.lua:260: attempt to index field 'steppers' (a nil value) stack traceback: .../ConTeXt/tex/texmf-context/tex/context/base/font-otn.lua:260: in function 'code' .../ConTeXt/tex/texmf-context/tex/context/base/util-lua.lua:81: in function 'loadedluacode' .../ConTeXt/tex/texmf-context/tex/context/base/luat-env.lua:94: in function 'luafilechunk' .../ConTeXt/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode' [string "\directlua "]:1: in main chunk. log system > tex > error on line 41 in file /Applications/ConTeXt/tex/texmf-context/tex/context/base/font-lib.mkvi: LuaTeX error ... \registerctxluafile ...ua.registercode("#1","#2")} l.41 \registerctxluafile{font-otn}{1.001} % otf main node Alan ___ 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] To update or not to update - that is the question...
On 2013–03–17 Jonathan Barchi wrote: > Just curious, does this repo stay up to date the the "official" > updates from garden? I assume that's the goal of the repo, but there is no guarantee that it does. > I've been using (basically) the scripts suggested on the "minimals" > wiki page to update when new betas are released, but it would be great > to be able to this with git instead. The minimals (or Standalone distribution) contain more than just that repository. Among other things it provides the binaries, an update mechanism, fonts, third-party modules and MetaPost modules. Check your context directory, the repo provides the contents of texmf-context. Sure, you can take a current Standalone distribution and replace the shipped texmf-context with the git repo (which is very handy for testing and bisecting BTW) but it's not usable for production and will break after a while. If the other files (especially LuaTeX and 3rd party modules) get out of sync you'll run into errors no one else can reproduce. Marco signature.asc Description: Digital 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 ___