Discussion:
using luatex53 - format not found
(too old to reply)
Ulrike Fischer
2018-10-07 10:01:23 UTC
Permalink
I'm trying to setup a lualatex35 format to be able to run some tests
on luaotfload with it. I'm on windows 10.

I do *not* want to completly switch to it and using the format with
luatex53 -fmt=lualatex53 ... is fine for me.

I added an entry to a local fmtutil.cnf

lualatex53 luatex53 language.dat,language.dat.lua lualatex.ini

and created the format in texmf-local/texmf-var/web2c/luatex53/
with
fmtutil-sys -byfmt=lualatex53

This worked fine and kpsewhich -engine=luatex53 lualatex.fmt finds
the format.

But I can't use it.

luatex53 --fmt=lualatex53 test-utf8

starts a new (successfull) format creation and then ends with:

warning (pdf backend): no pages of output.
Transcript written on lualatex53.log.
fmtutil [INFO]:
c:/users/nililand-surface/.texlive2018/texmf-var/web2c/luatex53/lualatex53.fmt
installed.
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Successfully rebuilt formats: 1
fmtutil [INFO]: Not selected formats: 44
fmtutil [INFO]: Total formats: 51
fmtutil [INFO]: exiting with status 0
I can't find the format file `lualatex53.fmt'!


When I copy the format to the current directory everything works as
expected

What is happening here? Why can't luatex53 find the format in the
luatex53 folder when kpsewhich can?
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
David Carlisle
2018-10-07 10:35:57 UTC
Permalink
I think you'll find it works if you move lualatex53.fmt to
c:/users/nililand-surface/.texlive2018/texmf-var/web2c/luatex
and re-run mktexlsr

luatex53 is running kpse with engine=luatex as far as I can tell.

The above worked for me (apart from the user name bit:-)
Post by Ulrike Fischer
I'm trying to setup a lualatex35 format to be able to run some tests
on luaotfload with it. I'm on windows 10.
I do *not* want to completly switch to it and using the format with
luatex53 -fmt=lualatex53 ... is fine for me.
I added an entry to a local fmtutil.cnf
lualatex53 luatex53 language.dat,language.dat.lua lualatex.ini
and created the format in texmf-local/texmf-var/web2c/luatex53/
with
fmtutil-sys -byfmt=lualatex53
This worked fine and kpsewhich -engine=luatex53 lualatex.fmt finds
the format.
But I can't use it.
luatex53 --fmt=lualatex53 test-utf8
warning (pdf backend): no pages of output.
Transcript written on lualatex53.log.
c:/users/nililand-surface/.texlive2018/texmf-var/web2c/luatex53/lualatex53.fmt
installed.
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Successfully rebuilt formats: 1
fmtutil [INFO]: Not selected formats: 44
fmtutil [INFO]: Total formats: 51
fmtutil [INFO]: exiting with status 0
I can't find the format file `lualatex53.fmt'!
When I copy the format to the current directory everything works as
expected
What is happening here? Why can't luatex53 find the format in the
luatex53 folder when kpsewhich can?
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Ulrike Fischer
2018-10-07 10:38:04 UTC
Permalink
Post by Ulrike Fischer
What is happening here? Why can't luatex53 find the format in the
luatex53 folder when kpsewhich can?
I managed to get it working by forcing fmtutil-sys to create the
format in the luatex-folder with

fmtutil-sys --byfmt=lualatex53
--fmtdir=C:\texlive\2018\texmf-var\web2c\luatex --no-engine-subdir

Is there a way to code this in the cnf??
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Norbert Preining
2018-10-07 13:02:27 UTC
Permalink
Hi Ulrike,

as David said, luatex53 *is* luatex in the sense that it uses it as
internal kpse name. That means if you want it to work out of the box
you need to switch completely, that is copy luatex53 onto luatex.

Not that I think this was a good decision by upstream, but so it is.

Again, as David said, the best way is to
* generate the format
* move the .fmt file to TEXMF/web2c/luatex/lualatex53.fmt
* use lualatex53 -fmt=lualatex53
I am not 100% sure this will work, but I think it should.

If you want to trick fmtutil, then there is *one* way I coded some time
ago specifically for luatex -- but it was made irrelevant by the current
setup.

You can rename in all your stuff the
53
part to
-dev
That means you would rename luatex53 to luatex-dev, etc. fmtutil has a
special feature that it strips "-dev" from the engine name if found.

That is the best one can do on the automatic side. Of course you can
patch fmtutil near the following code:
} else {
$fmtfile .= ".fmt" ;
$kpsefmt = "tex" ;
$enginedir = $eng;
# strip final -dev from enginedir to support engines like luatex-dev
$enginedir =~ s/-dev$//;
}
by mapping luatex53 to luatex (add this line)
$enginedir = "luatex" if ($eng eq "luatex53");
but also this kind of patching is not optimal.

Sorry for not being more of help.

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Ulrike Fischer
2018-10-07 15:03:46 UTC
Permalink
Post by Norbert Preining
luatex53 *is* luatex in the sense that it uses it as
internal kpse name.
That is imho a not so bad decision: it means that the search pathes
all works without problems.

Moving the format with

fmtutil-sys --byfmt=lualatex53
--fmtdir=C:\texlive\2018\texmf-var\web2c\luatex --no-engine-subdir

and then using luatex53 --fmt=lualatex53 works fine and is quite
enough for my needs.
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Norbert Preining
2018-10-08 12:12:20 UTC
Permalink
Post by Ulrike Fischer
Moving the format with
fmtutil-sys --byfmt=lualatex53
--fmtdir=C:\texlive\2018\texmf-var\web2c\luatex --no-engine-subdir
and then using luatex53 --fmt=lualatex53 works fine and is quite
enough for my needs.
But you asked about coding it in fmtutil.cnf, so I answered according to
this.

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Loading...