Hi, when trying to create an image by the attached code (test.org), the LaTeX run fails because the interim code contains both pdflatex and luatex specific usepackage commands fontspec, inputenc, and fontenc). The code is supposed to export a LaTeX-tikz to png using the imagemagick header options (as described in the ob-latex documentation of worg). I get no error when I remove the imagemagick header line (but also unusable output). According to my bisect the first commit this happens is: a4a880d1f99b353311309d6348d02b99b142b911 is the first bad commit commit a4a880d1f99b353311309d6348d02b99b142b911 Author: Pedro A. Aranda Gutierrez Date: Sun Jan 28 17:51:23 2024 +0100 org-latex-default-packages-alist: Refine packages for font management * lisp/org.el (org-latex-default-packages-alist): Change to refine font management depending on the latex compiler. Differentiate between pdflatex and lualatex/xetex packages for font management. lualatex/xetex should use fontspec instead of fontenc/inputenc. When using fontspec, you need to load amsmath before fontspec and you don't need amssymb. lisp/org.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) I also attached the interim LaTeX file, the log file of the LaTeX run and the contents of the *Org PDF LaTeX Output* buffer. Thanks for any help. Best regards Robert