I have a scrivener document which includes some of my latex. (eventually this will just be the front matter which I don’t want to be included in the compile format–because it will change from book to book. Right now it’s still in the testing phase)
\begin{document}
\frontmatter
\pagestyle{empty}
% Half-Title
\vspace*{144pt}
\begin{center}
{\LARGE \mytitle}
\end{center}
\cleartorecto
% Title Page
That document is a section type I have labelled “latex”, and is associated in my mmd–>latex compile format with a section layout which merely adds [code]
[/code] before the contents and [code]
[/code] after the contents.
When I compile to latex I get a .tex file which contains:
[code]```{=latex}
\textbackslash{}begin{document}
\textbackslash{}frontmatter
\textbackslash{}pagestyle{empty}
% Half-Title
\textbackslash{}vspace*{144pt}
\textbackslash{}begin{center}
{\textbackslash{}LARGE \textbackslash{}mytitle}
\textbackslash{}end{center}
\textbackslash{}cleartorecto
% Title Page[/code]
which, of course, doesn’t compile properly.
If I compile to mmd, I get:
\`\`\`\{=latex\}
\\begin\{document\}
\\frontmatter
\\pagestyle\{empty\}
% Half-Title
\\vspace\*\{144pt\}
\\begin\{center\}
\{\\LARGE \\mytitle\}
\\end\{center\}
\\cleartorecto
% Title Page
Since I don’t know the inner workings of the compile process or of mmd, I don’t know if I’ve included enough information here.
I’m either missing something basic about how Scrivener handles raw latex, or there’s a problem here. I’m hoping it’s the former…