I have a TeXlive 2019 installation with an unsolved problem that so far prevents me from compiling on this computer with LuaLaTeX, so I thought I could add to the preamble of the document that I'm working some code that allows me to choose to compile with LuaLaTeX and otherwise do it with pdfLaTeX.
I'm pretty sure I saw something like that years ago but I've been unable to find the solution I'm looking for.
Do any of you remember the solution I'm looking for? At the moment my MWE would be as follows:
\documentclass[fontsize=10pt,headings=big,headsepline=on,paper=7in:8.5in,DIV=calc,BCOR=5mm]{scrbook}
\usepackage[english]{babel}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX, Scale=MatchLowercase}
\usepackage{xunicode}
\usepackage{luatextra}
\setmainfont[
ItalicFont = SourceSerifPro,
ItalicFeatures={FakeSlant=0.2}
]{SourceSerifPro}
\setsansfont{SourceSansPro}
\setmonofont{SourceCodePro}
\usepackage{blindtext}
\begin{document}
\Blindtext[3][2]
\end{document}
arara
). The correct format of said comment depends on the used script. But you can't change the engine from within a TeX-run with TeX code.xunicode
orluatextra
packages? They are both early luatex support packages not really needed in most cases now other than compatibility reasons