Dear all Firstly, my apologies in advance of this post in not appropriate here. I will (hopefully) give enough background info to explain my setup. Windows Vista LuaTeX, Version beta-0.53.0-2010040120 I've compiled LuaTeX on Windows with MinGW, mysys and have working debug versions of luatex.exe (using --nostrip) which function perfectly with gdb. So far so good. (I use Tortoise SVN to check out the latest source code etc) Now I want to create a minimal test environment for LuaTeX which lets me compile some simple .tex files for working with gdb. So far I have constructed a minimal working texmf.cnf file (not pretty --- and I'm sure it is wrong in many ways) but it does enable some limited functionality. I have been able to use Hans' example of "lplain" as a starting point but have stripped this down to the following ("gplain" format): ========== gplain.tex =========== \input plain \directlua {tex.enableprimitives('', tex.extraprimitives())} \edef\fmtversion{\fmtversion+luatex} If I run luatex.exe --ini gplain (and type \dump) I get a working gplain.ftm which I can run with luatex.exe --progname=gplain $TEXMF/ptest2.tex where "ptest2.tex" contains nothing more than: \directlua 0 { tex.print("Hello from gplain") } \bye And ths outputs ptest2.dvi----> This is LuaTeX, Version beta-0.53.0-2010040120 (c:/msys/1.0/trunk/build/texk/ptest2.tex [1] ) Output written on ptest2.dvi (1 page, 228 bytes). Transcript written on ptest2.log. ---> which I can view with MikTeX's YAP. So far so good. However, if I type \pdfoutput=1 at the start of my test file: \pdfoutput=1 \directlua 0 { tex.print("Hello from gplain") } \bye I get a PDF but it is not functional. I have the following set in my environment KPATHSEA_DEBUG=-1 KPATHSEA_DEBUG_OUTPUT=c:/kspsluatex.log TEXMF=C:/msys/1.0/trunk/build/texk TEXMFCNF=C:/msys/1.0/trunk/build/texk TEXMFLOG=c:/texmflog.log At the end of c:/kspsluatex.log I see: kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr10 luatex.exe: fatal: kpathsea: CreateProcess() failed for `mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr10' (Error 2) So, finally to my question. Clearly, I am missing some steps in getting PDF output to work and this is likely to be fonts. Seems like an attempt to build bitmaps is failing but I have a full collection of Type1 Computer Modern fonts installed. Would the list members be able to help me pinpoint the problem with the PDF output? What additional information do you need from me that would help you trace the source of the problem? With many thanks in advance. Warm wishes to all. Graham Douglas
Hello Graham, first of all: your setup looks okay to me and I am able to run your testfile (pdf) on a Mac exactly as you described your steps. So I think that we need to do some more bug hunting.
I have the following set in my environment
KPATHSEA_DEBUG=-1 KPATHSEA_DEBUG_OUTPUT=c:/kspsluatex.log TEXMF=C:/msys/1.0/trunk/build/texk TEXMFCNF=C:/msys/1.0/trunk/build/texk TEXMFLOG=c:/texmflog.log
At the end of c:/kspsluatex.log I see:
kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr10 luatex.exe: fatal: kpathsea: CreateProcess() failed for `mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr10' (Error 2)
I wonder what your exact output looks like (without the KPATHSEA_DEBUG output). This for example is what I have:
This is LuaTeX, Version beta-0.53.0-2010032418
(./ptest2.tex [1{/opt/texlive2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
] )
Output written on ptest2.pdf (1 page, 13391 bytes).
Transcript written on ptest2.log.
I assume that your problem might be due to a missing/incomplete/... pdftex.map. If you repeat your steps with pdftex, does it work OK? What does KPATHSEA_DEBUG tell you about loading pdftex.map file? Can it find one? Does "kpsewhich pdftex.map" gives you any output? Inside the pdftex.map I have
cmr10 CMR10
<snip> Hi Patrick, I'll take a look at your suggestion --- and thank you *very much* for taking the time to run through the steps. Much appreciated. I'll report back shotly. All the best Graham
Patrick Gundlach patrick at gundla.ch
on Fri Apr 2 18:31:48 CEST 2010
very kindly wrote:
<snip>
==========
I assume that your problem might be due to a missing/incomplete/...
pdftex.map. If you repeat your steps with pdftex, does it work OK? What
does KPATHSEA_DEBUG tell you about loading pdftex.map file? Can it find
one? Does "kpsewhich pdftex.map" gives you any output? Inside the
pdftex.map I have
cmr10 CMR10
participants (2)
-
Graham Douglas
-
Patrick Gundlach