Hi,
I would like to run (if possible) the context format at runtime. In
fact, I'd like to create a custom format for my own document and I want
my format to inherit ConTeXt (mostly because of utf-8 support).
At the beginning of my document, I added:
\input format
And at the beginning of format.tex, I added:
\input context
But now, when I execute the document using (pdf)luatex, I get an error
in some lua chunk:
pdfluatex document.tex
This is LuaTeX, Version snapshot-0.25.4-2008091110 (Web2C 7.5.7)
(document.tex (format.tex (/usr/share/texmf-dist/tex/context/base/context.tex
(/usr/share/texmf-dist/tex/context/base/syst-pln.tex)
(/usr/share/texmf-dist/tex/context/base/syst-prm.tex)
(/usr/share/texmf-dist/tex/context/base/luat-env.tex
! LuaTeX error [string "luas[0]"]:1: attempt to call field 'luafilechunk' (a ni
l value).
\ctxluabyteload ...nvironment.luafilechunk("#1") }
\ ...fproductionrun \else \ctxluabyteload {#1}{#2}
\fi \global \everyloadluac...
l.168 \registerctxluafile{luat-env}{1.001}
?
If I use context instead of (pdf)luatex, it seems there is an infinite
loop when context.tex is loaded from my format in the
file /usr/share/texmf-dist/tex/context/base/syst-prm.tex
If I remove the inclusion of context in my format (the \input line) I
get another error (but I can't find where it is). The last lines looks
like:
context document.tex
MtxRun | loading configuration for /usr/share/texmf/web2c from /home/mildred/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/trees/f7d1b3c25487ab1e1035aff1c53b90da
(./document.tex
ConTeXt ver: 2008.05.21 15:21 MKIV fmt: 2008.10.27 int: english/english
language : language en is active
report >> utilityfile: not present
system : cont-new loaded
(/usr/share/texmf-dist/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf-dist/tex/context/base/cont-new.mkiv
lua : used config path - /usr/share/texmf/web2c/texmf.cnf
lua : used cache path - /home/mildred/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028
) (/usr/share/texmf-dist/tex/context/base/cont-mtx.tex))
system : cont-old loaded
(/usr/share/texmf-dist/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf-dist/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys.rme loaded
(/usr/share/texmf-dist/tex/context/user/cont-sys.rme (/usr/share/texmf-dist/tex/context/base/type-tmf.tex) (/usr/share/texmf-dist/tex/context/base/type-siz.tex) (/usr/share/texmf-dist/tex/context/base/type-otf.tex))
bodyfont : 12pt rm is loaded
specials : tex loaded
system : document.top loaded
(./document.top
specials : loading definition file tpd
(/usr/share/texmf-dist/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/share/texmf-dist/tex/context/base/spec-fdf.tex (/usr/share/texmf-dist/tex/context/base/spec-fdf.mkiv))
specials : fdf loaded
)
specials : fdf loaded
) (./format.tex)
! Missing } inserted.
<inserted text>
}
<to be read again>
\endgroup
\stopitemgroup ...mdepth }\egroup \else \endgroup
\global \advance \itemdept...
l.28
?
Do you know how I can create my format based on ConTeXt? It doesn't
seems that easy :/ And I would prefer not to be dependant from ConTeXt
(that is if I want to use another format for my document instead of
ConTeXt, I want to be able to do that). And I also would prefer using
the generic (pdf)luatex instead of context.
Thanks.
Mildred
--
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: