Re: [NTG-context] Mark IV or LuaMetaTeX?
Tomaso I think there is a problem with synctex in TeXworks, which is probably why I never use it. Best Wishes Keith McKay On Thu, 26 May 2022, 18:03 Tommaso Gordini via ntg-context, < ntg-context@ntg.nl> wrote: > Thank you, Keith! > > Everything works fine, except Synctex. > > So, between MkIV and LMTX you recommend LMTX. Perfect. > > Tommaso > > Il gio 26 mag 2022, 17:55 Keith McKay via ntg-context > ha scritto: > >> Hi Tommaso >> >> I use TeXworks with ConText stand alone LMTX. To set it up to run >> context do the following. >> >> Open TexWorks and then click on TexWorks in the menu bar then >> Preferences. The TexWorks Preference window will open up. >> >> Click on the Typesetting tab and you will see two panes. One marked >> "Paths for TeX and related Programs" and another marked "Processing Tools". >> >> Next to Processing Tools is a + button. Click on this and a "Tool >> Configuration" window appears. This is where you enter the details for >> processing by ConTeXt and this is how I have set this up on my mac mini M1. >> >> Name: LMTX >> >> % Here you need to use the Browse button to get to the mtxrun. On my mac >> it is the path to the directory tex which contains the file mtxrun as >> shown below. Yours may be different. Since mtxrun is an alias for >> luametatex it substitutes luametatex. I edited this to, mtxrun. >> >> Program: >> /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun >> >> % Next enter the arguments as follows using the + button. >> >> Arguments: --autogenerate >> >> --script >> >> context >> >> --autopdf >> >> $fullname >> >> Click OK. This takes you back to the TeXworks Prefences window (which has >> stayed open anyway). You may have to enter some more paths to the Paths >> pane. I added >> /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin just to >> be on the safe side but it may not be needed. >> >> If I have made any mistakes I'm sure the great and the good in the >> ConTeXt community will correct me. >> >> I also use TeXshop but prefer TeXworks but to be honest with with you >> there is not much of a difference between the two in my ConTeXt use. I'm >> experimenting with atom but that is a wee bit more complicated since I have >> to use the console to run context. >> >> Hope this helps >> >> Best Wishes >> >> Keith McKay >> >> On 26/05/2022 13:53, Tommaso Gordini via ntg-context wrote: >> >> Hello list, >> forgive me if my question is too general and trivial and without a >> minimum code. >> >> In the current state of ConTeXt development, which engine do you >> recommend to use *definitively*? ConTeXt MkIV or LMTX? >> >> I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone and >> ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if Synctex >> doesn't work too well: source to PDF is almost OK, but PDF to source is >> still very inaccurate, not to mention that to activate the direct and >> reverse search you have to write such a thing as >> >> %! TEX TS-program = ConTeXt2021 >> %! TEX useAlternatePath >> %! TEX useConTeXtSyncParser >> >> \setupsynctex [state=start, method=min] >> >> \starttext >> ... >> \stoptext >> >> I also have the latest TeXworks on board, but I don't understand how to >> set it up. If you think that for ConTeXt is better than TeXShop and you >> want to teach me how to set it up, thank you. >> >> Tommaso >> >> ___ >> 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://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> 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://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > >
Re: [NTG-context] Mark IV or LuaMetaTeX?
Thank you, Keith! Everything works fine, except Synctex. So, between MkIV and LMTX you recommend LMTX. Perfect. Tommaso Il gio 26 mag 2022, 17:55 Keith McKay via ntg-context ha scritto: > Hi Tommaso > > I use TeXworks with ConText stand alone LMTX. To set it up to run context > do the following. > > Open TexWorks and then click on TexWorks in the menu bar then Preferences. > The TexWorks Preference window will open up. > > Click on the Typesetting tab and you will see two panes. One marked "Paths > for TeX and related Programs" and another marked "Processing Tools". > > Next to Processing Tools is a + button. Click on this and a "Tool > Configuration" window appears. This is where you enter the details for > processing by ConTeXt and this is how I have set this up on my mac mini M1. > > Name: LMTX > > % Here you need to use the Browse button to get to the mtxrun. On my mac > it is the path to the directory tex which contains the file mtxrun as > shown below. Yours may be different. Since mtxrun is an alias for > luametatex it substitutes luametatex. I edited this to, mtxrun. > > Program: > /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun > > % Next enter the arguments as follows using the + button. > > Arguments: --autogenerate > > --script > > context > > --autopdf > > $fullname > > Click OK. This takes you back to the TeXworks Prefences window (which has > stayed open anyway). You may have to enter some more paths to the Paths > pane. I added > /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin just to > be on the safe side but it may not be needed. > > If I have made any mistakes I'm sure the great and the good in the ConTeXt > community will correct me. > > I also use TeXshop but prefer TeXworks but to be honest with with you > there is not much of a difference between the two in my ConTeXt use. I'm > experimenting with atom but that is a wee bit more complicated since I have > to use the console to run context. > > Hope this helps > > Best Wishes > > Keith McKay > > On 26/05/2022 13:53, Tommaso Gordini via ntg-context wrote: > > Hello list, > forgive me if my question is too general and trivial and without a minimum > code. > > In the current state of ConTeXt development, which engine do you recommend > to use *definitively*? ConTeXt MkIV or LMTX? > > I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone and > ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if Synctex > doesn't work too well: source to PDF is almost OK, but PDF to source is > still very inaccurate, not to mention that to activate the direct and > reverse search you have to write such a thing as > > %! TEX TS-program = ConTeXt2021 > %! TEX useAlternatePath > %! TEX useConTeXtSyncParser > > \setupsynctex [state=start, method=min] > > \starttext > ... > \stoptext > > I also have the latest TeXworks on board, but I don't understand how to > set it up. If you think that for ConTeXt is better than TeXShop and you > want to teach me how to set it up, thank you. > > Tommaso > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV or LuaMetaTeX?
Hi Tommaso I use TeXworks with ConText stand alone LMTX. To set it up to run context do the following. Open TexWorks and then click on TexWorks in the menu bar then Preferences. The TexWorks Preference window will open up. Click on the Typesetting tab and you will see two panes. One marked "Paths for TeX and related Programs" and another marked "Processing Tools". Next to Processing Tools is a + button. Click on this and a "Tool Configuration" window appears. This is where you enter the details for processing by ConTeXt and this is how I have set this up on my mac mini M1. Name: LMTX % Here you need to use the Browse button to get to the mtxrun. On my mac it is the path to the directory tex which contains the file mtxrun as shown below. Yours may be different. Since mtxrun is an alias for luametatex it substitutes luametatex. I edited this to, mtxrun. Program: /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun % Next enter the arguments as follows using the + button. Arguments: --autogenerate --script context --autopdf $fullname Click OK. This takes you back to the TeXworks Prefences window (which has stayed open anyway). You may have to enter some more paths to the Paths pane. I added /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin just to be on the safe side but it may not be needed. If I have made any mistakes I'm sure the great and the good in the ConTeXt community will correct me. I also use TeXshop but prefer TeXworks but to be honest with with you there is not much of a difference between the two in my ConTeXt use. I'm experimenting with atom but that is a wee bit more complicated since I have to use the console to run context. Hope this helps Best Wishes Keith McKay On 26/05/2022 13:53, Tommaso Gordini via ntg-context wrote: Hello list, forgive me if my question is too general and trivial and without a minimum code. In the current state of ConTeXt development, which engine do you recommend to use /definitively/? ConTeXt MkIV or LMTX? I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone and ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if Synctex doesn't work too well: source to PDF is almost OK, but PDF to source is still very inaccurate, not to mention that to activate the direct and reverse search you have to write such a thing as %! TEX TS-program = ConTeXt2021 %! TEX useAlternatePath %! TEX useConTeXtSyncParser \setupsynctex [state=start, method=min] \starttext ... \stoptext I also have the latest TeXworks on board, but I don't understand how to set it up. If you think that for ConTeXt is better than TeXShop and you want to teach me how to set it up, thank you. Tommaso ___ 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://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Mark IV or LuaMetaTeX?
Hello list, forgive me if my question is too general and trivial and without a minimum code. In the current state of ConTeXt development, which engine do you recommend to use *definitively*? ConTeXt MkIV or LMTX? I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone and ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if Synctex doesn't work too well: source to PDF is almost OK, but PDF to source is still very inaccurate, not to mention that to activate the direct and reverse search you have to write such a thing as %! TEX TS-program = ConTeXt2021 %! TEX useAlternatePath %! TEX useConTeXtSyncParser \setupsynctex [state=start, method=min] \starttext ... \stoptext I also have the latest TeXworks on board, but I don't understand how to set it up. If you think that for ConTeXt is better than TeXShop and you want to teach me how to set it up, thank you. Tommaso ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Mark IV with TL2010 pretest
Hello, I am installing TL2010 pretest and wonder whether ConTeXt Mark IV runs out of the box or there are certain setup procedures to go. Also I would be grateful if someone can point to a good reading resource for how to get opentype fonts going with the ConTeXt's LuaTeX engine. Thanks in advance. -- Abdulrahman Al-Abdulsalam Colleges of Applied Science - Oman ___ 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] Mark IV with TL2010 pretest
On 09/01/2010 04:01 PM, Abdulrahman Al-Abdulsalam wrote: Hello, I am installing TL2010 pretest and wonder whether ConTeXt Mark IV runs out of the box or there are certain setup procedures to go. There is a wiki page specifically for TL 2010 (pretest) http://wiki.contextgarden.net/TeX_Live_2010 There is also a wiki page on fonts in luatex, but it is a little disorganized from the looks of it: http://wiki.contextgarden.net/Fonts_in_LuaTeX Best wishes, Taco ___ 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] Mark IV
All, Hans recommended I contact the list with my inquiry. I'm running Leopard on a Mac, using Mactex, texlive 2008. I've updated my context with: sudo ctxtools --updatecontext On a first run of ctxtools, I get this error: loading : ConTeXt Core Macros / Environments ! Undefined control sequence. argument ...def \...@ea \noexpand \csname \e!start \v!setups \endcsname {\beg... \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded l.212 ...xpand\csname\e!stop\v!setups\endcsname}}} I hit s several time to scroll through the errors til it finishes, then run the command again: sudo ctxtools --updatecontext This time it seems to complete with no errors. This seem OK to folks? Now, I'd like to give MKIV a try. I see the following instructions: http://wiki.contextgarden.net/Running_Mark_IV Are they adequate for my platform? That is, will they work if I follow them to the letter? Or do folks have other advice? Thanks. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://msemac.redwoods.edu/~darnold/index.php ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV Syntax highlighting support
Renaud Aubin wrote: Hi folks ! I have just finished a first draft of pret-xml.lua: - I need to improve its coverage (html); - DTD declaration is not yet managed; - I do nothing about re-indentation since I prefer to format my xml sample by myself (by hand or using xmllint); - That's my first try to lua/luatex (after several months of Java...) so my definitions (esp. for functions) is not clean at all (you have been warned); I have done it the trial/error way without much design reflexion just for fun (I'm on vacation)... I'm not sure it will be reusable... Take all your test files and please report issues (or give me advices)! ;) syntax highlighting is kind of tricky esp since we can have either correct syntax or faulty (can be educational) this is why the pretty printers work in a rather dumb non validating mode; however, in mkii we also have parser based variants for xml pretty printing in mkiv i will provide only a few pretty printers, i.e. the ones needed for my manuals; these will be organized under pre-* in addition i will provide a user installable variant but i need to think about it a bit; we also need more verbose names then so that there can be multiple pretty printers per file type; (i will also make a basic configureable mapper but that's for later) so, we can have both validating and non validating pretty printing and multiple variants in any case .. keep making and testing them .. i'll try to cook up the plug in mechanism and naming scheme asap Hans ps. dtd declaration etc ... i shall provide a pretty printer based on th ebuild in xml parser (kind of like what we have in mkii); of course this leaves along non validated coloring - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV Syntax highlighting support
Hi folks ! I have just finished a first draft of pret-xml.lua: - I need to improve its coverage (html); - DTD declaration is not yet managed; - I do nothing about re-indentation since I prefer to format my xml sample by myself (by hand or using xmllint); - That's my first try to lua/luatex (after several months of Java...) so my definitions (esp. for functions) is not clean at all (you have been warned); I have done it the trial/error way without much design reflexion just for fun (I'm on vacation)... I'm not sure it will be reusable... Take all your test files and please report issues (or give me advices)! ;) Thank you Matthijs! Regards, Renaud Matthijs Kooijman a écrit : Hey all, ./tex/texmf-context/tex/context/base/verb-.*\.lua ! Actually, in newer versions (since a month or so), that's pret-*.lua. Where to start with this topic (current state in Mark IV, roadmap, ...) ? I've been struggling with this a bit as well lately and found there was next to no documentation. I've managed to create my own pretty printer, and tried to update the docs a bit. See [1] and [2] on the wiki for more info. There are still some details I don't get (why is there a line() hook, what is all this nesting stuff, etc.), so feel free to find out more and improve these pages! Gr. Matthijs [1]: http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter [2]: http://wiki.contextgarden.net/Custom_pretty_printer ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ if not modules then modules = { } end modules ['pret-xml'] = { version = 1.001, comment = from pret-.*\.lua, http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter and http://wiki.contextgarden.net/Custom_pretty_printer;, author= Renaud AUBIN, copyright = to be defined, license = to be defined } local utf = unicode.utf8 local utfcharacters, utfvalues = string.utfcharacters, string.utfvalues local utfbyte, utffind = utf.byte, utf.find local byte, sub, find, gfind, match = string.byte, string.sub, string.find, string.gfind, string.match local texsprint, texwrite = tex.sprint, tex.write local ctxcatcodes = tex.ctxcatcodes local change_state, finish_state = buffers.change_state, buffers.finish_state buffers.visualizers.xml = buffers.visualizers.xml or { } buffers.visualizers.xml.identifiers = buffers.visualizers.xml.identifiers or { } incomment = false local colors = { prettyone, prettytwo, prettythree, prettyfour, prettyfive, prettysix, prettyseven } local states = { ['namespace']= 1, ['element'] = 2, ['attrname'] = 3, ['attrvalue']= 4, ['prolog'] = 5, ['comment'] = 6, ['pi'] = 7 } local function flush_text(str) for c in utfcharacters(str) do if c == then texsprint(ctxcatcodes,\\obs) else texwrite(c) end end end local function process_attribute(str) local name, value, state = , , 0 buffers.currentcolors = colors local name,value = match(str,^(.-)=(\.-\)$) state = change_state(states['attrname'], state) flush_text(name) state = finish_state(state) texwrite(=) state = change_state(states['attrvalue'], state) flush_text(value) state = finish_state(state) end local function process_namespace(str) local state = 0 buffers.currentcolors = colors state = change_state(states['namespace'], state) flush_text(str) state = finish_state(state) texwrite(:) end local function process_element(str) local state = 0 buffers.currentcolors = colors state = change_state(states['element'], state) flush_text(str) state = finish_state(state) end local function process_comment(str) local state = 0 buffers.currentcolors = colors state = change_state(states['comment'], state) flush_text(str) state = finish_state(state) end function process_tag(str) local name, value, state = , , 0 buffers.currentcolors = colors if match(str,^%?xml.-%?$) then local prolog = match(str,^%?xml(.-)%?$) state = change_state(states['pi'], state) texwrite(?) state = finish_state(state) state = change_state(states['prolog'], state) texwrite(xml) state = finish_state(state) repeat prolog=recursive_processing(prolog) until prolog==nil state = change_state(states['pi'], state) texwrite(?) state = finish_state(state) elseif
Re: [NTG-context] Mark IV Syntax highlighting support
Hey all, ./tex/texmf-context/tex/context/base/verb-.*\.lua ! Actually, in newer versions (since a month or so), that's pret-*.lua. Where to start with this topic (current state in Mark IV, roadmap, ...) ? I've been struggling with this a bit as well lately and found there was next to no documentation. I've managed to create my own pretty printer, and tried to update the docs a bit. See [1] and [2] on the wiki for more info. There are still some details I don't get (why is there a line() hook, what is all this nesting stuff, etc.), so feel free to find out more and improve these pages! Gr. Matthijs [1]: http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter [2]: http://wiki.contextgarden.net/Custom_pretty_printer 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Mark IV Syntax highlighting support
Hi folks, Where to start with this topic (current state in Mark IV, roadmap, ...) ? Renaud ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV Syntax highlighting support
./tex/texmf-context/tex/context/base/verb-.*\.lua ! Renaud Aubin a écrit : Hi folks, Where to start with this topic (current state in Mark IV, roadmap, ...) ? Renaud ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Wolfgang Schuster wrote: I know this is nearly the same as a openoffice document (also a zip archive with many files) but why not. This is in fact what I'm trying to setup: a Mark IV mapping environment to typeset odt's (mainly the content.xml part) by just calling ConTeXt on the odt. I'm in an academic environment wher Word dominates and the change tracking features of a WYSIWYG-moloch like Word or OOWriter are heavily used. This direct mapping strategy seems to me the most straight forward way of living with that tradition/necessity and still achieve nice typesetting. I read about The odt-markdown-context route on a recent thread, but my solution (if it ever comes about) seems theoretically more robust - aside from catering to my manic tinkerism ... Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
On Tue, 06 Nov 2007 20:48:26 +0100 Hans Hagen [EMAIL PROTECTED] wrote: Johannes Graumann wrote: Hans Hagen wrote: Thanks for that! I found the zipping reference and got it to work. Returning now to the example above (texmfstart texexec --lua --environments=myfile.tex someotherfile.zip), what I would like to do is using lua in myfile.tex to extract the filename to be texed (someotherfile.zip) and rewrite it on the fly to a zip-archive content along the lines of \input zip::someotherfile.zip::somezipcontent.tex Is that possible? texmfstart texexec --verbose produces something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans! Not as elegant as I had hoped, but it does what I want when I use \input zip::\env{name}::somezipcontent.tex in myfile.tex ... Now is there any way to define the output-filename from within myfile.tex? This would be analogous to texexec's '--result' option, but from within the texfile to change the output-name with the help of the newly defined '\env{name}' - in the example to '\env{name}.pdf'. no ... maybe some day this give us so many options. I think about something like, We can create a zip archive of a current project with a file ending like cdx (ConTeXt Document Excange) and can now process this file by calling texexec only on this file. Nothing special at this moment for now but it is easier send only one files to someone else instead of a many files or many files in a zip file he has to unzip first and call texexec later on the main file. What I want is to create a document in one directory with the normal structure with projects, components, a figure directory etc. and zip this directory to only one file. I can now process file simply by calling texexec on the directory and it is unzipped on the fly (unnoticed by the user) and I have no longer many different files in my directory and it is easier to send a docuemnt to someone else because he get from me only the zipped project file. I know this is nearly the same as a openoffice document (also a zip archive with many files) but why not. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Wolfgang Schuster wrote: this give us so many options. I think about something like, We can create a zip archive of a current project with a file ending like cdx (ConTeXt Document Excange) and can now process this file by calling texexec only on this file. Nothing special at this moment for now but it is easier send only one files to someone else instead of a many files or many files in a zip file he has to unzip first and call texexec later on the main file. What I want is to create a document in one directory with the normal structure with projects, components, a figure directory etc. and zip this directory to only one file. I can now process file simply by calling texexec on the directory and it is unzipped on the fly (unnoticed by the user) and I have no longer many different files in my directory and it is easier to send a docuemnt to someone else because he get from me only the zipped project file. I know this is nearly the same as a openoffice document (also a zip archive with many files) but why not. sounds interesting it's no big problem to implement this, but it makes most sense to stick to luatex for this because it has zip support built in, so there is no need to unzip then. things like the output, style etc can be controller using a ctx file but currently that file is handled outside the tex run for luatex, in the near future we will no longer use texexec but a lua based variant (this removes the dependency on ruby) (i have a prototype plugin for mtxrun for that; all support script will use mtxrun as stub) let's come back to it later this year when we have a more stable luatex Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Mark IV and pre-processing input file processing.
Hello, I started playing around with ConTeXt/LuaTeX and have a question here wich is related to a pet project of mine: is it possible to tell Mark IV something like this texmfstart texexec --lua --environments=myfile.tex someotherfile.zip where 'myfile.tex' should contain a lua routine which would unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually contained in the archive (among others)? While I'm sure this can be done in Lua, I wonder whether somebody can point me at how to access the names of files to be processed ('someotherfile.zip') from the running process ... Not sure whether I can make myself understood here ... please ask if I'm not making sense, Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
2007/11/6, Johannes Graumann [EMAIL PROTECTED]: Hello, I started playing around with ConTeXt/LuaTeX and have a question here wich is related to a pet project of mine: is it possible to tell Mark IV something like this texmfstart texexec --lua --environments=myfile.tex someotherfile.zip where 'myfile.tex' should contain a lua routine which would unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually contained in the archive (among others)? While I'm sure this can be done in Lua, I wonder whether somebody can point me at how to access the names of files to be processed ('someotherfile.zip') from the running process ... Not sure whether I can make myself understood here ... please ask if I'm not making sense, Joh Take a look into Hans Mark manual. http://pragma-ade.nl/general/manuals/mk.pdf 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Wolfgang Schuster wrote: 2007/11/6, Johannes Graumann [EMAIL PROTECTED]: Hello, I started playing around with ConTeXt/LuaTeX and have a question here wich is related to a pet project of mine: is it possible to tell Mark IV something like this texmfstart texexec --lua --environments=myfile.tex someotherfile.zip where 'myfile.tex' should contain a lua routine which would unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually contained in the archive (among others)? While I'm sure this can be done in Lua, I wonder whether somebody can point me at how to access the names of files to be processed ('someotherfile.zip') from the running process ... Not sure whether I can make myself understood here ... please ask if I'm not making sense, Joh Take a look into Hans Mark manual. http://pragma-ade.nl/general/manuals/mk.pdf Thanks for that! I found the zipping reference and got it to work. Returning now to the example above (texmfstart texexec --lua --environments=myfile.tex someotherfile.zip), what I would like to do is using lua in myfile.tex to extract the filename to be texed (someotherfile.zip) and rewrite it on the fly to a zip-archive content along the lines of \input zip::someotherfile.zip::somezipcontent.tex Is that possible? texmfstart texexec --verbose produces something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? Thanks for any insights, Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Johannes Graumann wrote: Wolfgang Schuster wrote: 2007/11/6, Johannes Graumann [EMAIL PROTECTED]: Hello, I started playing around with ConTeXt/LuaTeX and have a question here wich is related to a pet project of mine: is it possible to tell Mark IV something like this texmfstart texexec --lua --environments=myfile.tex someotherfile.zip where 'myfile.tex' should contain a lua routine which would unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually contained in the archive (among others)? While I'm sure this can be done in Lua, I wonder whether somebody can point me at how to access the names of files to be processed ('someotherfile.zip') from the running process ... Not sure whether I can make myself understood here ... please ask if I'm not making sense, Joh Take a look into Hans Mark manual. http://pragma-ade.nl/general/manuals/mk.pdf Thanks for that! I found the zipping reference and got it to work. Returning now to the example above (texmfstart texexec --lua --environments=myfile.tex someotherfile.zip), what I would like to do is using lua in myfile.tex to extract the filename to be texed (someotherfile.zip) and rewrite it on the fly to a zip-archive content along the lines of \input zip::someotherfile.zip::somezipcontent.tex Is that possible? texmfstart texexec --verbose produces something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Johannes Graumann wrote: Hans Hagen wrote: Thanks for that! I found the zipping reference and got it to work. Returning now to the example above (texmfstart texexec --lua --environments=myfile.tex someotherfile.zip), what I would like to do is using lua in myfile.tex to extract the filename to be texed (someotherfile.zip) and rewrite it on the fly to a zip-archive content along the lines of \input zip::someotherfile.zip::somezipcontent.tex Is that possible? texmfstart texexec --verbose produces something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans! Not as elegant as I had hoped, but it does what I want when I use \input zip::\env{name}::somezipcontent.tex in myfile.tex ... Now is there any way to define the output-filename from within myfile.tex? This would be analogous to texexec's '--result' option, but from within the texfile to change the output-name with the help of the newly defined '\env{name}' - in the example to '\env{name}.pdf'. no ... maybe some day Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mark IV and pre-processing input file processing.
Hans Hagen wrote: Thanks for that! I found the zipping reference and got it to work. Returning now to the example above (texmfstart texexec --lua --environments=myfile.tex someotherfile.zip), what I would like to do is using lua in myfile.tex to extract the filename to be texed (someotherfile.zip) and rewrite it on the fly to a zip-archive content along the lines of \input zip::someotherfile.zip::somezipcontent.tex Is that possible? texmfstart texexec --verbose produces something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans! Not as elegant as I had hoped, but it does what I want when I use \input zip::\env{name}::somezipcontent.tex in myfile.tex ... Now is there any way to define the output-filename from within myfile.tex? This would be analogous to texexec's '--result' option, but from within the texfile to change the output-name with the help of the newly defined '\env{name}' - in the example to '\env{name}.pdf'. Thanks, Joh ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___