[Fedora TeX Live] Support for ConTeXt

Mojca Miklavec mojca.miklavec.lists at gmail.com
Thu Sep 15 22:05:34 CEST 2011


The attached file should hopefully work. In addition to this you need
to do the following:
1.) make sure that "mtxrun --generate" is called each time when you
run mktexlsr (when you install or update texlive)
2.) patch mtxrun with something like
    resolvers.luacnfspec = '/usr/share/texlive/{,texmf-local/web2c,texmf/web2c}'
see some comments below.

Testcase?

1.) make sure that there is nothing in
~/.texlive2011/texmf-var/luatex-cache and
/usr/share/texlive/texmf-var/luatex-cache
2.) "install texlive" (read as: make sure that your installation runs
"mtxrun --generate" as superuser, check that this command creates
/usr/share/texlive/texmf-var; you may inspect the contents to check if
more or less the right files are listed)
3.) create hello world document:
\starttext
whatever
\stoptext
4.) check that "context hello.tex" works and creates a pdf
5.) run "mtxrun --script fonts --reload" (as normal user)
6.) mtxrun --script fonts --list --all
(or provide some pattern instead of "--all") and check if system fonts
are listed.

Mojca


On Tue, Sep 13, 2011 at 09:33, Mojca Miklavec wrote:
> To start with, can you please locate the line
>    resolvers.luacnfspec =
> '{selfautodir:,selfautoparent:};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,};{selfautodir:,selfautoparent:}{/share,}/texmf{-local,}/web2c'
> in mtxrun?
>
> The same contents is probably in
>    /scripts/context/lua/mtxrun.lua
>    /scripts/context/stubs/mswin/mtxrun.lua
>    /scripts/context/stubs/unix/mtxrun
>    /tex/context/base/data-res.lua
> but the main place where you have to change it is the executable
> mtxrun script in /usr/bin.
>
> You need to change that string, so that it will point to
>    /usr/share/texlive/texmf/web2c/
> and possibly any other directory of question. I'm not sure about the
> exact strategy, but I would probably use
>    /usr/share/texlive/;/usr/share/texlive/texmf-local/web2c/;/usr/share/texlive/texmf/web2c/
> (the first one is not really needed).
>
> That is, you could write
>    resolvers.luacnfspec = '/usr/share/texlive/{,texmf-local/web2c,texmf/web2c}'
> or omit the first comma if you don't need /usr/share/texlive, but
> preferably you want to keep this string/functionality in sync with
> TEXMFCNF variable that was built into kpathsea.
>
> This change + running "mtxrun --generate" every time when you run
> mktexlsr (or at least at every update and the first time when you
> install texlive) should give you a working ConTeXt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texmfcnf.lua
Type: application/octet-stream
Size: 8330 bytes
Desc: not available
URL: <http://www.linux.cz/pipermail/texlive/attachments/20110915/995fa177/attachment.obj>


More information about the TeXLive mailing list