
헤더 를 mylatexformat
별도의 preamble.tex
.
이것은 잘 작동합니다 pdflatex
. 나도 똑같이 할 수 있나요 lualatex
? 이것이 내가 시도한 것입니다 bug.tex
:
\documentclass{article}
\usepackage{datetime2}
% \usepackage{microtype}
% \usepackage{tikz}
\begin{document}
\DTMnow
\end{document}
나는 다음을 사용하여 이 파일을 빌드합니다.
lualatex -ini -jobname="bug" "&lualatex" mylatexformat.ltx bug.tex
lualatex --fmt="bug.fmt" bug.tex
이것은 잘 작동합니다.
그러나 다양한 패키지를 활성화하면 매우 다른 오류가 발생합니다.
microtype
:
(/home/bers/opt/texlive/2020/texmf-dist/tex/latex/microtype/mt-LatinModernRom
an.cfg[\directlua]:1: attempt to index a nil value (global 'microtype')
stack traceback:
[\directlua]:1: in main chunk.
MT@ifstreq ...{microtype.if_str_eq([[#1]],[[#2]])}
endcsname
l.105 }
tikz
:
(/home/bers/opt/texlive/2020/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cf
g)) [1{/home/bers/opt/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.m
ap}]
! error: (pdf backend): referenced object has wrong type others; should be obj
! ==> Fatal error occurred, no output PDF file produced!