From: Mildred Ki'Lya <ml.mildred593@online.fr>
To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Load context format at runtime (from luatex)
Date: Mon, 27 Oct 2008 16:54:28 +0100 [thread overview]
Message-ID: <20081027165428.7177e505@kylae> (raw)
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: <mildred@jabber.fr>
│ Site: <http://ki.lya.online.fr> GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2008-10-27 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 15:54 Mildred Ki'Lya [this message]
2008-10-27 18:55 ` Hans Hagen
2008-10-27 23:40 ` Mildred Ki'Lya
2008-10-28 8:27 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081027165428.7177e505@kylae \
--to=ml.mildred593@online.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).