Re: [NTG-context] Need help with \definetabulate
2012-10-08 Malte Stien: Hi Malte I am trying to define two tabulate styles as follows: - \setuptabulate[split=yes, bodyfont=small] - \setuptabulate[split=yes] \definetabulate [alpha] [|l|l|l|] \setuptabulate [alpha] [bodyfont=small] \definetabulate [beta] [|l|l|] \setuptabulate [beta] [bodyfont=small, split=yes] \starttext \startalpha \NC first \NC second \NC third \NC\NR \stopalpha \startbeta \NC lorem \NC ipsum \NC\NR \stopbeta \stoptext ...such that I can just refer to them when I \starttabulate...\stoptabulate somewhere. To refer to a table, you place it as a float and use the `reference=tab:alphatable` key. Then in the text you refer to the table, see \in{table}[tab:alphatable]. I thought, the command \definetabulate would come in handy here, but I can't work it out and it appears the documentation on that command is pretty scarce. http://wiki.contextgarden.net/Command/definetabulate Feel free to add an example. It's a wiki! Marco ___ 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] Lua in Ctx: require() fails? (solved)
On Fri, 05 Oct 2012 10:57:15 +0200, Hans Hagen pra...@wxs.nl wrote: On 5-10-2012 08:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote: On Thu, 04 Oct 2012 13:32:42 +0200, Hans Hagen pra...@wxs.nl wrote: btw, you should adapt LUAINPUTS and not some other environment variable .. after all, luatex is not native lua so you need to avoid conflicts in case you hav einstalled both I just added SET LUAINPUTS=%LUA_PATH% to the batch I'm using to launch context.exe and it works. You can best set that in a local texmfcnf.lua file. OK... I'm not familiar with (Lua)TeX deeply enough to know how exactly to do it, so a couple a questions: - Where to put (my personal) texmfcnf.lua? The intention is Ctx to find and load its original texmfcnf.lua and then to load my texmfcnf.lua which would modify only some elements (namely: the LUAINPUTS member). I'd like to keep factory texmfcnf.lua settings as much as possible. - When I look into c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua, I see many paths: - beginning with !!, - ending with //. What does mean this convention? - I found 2 config files: c:\ConTeXt\tex\texmf\web2c\texmf.cnf c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua It seems that the latter is a Luaed form of the former. How are used both files? Is the latter built from the former or vice versa? Or the former is no more used and I'm having it among Ctx files by chance? (Or a link to a place where to learn more would be appreciated.) TIA. Best regards, Lukas In that case you use the original definition of luainputs and append lua_path to it. That way script in the context tree can also be found. Hans -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Header without chapters/sections
I would like to create a header on every page with some fixed text in the header. Simply doing \setupheadertexts[Some text] \setupheader[state=start] Does not produce a header on any page, yet \setupfootertexts[Some text] \setupfooter[state=start] does produce a footer on every page. Why does one work and the other does not? Troy Henderson ___ 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] Header without chapters/sections
2012-10-08 Troy Henderson: I would like to create a header on every page with some fixed text in the header. Simply doing \setupheadertexts[Some text] \setupheader[state=start] Does not produce a header on any page, yet \setupfootertexts[Some text] \setupfooter[state=start] does produce a footer on every page. This works here: \setupheadertexts [Some header text] \setupfootertexts [Some footer text] \starttext \dorecurse{5}{\null\page} \stoptext Why does one work and the other does not? Can you provide a minimal example and state what exactly does not work? Marco ___ 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] Header without chapters/sections
Apologies. I had set header=0in with \setuplayout. It works fine. Troy ___ 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] Problem with ConTeXt (MkIV), Hebrew and ligatures
On 1-10-2012 19:25, Philipp Gesang wrote: utilities.sequencers.disableaction(resolvers.openers.helpers.textfileactions,characters.filters.utf.collapse) Doesn’t work. What helps is to comment out the “appendaction” in char-utf.lua or the corresponding table for U0xfb35 in char-def.lua. My guess is that this is the case because the .tex file is processed *before* you can disable it. so we need a directive (as they can be given on the commandline) local textfileactions = resolvers.openers.helpers.textfileactions directives.register(filters.utf.collapse, function(v) utilities.sequencers[v and enableaction or disableaction](textfileactions,characters.filters.utf.collapse) end) Hans Sorry to still bother you with this. I just could not get this working. Hopefully it is just that I could not figure out right command line stuff. (I tried out several different ways.) So could somebody tell me how it should be run. My guess is something like.. context --directives=filters.utf.collapse=what_should_i_put_here? testcase.tex Thanks, Simo PS: Both Context setups I tried to get this working (Ubuntu PPA and standalone) should have had code updated. So that should have not been the problem. ___ 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] Problem with ConTeXt (MkIV), Hebrew and ligatures
Am 08.10.2012 um 20:51 schrieb Simo Ojala smsoj...@gmail.com: On 1-10-2012 19:25, Philipp Gesang wrote: utilities.sequencers.disableaction(resolvers.openers.helpers.textfileactions,characters.filters.utf.collapse) Doesn’t work. What helps is to comment out the “appendaction” in char-utf.lua or the corresponding table for U0xfb35 in char-def.lua. My guess is that this is the case because the .tex file is processed *before* you can disable it. so we need a directive (as they can be given on the commandline) local textfileactions = resolvers.openers.helpers.textfileactions directives.register(filters.utf.collapse, function(v) utilities.sequencers[v and enableaction or disableaction](textfileactions,characters.filters.utf.collapse) end) Hans Sorry to still bother you with this. I just could not get this working. Hopefully it is just that I could not figure out right command line stuff. (I tried out several different ways.) So could somebody tell me how it should be run. My guess is something like.. context --directives=filters.utf.collapse=what_should_i_put_here? testcase.tex Thanks, Simo PS: Both Context setups I tried to get this working (Ubuntu PPA and standalone) should have had code updated. So that should have not been the problem. Does it work when you add \enabledirectives[filters.utf.collapse] at the begin of your document. 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 ___