Why not using pdflatex with increasing memory manually.
here is an example (numbers are arbitrary large, you may want try some other values)
\tikzset{external/system call= {pdflatex -save-size=80000
-pool-size=10000000
-extra-mem-top=50000000
-extra-mem-bot=10000000
-main-memory=90000000
\tikzexternalcheckshellescape
-halt-on-error
-interaction=batchmode
-jobname "\image" "\texsource"}}
the classicthesis and arsclassica packages are not really set up for Unicode fonts, and LaTeX does warn you that sans serif is not working,
LaTeX Font Warning: Font shape `TU/iwona/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 65.
(/usr/local/texlive/2021/texmf-dist/tex/latex/microtype/mt-LatinModernRoman.cfg
)
LaTeX Font Warning: Font shape `TU/iwona/b/n' undefined
(Font) using `TU/iwona/m/n' instead on input line 65.
That is the first one saying it can't find iwona so will use latin modern, then the second one saying it can't find bold.
However you can use fontspec to set the sans serif to the OpenType version of iwona then it does set up bold as well
Output from lualatex:
\documentclass[a4paper,headinclude,footinclude]{book}
% document packages
\usepackage{iftex}
\usepackage[english]{babel}
\usepackage[hyphens]{url}
\usepackage{setspace}
\usepackage{graphicx}
\graphicspath{{./chapters/images/}}
\usepackage{titling}
\usepackage[toc,page]{appendix}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[
eulerchapternumbers,
eulermath,
subfig,
beramono,
pdfspacing,
floatperchapter,
]{classicthesis}
\usepackage{arsclassica}
\iftutex
\usepackage{fontspec}
\newfontfamily\abr{Noto Serif}
\newfontfamily\og{Noto Sans Ogham}
\setsansfont{iwona}
\else
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\fi
that fixes the main issue, although arsclassica still has some low level code such as
%************************************************************
% Chapter numbers
%************************************************************
\let\chapterNumber\undefined
\ifct@eulerchapternumbers
\newfont{\chapterNumber}{eurb10 scaled 5000}%
\else
\newfont{\chapterNumber}{pplr9d scaled 5000}%
\fi
which is using internal names and scaling commands to force legacy 8bit fonts, you probably should use the \iftutex
block in the preamble above to use fontspec defined fonts for \chapterNumber
as well.
Best Answer
Let's try a simple document
test.tex
; the packagepdftexcmds
is loaded in order to have\pdf@shellescape
available with all engines.Here's what happens with
pdflatex test
pdflatex test --shell-escape
lualatex test
lualatex test --shell-escape
xelatex test
xelatex test --shell-escape
The execution stops because of
\showthe
, showingin all six invocations (TeX Live 2012 on Mac OS X, but I don't think it's different with other platforms).
If we put
--shell-escape
at its proper place, the execution of any ofpdflatex --shell-escape test
lualatex --shell-escape test
xelatex --shell-escape test
stops showing
This means that the setting of
--shell-escape
can be done only in "infix notation" and that the option has no effect if postfixed.As kindly as usual, Paulo Cereda confirms that, on MiKTeX, options can be specified after the file name for
pdftex
andxetex
, but not forluatex
. As the most common syntax format on other systems is with "infix" options, my opinion is that TikZEdt is wrong in its assumptions.