Re: [NTG-context] Pretty-printing ConTeXt sources
Am 03.11.2012 um 21:21 schrieb Marcin Borkowski : > Hi all, > > I asked the very same question some time ago, but back then got an > MkII (texexec-based) answer. So: how do I typeset ConTeXt MkIV sources? > Is the procedure different for .tex, .mkiv, .mkvi, .lua files? For TeX (MkII, MkIV and MkVI) and MetaPost files use context --ctx=s-mod and for Lua files (currently broken but should be fixed in one of the next betas) use context --ctx=x-dx 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 ___
[NTG-context] Pretty-printing ConTeXt sources
Hi all, I asked the very same question some time ago, but back then got an MkII (texexec-based) answer. So: how do I typeset ConTeXt MkIV sources? Is the procedure different for .tex, .mkiv, .mkvi, .lua files? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Pretty printing ConTeXt sources
Am 25.08.2011 um 19:15 schrieb Marcin Borkowski: > Thanks a lot! > ...but there's still a problem. The files pack-lyr.mkiv and > type-otf.mkiv compile just fine, but pack-rul.mkiv still issues an > error. Here's the log: pack-rul.mkiv -> line 1172 %D \macros %D {\doassigncheckedframeoffset} The remove the backslash from \doassigncheckedframeoffset. 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] Pretty printing ConTeXt sources
Dnia 2011-08-25, o godz. 18:49:34 Wolfgang Schuster napisał(a): > > Am 25.08.2011 um 15:03 schrieb Marcin Borkowski: > > >> Have you tried it with another file? I can try to look why it fails > >> but not now. > > > > Finally I found some time. I tried two other .mkiv files > > (pack-lyr.mkiv and type-otf.mkiv) and *the same* error occurred. > > Change in s-mod-00.mkiv > > \def\dodomargeaanduidingen[#1]#2% > > to > > \unexpanded\def\dodomargeaanduidingen[#1]#2% Thanks a lot! ...but there's still a problem. The files pack-lyr.mkiv and type-otf.mkiv compile just fine, but pack-rul.mkiv still issues an error. Here's the log: == (pack-rul.run ConTeXt ver: 2011.07.21 19:17 MKIV fmt: 2011.7.22 int: english/english system > cont-new.mkiv loaded (/home/marcin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > pack-rul.top loaded system > options > start used options used options> % runtime options files (command line driven) used options> \unprotect used options> % feedback and basic job control used options> % handy for special styles used options> \startluacode used options> document = document or { } used options> document.arguments={ used options> ["ctx"]="s-mod", used options> ["global"]=true, used options> ["prep"]=true, used options> } used options> document.files={ used options> "pack-rul.mkiv", used options> } used options> \stopluacode used options> % process info used options> \setupsystem[inputfile=pack-rul.mkiv] used options> \setupsystem[\c!n=1,\c!m=1] used options> % modes used options> % options (not that important) used options> \startsetups *runtime:options used options> \stopsetups used options> % styles and modules used options> \startsetups *runtime:modules used options> \usemodule[mod-01] used options> \stopsetups used options> % done used options> \protect \endinput system > options > stop used options (pack-rul.top) fonts > latin modern fonts are not preloaded languages > language en is active resolvers > modules > loaded: 'mod-01' (/home/marcin/context/tex/texmf-context/tex/context/base/s-mod-01.mkiv resolvers > modules > loaded: 'mod-00' (/home/marcin/context/tex/texmf-context/tex/context/base/s-mod-00.mkiv resolvers > modules > loaded: 'units' (/home/marcin/context/tex/texmf-context/tex/context/base/m-units.mkiv<+ /home/marcin/context/tex/texmf-context/tex/context/base/x-mathml.lua>) resolvers > modules > loaded: 'int-load' (/home/marcin/context/tex/texmf-context/tex/context/base/x-set-11.mkiv)) resolvers > modules > loaded: 'abr-01' (/home/marcin/context/tex/texmf-context/tex/context/base/s-abr-01.tex) fonts > preloading latin modern fonts (third stage) (/home/marcin/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (type-otf.mkiv) files > readfile > asked name: 'loc', not found {/home/marcin/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/marcin/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/marcin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 10pt is loaded ) system > prepfiles > loading ctx log file (specified) (pack-rul.mkiv.prep backend > xmp > using file '/home/marcin/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 1 . . . fonts > otf loading > loading: /home/marcin/context/tex/texmf/fonts/opentype/public/lm/lmroman6-regular.otf (hash: lmroman6-regular) fonts > otf loading > font loaded okay fonts > otf loading > file size: 112212 fonts > encoding > loading (extended) adobe glyph list fonts > otf loading > saving in cache: /home/marcin/context/tex/texmf/fonts/opentype/public/lm/lmroman6-regular.otf system > logs > lua: compiling /home/marcin/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/fonts/otf/lmroman6-regular.tma into /home/marcin/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/fonts/otf/lmroman6-regular.tmc fonts > otf loading > preprocessing and caching took 1.912 seconds fonts > otf loading > loading: /home/marcin/context/tex/texmf/fonts/opentype/public/lm/lmroman6-bold.otf (hash: lmroman6-bold) fonts > otf loading > font loaded okay fonts > otf loading > file size: 112452 fonts > otf loading > saving in cache: /home/marcin/context/tex/texmf/fonts/opentype/public/lm/lmroman6-bold.otf system > logs > lua: compiling /home/marcin/context/tex/texmf-cache/luatex-cache/contex
Re: [NTG-context] Pretty printing ConTeXt sources
Am 25.08.2011 um 15:03 schrieb Marcin Borkowski: >> Have you tried it with another file? I can try to look why it fails >> but not now. > > Finally I found some time. I tried two other .mkiv files > (pack-lyr.mkiv and type-otf.mkiv) and *the same* error occurred. Change in s-mod-00.mkiv \def\dodomargeaanduidingen[#1]#2% to \unexpanded\def\dodomargeaanduidingen[#1]#2% 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] Pretty printing ConTeXt sources
Dnia 2011-08-21, o godz. 10:16:49 Wolfgang Schuster napisał(a): > > Am 20.08.2011 um 20:55 schrieb Marcin Borkowski: > > > Any ideas, please? > > > Have you tried it with another file? I can try to look why it fails > but not now. Finally I found some time. I tried two other .mkiv files (pack-lyr.mkiv and type-otf.mkiv) and *the same* error occurred. > Wolfgang TIA -- Marcin Borkowski ___ 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] Pretty printing ConTeXt sources
Am 20.08.2011 um 20:55 schrieb Marcin Borkowski: > Any ideas, please? Have you tried it with another file? I can try to look why it fails but not now. 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] Pretty printing ConTeXt sources
Dnia 2011-08-05, o godz. 14:24:56 Wolfgang Schuster napisał(a): > > Am 04.08.2011 um 22:53 schrieb Marcin Borkowski: > > > Hi, > > > > I'm sure it was answered before, but I couldn't find it: how to > > pretty-print ConTeXt (and lua) files (I mean especially ConTeXt > > sources, but also module sources)? > > TeX: context --ctx=s-mod > Lua: context --ctx=x-ldx OK. So I switched to a /tmp directory and did context --ctx=s-mod pack-rul.mkiv and no pdf was produced. I copied pack-rul.mkiv to ~/tmp, did the same - then I got only the title page and an error (log file below). What am I doing wrong? === log file === (pack-rul.run ConTeXt ver: 2011.07.21 19:17 MKIV fmt: 2011.7.22 int: english/english system > cont-new.mkiv loaded (/home/marcin/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > pack-rul.top loaded system > options > start used options used options> % runtime options files (command line driven) used options> \unprotect used options> % feedback and basic job control used options> % handy for special styles used options> \startluacode used options> document = document or { } used options> document.arguments={ used options> ["ctx"]="s-mod", used options> ["global"]=true, used options> ["prep"]=true, used options> } used options> document.files={ used options> "pack-rul.mkiv", used options> } used options> \stopluacode used options> % process info used options> \setupsystem[inputfile=pack-rul.mkiv] used options> \setupsystem[\c!n=1,\c!m=1] used options> % modes used options> % options (not that important) used options> \startsetups *runtime:options used options> \stopsetups used options> % styles and modules used options> \startsetups *runtime:modules used options> \usemodule[mod-01] used options> \stopsetups used options> % done used options> \protect \endinput system > options > stop used options (pack-rul.top) fonts > latin modern fonts are not preloaded languages > language en is active resolvers > modules > loaded: 'mod-01' (/home/marcin/context/tex/texmf-context/tex/context/base/s-mod-01.mkiv resolvers > modules > loaded: 'mod-00' (/home/marcin/context/tex/texmf-context/tex/context/base/s-mod-00.mkiv resolvers > modules > loaded: 'units' (/home/marcin/context/tex/texmf-context/tex/context/base/m-units.mkiv<+ /home/marcin/context/tex/texmf-context/tex/context/base/x-mathml.lua>) resolvers > modules > loaded: 'int-load' (/home/marcin/context/tex/texmf-context/tex/context/base/x-set-11.mkiv)) resolvers > modules > loaded: 'abr-01' (/home/marcin/context/tex/texmf-context/tex/context/base/s-abr-01.tex) fonts > preloading latin modern fonts (third stage) (/home/marcin/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/marcin/context/tex/texmf-context/tex/context/base/type-otf.mkiv) files > readfile > asked name: 'loc', not found {/home/marcin/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/marcin/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/marcin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 10pt is loaded ) system > prepfiles > loading ctx log file (specified) (pack-rul.mkiv.prep backend > xmp > using file '/home/marcin/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 1 . . . ! Illegal parameter number in definition of \!!stringa. system > tex > error on line 50 in file pack-rul.run: Illegal parameter number in definition of ... } \docommand #1->\edef \currentmargindata {#1} \getparameters [\??mc \currentma... \dodomargeaanduidingen [#1]#2->\def \docommand ## 1{\indent \hbox {\ifx #2\re... ...gen [linewidth, setuplinewidth]\tex \scratchcounter =\NOfMargi... \doifelsenothing #1->\edef \!!stringa {#1 }\ifx \!!stringa \empty \expandafte... \domargindata ...ta ][#1]\fi \doifelsenothing {#3} \donefalse \donetrue \ifdo... ... l.50 {linewidth, setuplinewidth} ? x system > files > start used files used files >1: filename=pack-rul.run | foundname=pack-rul.run | usedmethod=direct used files >2: filename=cont-new.mkiv | filetype=tex | foundname=/home/marcin/context/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database used files >3: filename=pack-r
Re: [NTG-context] Pretty printing ConTeXt sources
Am 04.08.2011 um 22:53 schrieb Marcin Borkowski: > Hi, > > I'm sure it was answered before, but I couldn't find it: how to > pretty-print ConTeXt (and lua) files (I mean especially ConTeXt > sources, but also module sources)? TeX: context --ctx=s-mod Lua: context --ctx=x-ldx 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 ___
[NTG-context] Pretty printing ConTeXt sources
Hi, I'm sure it was answered before, but I couldn't find it: how to pretty-print ConTeXt (and lua) files (I mean especially ConTeXt sources, but also module sources)? Regards, -- Marcin Borkowski ___ 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 ___