# tikz-feynman and standalone [duplicate]

This question already has an answer here:

Unfortunately, tikz-feynman forces the use of LuaLatex to compile. However, I can't find a way to produce nice images to use in another document when compiling with LuaLatex. It seems that one cannot use documentclass{standalone} with LuaLatex ('Standalone' TikZ pictures). Similarly, the export method proposed in export Tikz figures to PDF also doesn't work. How can I produce a tikz image in one file to include in another one if I'm using LuaLatex to compile the tikz image (and pdflatex to compile the larger file that should include these images)?

## marked as duplicate by Troy, barbara beeton, Mensch, Torbjørn T., CarLaTeXOct 2 '17 at 16:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

• Add `\RequirePackage{luatex85}` right before `\documentclass{standalone}`, and it should work. – Torbjørn T. Sep 29 '17 at 16:45
• See also tex.stackexchange.com/questions/315025/… (I assume that is the problem you encountered.) – Torbjørn T. Sep 29 '17 at 16:55
• If you want to use externalization, you can set `\tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}`. Then LuaLaTeX will be called to compile the pictures instead of pdfLaTeX. (See manual vor3.0.1a section 50.4 on page 609.) – Mike Sep 29 '17 at 20:49
• @Torbjørn, thanks that solves it. Indeed that question is the same and already deals with the issue. I think this question should be marked as a duplicate of the question you mentioned (I flagged it as such). – Kvothe Oct 2 '17 at 14:42