[latex3-commits] [latex2e-public] r1289 - push the luaotfload loading into latexrelease.sty

noreply at latex-project.org noreply at latex-project.org
Mon Dec 5 11:33:24 CET 2016


Author: carlisle
Date: 2016-12-05 11:33:24 +0100 (Mon, 05 Dec 2016)
New Revision: 1289

Modified:
   trunk/base/ltluatex.dtx
Log:
push the luaotfload loading into latexrelease.sty

Modified: trunk/base/ltluatex.dtx
===================================================================
--- trunk/base/ltluatex.dtx	2016-12-05 09:48:58 UTC (rev 1288)
+++ trunk/base/ltluatex.dtx	2016-12-05 10:33:24 UTC (rev 1289)
@@ -804,21 +804,24 @@
 %
 % In \verb|\everyjob|, if luaotfload is available, load it and switch to TU.
 %    \begin{macrocode}
-%<2ekernel>\everyjob\expandafter{%
-%<2ekernel>  \the\everyjob
-%<2ekernel>  \directlua{%
-%<2ekernel>  if xpcall(function ()%
-%<2ekernel>             require('luaotfload-main')%
-%<2ekernel>            end,texio.write_nl) then %
-%<2ekernel>  local _void = luaotfload.main ()%
-%<2ekernel>  else %
-%<2ekernel>  texio.write_nl('Error in luaotfload: reverting to OT1')%
-%<2ekernel>  tex.print('\string\\def\string\\encodingdefault{OT1}')%
-%<2ekernel>  end}%
-%<2ekernel>  \let\f at encoding\encodingdefault}
 %<latexrelease>\IncludeInRelease{2017/01/01}%
 %<latexrelease>                 {\fontencoding}{TU in everyjob}%
 %<latexrelease>\fontencoding{TU}\let\encodingdefault\f at encoding
+%<latexrelease>\ifx\directlua\@undefined\else
+%<2ekernel>\everyjob\expandafter{%
+%<2ekernel>  \the\everyjob
+%<2ekernel,latexrelease>  \directlua{%
+%<2ekernel,latexrelease>  if xpcall(function ()%
+%<2ekernel,latexrelease>             require('luaotfload-main')%
+%<2ekernel,latexrelease>            end,texio.write_nl) then %
+%<2ekernel,latexrelease>  local _void = luaotfload.main ()%
+%<2ekernel,latexrelease>  else %
+%<2ekernel,latexrelease>  texio.write_nl('Error in luaotfload: reverting to OT1')%
+%<2ekernel,latexrelease>  tex.print('\string\\def\string\\encodingdefault{OT1}')%
+%<2ekernel,latexrelease>  end}%
+%<2ekernel,latexrelease>  \let\f at encoding\encodingdefault
+%<latexrelease>\fi
+%<2ekernel>  }
 %<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{0000/00/00}%
 %<latexrelease>                 {\fontencoding}{TU in everyjob}%



More information about the latex3-commits mailing list