Dear Colleagues,
I could use some advice in restoring my Scrivener-MMD-LaTeX workflow, which got messed up when I recently updated to Scrivener 2.3 and MMD3.
Under my old arrangement (earlier version of Scriv. and MMD2), I wrote my LaTeX content files in Scrivener, using a fair amount of LaTeX code. If I wanted to code a table, figure, or other big chunk of code (usually several lines), I would enclose it in <!- -->. When compiling, I added the LaTeX XSLT line to the metadata, referring it to latex-snippet.xslt. The result of the compilation process is that it would produce a clean content.tex file, wherein all my LaTeX code (including natbib \citep{} commands, etc.) came through cleanly and all Scrivener footnotes were converted correctly into LaTeX footnotes. Then I would set up a LaTeX structure file which contained the preamble and everything else, while calling my Scrivener-MMD compiled content.tex file using the \include{content} command. This allowed me to enjoy Scrivener as my writing environment while being able to tweak LaTeX formatting without having to re-compile all the time.
That happy bubble burst when I updated Scrivener and MMD after some time away from writing. Now when I try to compile in Scrivener, all of the LaTeX commands in my content file get messed up, as commands like \citep{Kitschelt:1992bg} get converted to \textbackslash{}citep{Kitschelt:1992bg}.
My first solution was to enclose the whole document in <!- --> to protect the LaTeX commands within. That solved the problem of converting \ to \textbackslash but came at the cost of the footnotes, which were no longer processed correctly. I suppose I could go through and manually recode the footnotes using \footnote{} rather than Scrivener’s footnote tool, but I’d rather not have to.
So, wondering if anyone could offer some advice in getting me back to where I was before things went haywire: cleanly passing snippets of unmolested LaTeX code using Scrivener & MMD. Any help would be GREATLY appreciated!
For the record, I’m using Mac OS 10.6.8, Scrivener 2.3.1, and MMD 3.7 (including the additional MMD 3.7 support files)
Thanks,
Rob