Question using Scrivener with Latex

Hello :slight_smile: ,

at the moment I am writing my bachelor thesis with latex. Now I have a mac and Scrivener wich iIreally really like. So I am thinking about changing to Scrivener for writing my thesis. But how can I do this easily?
At the moment I have several .tex-Files. For example one for all the options and the wrapper and then one content file. This content file then includes all the chapters.
So it would be really great if i could use Scrivener just to write the different content .tex-Files but using my one wrapper file. Is this possible? I just tried the Multimarkdown->Latex compilation and all i get is one .tex-File wich generates all options and the whole wrapper. What I want would be that every note i create in Scrivener is compiled to a single .tex-File as a own chapter. Then i could include this in my own content file and it would be perfect.

So is this possible and if yes how can i do this?

Thanks in advance :smiley:

You might consider trying MMD3 instead. You’ll want to download the installer, and the Mac support package as well, which is what you’ll need to fool Scrivener into using the new code. The advantage of the new system is that it works more readily with a typical LaTeX setup like you’ve got. It produces content without the preamble and all that, by default, instead of by exception. For instance, you could have your preamble .tex file set up in ~/Library/texmf/tex/latex/mmd and use the “LaTeX Input” meta-data field to call it. This will put an \input in the appropriate spot of the compiled document. Then you can focus strictly on content in the project.

If you’d rather avoid the simplified markup system and just use LaTeX directly, I’d recommend searching the MMD board here for tips on straight LaTeX workflows. There are a number of really great tips that can make this easier, such as using the compiler’s depth-based formatting rules to insert header code around title names based on their outline structure. A folder at the top can end up like “\chapter{folder name}” while a file two steps below it could end up as “\subsection{section file name}”. There are other tricks like using the Replacements panel to make your own expansion macros for commonly typed in LaTeX. So that is definitely a feasible route. Either way would have you use Scrivener more as a plain-text editor; the LaTeX workflow even more so (there are a few things Scrivener does for MMD users by way of syntax generation).