Re: [NTG-context] metafun
On 21-10-2010 12:42, Kevin D. Robbins wrote: Hi Hans, Is the new MetaFun manual available for download? The only PDFs I could find of the MetaFun manual were dated to 2002. Kevin On Wed, Oct 20, 2010 at 6:03 AM, Hans Hagenpra...@wxs.nl wrote: they will be online soon (also new screen version) 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] Problem processing a non-UTF8 Lua script
Hello, I have a problem with processing a Lua file similar to that with \typefile described several days (weeks?) ago. Let's have the following files: - Ctx: --- \mainlanguage[cz] \enableregime[cp1250] \starttext AAA \startluacode local t = dofile(t.lua) context(t) \stopluacode \stoptext --- - And the t.lua: --- -- return 111 -- This worked OK return žšč -- This is problem for Ctx --- When I try the t.lua from Win console by Lua -e dofile('t.lua'), there is no problem. When I run the Ctx file, it has problem processing characters with diacritics (like čřž...); the t.lua is not encoded in UTF-8 (which seems to be supposed by Ctx-Lua), but I'm using the cp1250 code page + each character = 1 B. The error message is: --- MTXrun | run 1: luatex --fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en --lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui --backend=pdf D:/L ukas/ConTeXt/Samples/U8/t-U8.mkivThis is LuaTeX, Version beta-0.63.0-2010090921 (rev 3873) \write18 enabled. (D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv jobcontrol resuming randomizer with 0.50767540513321 ConTeXt ver: 2010.10.20 21:33 MKIV fmt: 2010.10.21 int: english/english system : cont-new loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil.mkiv loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme (c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) (c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeX t/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : t-U8.top loaded (t-U8.top ) fonts : preloading latin modern fonts {c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active publications: loading formatting style from bxml-apa (c:/ConTeXt/tex/texmf-context/tex/context/base/bxml-apa.mkiv) systems : begin file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv at line 4 ! String contains an invalid utf-8 sequence. system error on line 1 in file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv: String contains an invalid utf-8 sequence ... 1 \mainlanguage[cz] 2 \enableregime[cp1250] 3 4 \starttext 5 AAA 6 7 \startluacode 8 local t = dofile(t.lua) 9 10 context(t) 11 \stopluacode l.1 ×ÜŔ } context(t) ...le(t.lua) \dodostartluacode ...d \directlua \zerocount {#1}} l.11 \stopluacode backends using xmp file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1, subpage 1 systems : end file D:/Lukas/ConTeXt/Samples/U8/t-U8.mkiv at line 12 )c:/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf mkiv lua stats : used config file - c:/ConTeXt/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.094 seconds mkiv lua stats : stored bytecode data - 241 modules, 56 tables, 297 chunks mkiv lua stats : cleaned up reserved nodes - 33 nodes, 9 lists of 411 mkiv lua stats : node memory usage - 19 glue_spec mkiv lua stats : node list callback tasks - 6 unique task lists, 5 instances (re)created, 328 calls mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - cs::23 en::2 mkiv lua stats : language load time- 0.156 seconds , nofpatterns: 2 mkiv lua stats : callbacks - direct: 480, indirect: 4507, total: 4987 mkiv lua stats : lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats : result saved in file - t-U8.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12 -regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm
Re: [NTG-context] Missing cont-fil on minimals ?
On 21-10-2010 12:04, Alan BRASLAU wrote: On Monday 18 October 2010 13:36:33 Hans Hagen wrote: On 18-10-2010 12:28, luigi scarso wrote: Today, first-setup.sh on my linux box says: ! I can't find file `cont-fil'. to be read again \relax l.117 \loadcorefile{cont-fil} in context.mkii/mkiv : \loadmarkfile{cont-fil} I moved some more files to the mkii/mkiv namespace. In the latest minimals there is now a path problem with \loadmarkfile. what is the message - 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] Missing cont-fil on minimals ?
On Thursday 21 October 2010 11:16:06 you wrote: what is the message + /home/local/context/beta/tex/texmf-context/tex/context/base/mult-ini.lua) ! I can't find file `mult-fst.mkiv'. to be read again \relax l.68 \loadmarkfile{mult-fst} Please type another input file name: etc., etc. The installation can be terminated by inputing the full path: /home/local/context/beta/tex/texmf-context/tex/context/base/mult-fst.mkiv etc., etc. 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] Missing cont-fil on minimals ?
On Thu, Oct 21, 2010 at 11:30 AM, Alan BRASLAU alan.bras...@cea.fr wrote: On Thursday 21 October 2010 11:16:06 you wrote: what is the message + /home/local/context/beta/tex/texmf-context/tex/context/base/mult-ini.lua) ! I can't find file `mult-fst.mkiv'. to be read again \relax l.68 \loadmarkfile{mult-fst} Please type another input file name: etc., etc. The installation can be terminated by inputing the full path: /home/local/context/beta/tex/texmf-context/tex/context/base/mult-fst.mkiv etc., etc. 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 ___ latest minimals is ok (checked at gio ott 21 11:33:36 CEST 2010) -- 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] Missing cont-fil on minimals ?
On Thursday 21 October 2010 11:33:59 luigi scarso wrote: On Thu, Oct 21, 2010 at 11:30 AM, Alan BRASLAU alan.bras...@cea.fr wrote: On Thursday 21 October 2010 11:16:06 you wrote: what is the message + /home/local/context/beta/tex/texmf-context/tex/context/base/mult-ini.lua ) ! I can't find file `mult-fst.mkiv'. to be read again \relax l.68 \loadmarkfile{mult-fst} Please type another input file name: etc., etc. The installation can be terminated by inputing the full path: /home/local/context/beta/tex/texmf-context/tex/context/base/mult-fst.mkiv etc., etc. Alan latest minimals is ok (checked at gio ott 21 11:33:36 CEST 2010) ??? The above error message was produced in real time, using the latest minimals: rsync -ptv --progress rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --extras=all 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] Missing cont-fil on minimals ?
On Thu, Oct 21, 2010 at 11:38 AM, Alan BRASLAU alan.bras...@cea.fr wrote: On Thursday 21 October 2010 11:33:59 luigi scarso wrote: On Thu, Oct 21, 2010 at 11:30 AM, Alan BRASLAU alan.bras...@cea.fr wrote: On Thursday 21 October 2010 11:16:06 you wrote: what is the message + /home/local/context/beta/tex/texmf-context/tex/context/base/mult-ini.lua ) ! I can't find file `mult-fst.mkiv'. to be read again \relax l.68 \loadmarkfile{mult-fst} Please type another input file name: etc., etc. The installation can be terminated by inputing the full path: /home/local/context/beta/tex/texmf-context/tex/context/base/mult-fst.mkiv etc., etc. Alan latest minimals is ok (checked at gio ott 21 11:33:36 CEST 2010) ??? The above error message was produced in real time, using the latest minimals: rsync -ptv --progress rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh --extras=all Alan Ah ok, I don't use --extras=all -- 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] Furigana [SOLVED]
Well, I resolved the ruby issue. After playing around with a minimal example, I noticed that \usemodule[tikz] was causing all the trouble when trying to load the environment. Not knowing what was wrong I've now updated to texlive '10 and everything works as expected, including tikz. Thank you for your patience. ___ 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] function ‘trace_context’ o ut of scope in mult-cld.lua
On 21-10-2010 2:38, Philipp Gesang wrote: Hi, the following code calls ‘trace_context()’ which is created only later on line 254. This is triggered if the first arg of ‘context()’ is of type ‘table’. ··example.cld function test (str) context.starttext() context(str) context.stoptext() return 0 end t = {a, b} return test(t) ·/example.cld Moving l. 254 to around l. 114 in mult-cld.lua fixes it for me. should go higher - 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] \items
Is it correct that inbetween works only when it inserts some kind of vertical space? \setupitems[location=top] %\def\MyInBetween{\blank[20pt]}%works \def\MyInBetween{???}% did not work \starttext \framed{\items[symbol=?, inbetween={\MyInBetween}]{SPD,CDU,Grüne}} \stoptext systems : begin file latex5.tex at line 4 ! You can't use `\prevdepth' in horizontal mode. system error on line 7 in file latex5.tex: You can't use ` ... Herbert ___ 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] Simple document with hyperlinks
Hello, I'm not able to create a document with working hyperlinks in ConTeXt. The document attached was created in LaTeX - and I'd like to create a similar one in ConTeXt: --- \documentclass{article} \usepackage{hyperref} \begin{document} This a~label.\label{a-label} \newpage This is \hyperlink{a-label}{a ref to it}. \end{document} --- The document: - Should be a print version (A4 portrait), but with working hyperlinks. - I don't need to refer to any section, chapter, page etc. I need to create an anchor, a named point in the document, and than to refer to it. - It's not important whether the clickable area is framed (default in LaTeX) or green (which seems to me to be default in ConTeXt; guessing by the last contextref.pdf) or highlighted another way. It's just necessary to be working and good if it also changes the default cursor appearance from caret to e.g. go to hand. I believe it's too easy but - how to do it in ConTeXt? Lukas t-Hyper.pdf Description: Adobe PDF document t-Hyper.tex Description: TeX document ___ 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] Simple document with hyperlinks
Am 2010-10-21 um 16:06 schrieb Procházka Lukáš: I'm not able to create a document with working hyperlinks in ConTeXt. The key command is \setupinteraction[state=start] see also e.g. http://wiki.contextgarden.net/Interaction http://wiki.contextgarden.net/Reference/en/setupinteraction http://wiki.contextgarden.net/Reference/en/goto http://wiki.contextgarden.net/References Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] \items
On 21-10-2010 3:16, Herbert Voss wrote: Is it correct that inbetween works only when it inserts some kind of vertical space? \setupitems[location=top] %\def\MyInBetween{\blank[20pt]}%works \def\MyInBetween{???}% did not work \starttext \framed{\items[symbol=?, inbetween={\MyInBetween}]{SPD,CDU,Grüne}} \stoptext systems : begin file latex5.tex at line 4 ! You can't use `\prevdepth' in horizontal mode. system error on line 7 in file latex5.tex: You can't use ` ... maybe framed[align=normal]{...} helps ... by default, \framed is an hbox - 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] beta broken?
Dear all, today's beta yields the following console output: --- /usr/texbin/mtxrun:8736: attempt to concatenate local 'v' (a table value) --- :-( Best, Oliver ___ 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] beta broken?
On Thu, Oct 21, 2010 at 17:38, Oliver Buerschaper wrote: Dear all, today's beta yields the following console output: --- /usr/texbin/mtxrun:8736: attempt to concatenate local 'v' (a table value) Oliver, Do you want to say that you are trying to revive your ConTeXt Minimals for Mac project? Else mtxrun should probably not come from /usr/texbin. Mojca ___ 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 processing a non-UTF8 Lua script
2010/10/21 Procházka Lukáš l...@pontex.cz: Or how to make Ctx work with non-UTF8 Lua files? Lukas NB: Latest minimals, WinXP. Notepad supports saving to UTF-8. Can't you rather convert your files to it? -- 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 ___
[NTG-context] 2SIDE-arranging + doublesided
Hi all, please have a look at my example. \setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \setuparranging[2SIDE] \defineoverlay[right][{\scale[width=\textwidth]{right page}}] \defineoverlay[left] [{\scale[width=\textwidth]{left page}}] \setupbackgrounds[rightpage][background=right] \setupbackgrounds[leftpage] [background=left] \starttext \showframe[text] \dorecurse{5}{test\page} \stoptext Is there a way to push the right pages on the right and the left on the left? I tried to add a blank page at the beginning but then also a second page is added and the problem remains. I appreciate any help 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 ___
Re: [NTG-context] Problem processing a non-UTF8 Lua script
2010/10/21 Vedran Miletić riva...@gmail.com: 2010/10/21 Procházka Lukáš l...@pontex.cz: Or how to make Ctx work with non-UTF8 Lua files? Notepad supports saving to UTF-8. Can't you rather convert your files to it? Come on ... Lukáš is merely trying to remove all the codepage-related problems in MKIV :) :) :) (Hans will hate me for having suggested to support \enableregime[cp1250] in MKIV in the first place, else there would at least be an excuse such as sorry, but luatex doesn't support anything but utf-8 :) Mojca PS: even vim uses cp1250 on windows 7 by default ___ 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 processing a non-UTF8 Lua script
On Thu, Oct 21, 2010 at 18:55, Mojca Miklavec wrote: Come on ... Lukáš is merely trying to remove all the codepage-related problems in MKIV :) :) :) But then ... I admit that this case is so ugly that even I'm not sure if I would want to fix it and support it. I can imagine arbitrary complex mixtures of tex/lua/metapost/index sorting routine calling each other recursively ... and sooner or later this would probably break in one way or another even if some particular case gets fixed. Mojca ___ 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] beta broken?
Do you want to say that you are trying to revive your ConTeXt Minimals for Mac project? Else mtxrun should probably not come from /usr/texbin. I deny everything. (Reusing a recent quote :-) Oliver ___ 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 processing a non-UTF8 Lua script
On 21-10-2010 6:55, Mojca Miklavec wrote: 2010/10/21 Vedran Miletićriva...@gmail.com: 2010/10/21 Procházka Lukášl...@pontex.cz: Or how to make Ctx work with non-UTF8 Lua files? Notepad supports saving to UTF-8. Can't you rather convert your files to it? Come on ... Lukáš is merely trying to remove all the codepage-related problems in MKIV :) :) :) (Hans will hate me for having suggested to support \enableregime[cp1250] in MKIV in the first place, else there would at least be an excuse such as sorry, but luatex doesn't support anything but utf-8 :) Don't worry, I have no problem with enableregime, but messing around with lua scripts and locales and codepages is asking for troubles and I'm not going to waste time on that. 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] Simple document with hyperlinks
Thank you, Henning, now I'm able to create a working example. Lukas The key command is \setupinteraction[state=start] see also e.g. http://wiki.contextgarden.net/Interaction http://wiki.contextgarden.net/Reference/en/setupinteraction http://wiki.contextgarden.net/Reference/en/goto http://wiki.contextgarden.net/References ___ 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 processing a non-UTF8 Lua script
Well, I've done it by the proposed way in this particular case. (I.e. I have the only one UTF-8 coded file - and this is the only one text file in general - for this one case. TextPad supports various codings as well. I was not sure whether the text editor will be able to determine coding used, so I worried about having to select encoding every time I'd like to edit this Lua file. But, fortunately, the editor is able to determine the UTF-8 coding; and the CP1250 as well. So once I saved this Lua file with UTF-8 encoding, I don't have to reselect it.) Lukas On Thu, 21 Oct 2010 17:49:43 +0200, Vedran Miletić riva...@gmail.com wrote: 2010/10/21 Procházka Lukáš l...@pontex.cz: Or how to make Ctx work with non-UTF8 Lua files? Notepad supports saving to UTF-8. Can't you rather convert your files to it? ___ 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] Word count
On 21-10-2010 7:39, Otared Kavian wrote: On 20 oct. 2010, at 21:43, Hans Hagen wrote: On 20-10-2010 7:08, Matija Šuklje wrote: […] I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it. Thanks a lot Hans! That's fantastic… However the file created by ConTeXt is \jobname.words: so \typefile{words-003.words} should be \typefile{\jobname.words} as indicated in lang-wrd.mkiv. sure, although it can be another name as well .. btw, I added a shower as well \usemodule[s-lan-03] \starttext \setupspellchecking[state=start,method=2] \setupspellchecking[list=tufte] \bold{tufte:} \input tufte \blank \setupspellchecking[list=knuth] \bold{knuth:} \input knuth \blank \setupspellchecking[list=ward] \bold{ward:} \input ward \blank \setupspellchecking[state=stop] \ctxlua{languages.words.tracers.showwords()} % no run check yet \stoptext and method=3 will color languages - 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] Problem processing a non-UTF8 Lua script
On Oct 21, 2010, at 18:55, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: PS: even vim uses cp1250 on windows 7 by default I think that's highly configurable. But it's true that configuration defaults have an important role, too. Arthur ___ 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] \seeindex broken?
Hi Hans, thanks for the fast fix!! Works great! And looks very good now: see xindex1, xindex2 and xindex3 ps: what sense does it make that only xindex2 has *no* interaction? Steffen Am 20.10.2010 um 09:36 schrieb Steffen Wolfrum: Hi, it seems that \seeindex doesn't work as expected anymore (please run attached example). Or did I do something wrong? Best, Steffen (ConTeXt ver: 2010.10.12 01:03 MKIV) \starttext \placeregister[index] \page %test \seeindex{index1}{xindex2}test % - here it works \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \seeindex{index1}{xindex2}test % - here it does not \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text \page test \index{index1}test \index{xindex2}text %\page %test \seeindex{index1}{xindex2}test % - here it does not \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 ___ ___ 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] missing accents
Ouch, After updating ConTeXt today, the accents went into digital heaven in exactly the wrong moment ... I'm using an OpenType font with some missing accents. This didn't work earlier (I didn't debug for too long): \definefontfeature[default][default][compose=yes] And this stopped working after I updated ConTeXt today: \catcode`ć=\active \defć{\buildtextaccent\textacute c} It still works with XeTeX (but I have some other (solvable) problems there). Mojca ___ 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] \seeindex broken?
On 21-10-2010 10:05, Steffen Wolfrum wrote: Hi Hans, thanks for the fast fix!! Works great! And looks very good now: see xindex1, xindex2 and xindex3 ps: what sense does it make that only xindex2 has *no* interaction? I didn't test interaction as I made just one simple test file. - 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] \seeindex broken?
Am 21.10.2010 um 22:19 schrieb Hans Hagen: On 21-10-2010 10:05, Steffen Wolfrum wrote: Hi Hans, thanks for the fast fix!! Works great! And looks very good now: see xindex1, xindex2 and xindex3 ps: what sense does it make that only xindex2 has *no* interaction? I didn't test interaction as I made just one simple test file. And I assumed it makes somehow sense concerning the request of Alan but I don't remember the details... (wasn't there something about first and last entry of the seeindex reference?) Again, thanks a lot! Steffen ___ 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] missing accents
On Thu, Oct 21, 2010 at 22:11, Mojca Miklavec wrote: And this stopped working after I updated ConTeXt today: \catcode`ć=\active \defć{\buildtextaccent\textacute c} I wanted to send a minimal example to demonstrate the problem: \starttext (\textcaron)({\buildtextaccent\textcaron c}) \stoptext But then I figured out that it works again. Hans, thanks a lot for the fix, Mojca ___ 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] How to remove \jobname-mpgraph.dddd?
I have a silly question - how do I remove mpgraph files now that ctxtools is gone and context --purge doesn't know about them? context doesn't need to know about mpgraph files as long as MKIV is not generating them, but if there is no mkii-only --purge alternative ... I have fifty files \jobname-mpgraph.4000 ... \jobname-mpgraph.3951 and even though I can use rm, --purge would be a lot more convenient. Mojca ___ 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 editors (vim?)
Dear all, I don't know how you all compile your context documents. I have used Winefish until now, but it is no longer maintained (last stable version 2006) and so I was thinking of switching to something else. I have looked at vim and it looks promising. There is a compiler file from Aditya (2006) which uses texexec. I was wondering if anybody would be interested in a vim compiler for mkiv (maybe somebody has one already?). Other suggestions are also welcomed. Best, Severin ___ 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] How to remove \jobname-mpgraph.dddd?
On Fri, Oct 22, 2010 at 2:03 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: I have a silly question - how do I remove mpgraph files now that ctxtools is gone and context --purge doesn't know about them? context doesn't need to know about mpgraph files as long as MKIV is not generating them, but if there is no mkii-only --purge alternative ... I have fifty files \jobname-mpgraph.4000 ... \jobname-mpgraph.3951 and even though I can use rm, --purge would be a lot more convenient. Does mtxrun textutil --purgeall work ? -- 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 ___