[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#853119: texlive-luatex: basic lualatex document does not compile anymore without additionnal dependencies



Hi,

for me, just installing lmodern did not fix the issue with the
following example:

\documentclass{standalone}

\usepackage[utf8]{luainputenc}

\usepackage[osf,sc,slantedGreek]{mathpazo}
\linespread{1.08}

\begin{document}
Test
\end{document}

% lualatex test.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian) 
 restricted system commands enabled.
(./test.tex
LaTeX2e <2017/01/01>
(using write
cache: /home/wolle/.texlive2016/texmf-var/luatex-cache/generic)(us ing
read
cache: /var/lib/texmf/luatex-cache/generic /home/wolle/.texlive2016/te
xmf-var/luatex-cache/generic) luaotfload | main : initialization
completed in 0.104 seconds Babel <3.9r> and hyphenation patterns for 1
language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.cls
Document Class: standalone 2015/07/15 v1.2 Class to compile TeX
sub-files stand alone
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/share/texlive/texmf-dist/tex/latex/standalone/standalone.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document
Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo luaotfload |
db : Reload initiated (formats: otf,ttf,ttc); reason: "File not found:
lmroman10-regular.".(compiling luc: /var/li
b/texmf/luatex-cache/generic/fonts/otl/lmroman10-regular.luc)(compiling
luc: /h
ome/wolle/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regul
ar.luc)(save: /home/wolle/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl /lmroman10-regular.lua)(save: /home/wolle/.texlive2016/texmf-var/luatex-cache/g
eneric/fonts/otl/lmroman10-regular.luc))))
(/usr/share/texlive/texmf-dist/tex/lualatex/luainputenc/luainputenc.sty
(/usr/share/texlive/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
(/usr/share/texlive/texmf-dist/tex/luatex/ctablestack/ctablestack.sty))
(/usr/share/texlive/texmf-dist/tex/lualatex/luainputenc/lutf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/mathpazo.sty) No file
test.aux.

LaTeX Font Warning: Font shape `TU/pplj/m/n' undefined
(Font)              using `TU/lmr/m/n' instead on input line 11.

! Undefined control sequence.
\sa@placebox ->\newpage \global \pdfpagewidth 
                                              =\wd \sa@box \global
\pdfpageh...

l.13 \end{document}
                 
? x
 411 words of node memory still in use:
   3 hlist, 1 rule, 1 dir, 6 glue, 1 kern, 4 glyph, 6 attribute, 41
glue_spec, 6 attribute_list, 2 if_stack, 1 write nodes
   avail lists: 2:6,3:1,4:1,5:2,7:2,8:1,9:1

warning  (pdf backend): no pages of output.
Transcript written on test.log.


It seems, like the luaotfload is loaded unconditionally even when it is
not needed, since type1 fonts are requested to used (mathpazo). It
tries to use lmr anyways since it is forced to use TU encoding, which
mathpazo does not have.
In /usr/share/texlive/texmf-dist/tex/latex/base/latexrelease.sty I
found the following change, which is probably part of the issue:
+\IncludeInRelease{2017/01/01}%
+                 {\fontencoding}{TU in everyjob}%
+\fontencoding{TU}\let\encodingdefault\f@encoding
+\ifx\directlua\@undefined\else
+  \directlua{%
+%% Horrible hack, locally reset the luatex version number
+%% This is not required for the source version of luaotfload
+%% but is required due to an error in the version check in the
+%% public version (January 2017)
+%% https://github.com/lualatex/luaotfload/issues/387
+%% It is expected that this will be removed before TeXLive 2017
+  local tmp_version=tex.luatexversion %
+  tex.luatexversion=199 %
+  if xpcall(function ()%
+             require('luaotfload-main')%
+            end,texio.write_nl) then %
+  local _void = luaotfload.main ()%
+  else %
+  texio.write_nl('Error in luaotfload: reverting to OT1')%
+  tex.print('\string\\def\string\\encodingdefault{OT1}')%
+  end %
+  tex.luatexversion=tmp_version%
+  }%
+  \let\f@encoding\encodingdefault
+  \expandafter\let\csname ver@luaotfload.sty\endcsname\fmtversion
+\fi
+\EndIncludeInRelease

Best regards,
Julian
-- 
 ()  ascii ribbon campaign - against html e-mail 
 /\                        - against proprietary attachments


Reply to: