So I’m searching for a best practices workflow here.
I’ve got a longish paper (11K words) that includes a couple of pictures generated by the LaTeX package Tikz. Let em tell you what I am doing, followed by what I want, if possible, to do.
As it stands, I have a Custom document class set up in the File -> Compile -> LaTeX Options window, which is what I use to basically generate TeX documents. It’s got a moderate set of packages loaded, macros defined, and so forth. I use this for almost all of the TeX I generate from Scrivener.
The current project I am working on uses these Tikz pictures (Tikz is like xypic or pstricks; it draws graphics). Tikz requires loading itself and any special libraries, then assigning any global style options, before the \begin{document} command (so I can’t simply pass those through with Front Matter, I think).
\usepackage{tikz}
\usetikzlibrary{positioning,decorations.pathreplacing,decorations.markings,calc}
\tikzstyle{stage}=[draw, circle, align=center, text width=2.5cm, minimum height=2em]
\tikzstyle{connectR}=[->,thick]
What I Do: I make standalone PDF or PNG of the output in LaTeX, and then I include those graphics files in my Scrivener project. Scrivener does its thing and simply re-uses the graphic.
What I Want: I would like to be able to, for only projects where I use tikz (or whatever package), have the preamble material come straight from Scrivener, saving me from having to remember/monkey around with that piece of the preamble when I move to my TeX editor.
Is this as simple as setting up a Project Compile Format Preset and using that instead of the Global Compile Format Preset? Are there any conflicts or precedences I should be aware of?
Thanks in advance for any/all help.