5

I'm on Windows (seems like everyone else is using *nix + latex, so I thought it's worth pointing out).

When I run this command in the command prompt:

lualatex.exe --halt-on-error --interaction=nonstopmode -output-directory=C:\ C:\Users\uuu\AppData\Local\Temp\tmp9DE6.tex

The error I get is:

! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric data not found or bad.
<to be read again>
relax
l.105 \fontencoding\encodingdefault\selectfont

 372 words of node memory still in use:
   2 hlist, 1 rule, 1 dir, 4 glue, 47 glue_spec, 2 if_stack, 2 write, 1 pdf_col
orstack nodes
   avail lists: 2:13,3:3,5:2,7:2,8:1,9:2
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on tmp9DE6.log.

When I try to generate pdf file using TeXworks tool however, it's being generated properly. The question is - which command line options is it using to not have the same problem as cmd has? Or more general - what to do to make this problem go away?

EDIT:

Huh, didn't notice this earlier because of the amount of output, but one of the first things console is showing after running the above command, is:

module 'luaotfload-main' not found

Maybe that's the real problem? But what is the reason for it?

  • Which distribution are you using? MikTeX? TeX Live? – TeXnician Jul 6 '17 at 13:28
  • It's TeX Live. I'll edit my question. – Marek M. Jul 6 '17 at 13:28
  • Compare the log-files. Perhaps you have two texsystems. – Ulrike Fischer Jul 6 '17 at 13:33
  • 3
    Simply look. You are in the happy situation that you have a failing and a working compilation. So you can compare both and search for differences. – Ulrike Fischer Jul 6 '17 at 13:40
  • 1
    Where were I right? – Ulrike Fischer Jul 6 '17 at 14:00
5

In case someone else comes across this problem, the solution is to install luaotfload:

sudo tlmgr install luaotfload
  • 2
    I needed luaotfload-tool --update in addition to that. – Nico Schlömer Jul 13 '18 at 17:40
  • 2
    If using Tex Live in Debian, this installs loaotfload-main, and fixes the problem: sudo apt-get install texlive-luatex. And this is needed for the lualatex command: sudo apt-get install texlive-latex-base. – pts Jan 10 at 14:51
  • @pts It works perfectly! – Giovanni Cerretani Jan 10 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.