Hello wonderful people who make Scrivener,
I think I have found a bug in Scrivener in regards to the MMD - LaTeX compile. I am using the latest version of Scrivener, version 2.3.1 (20025).
I’ve written a technical document with an image and a reference to that image as follows (apologies for writing it in Dutch):
[code]In dit hoofdstuk bespreken we globaal de HGW-cyclus op groepsniveau. Deze doorlopen we drie keer per schooljaar. Binnen elke cyclus vallen twee periodes, zie. Om de cyclus met de groep te volgen zijn er twee documenten van belang: het groepsoverzicht & de periode planning. Beide oefenen invloed op elkaar uit en lopen in elkaar over.
![Periodeplanning in combinatie met Groepsoverzichten. De H staat voor vakantie.][Planning]
[Planning]: Planningen.png width=400px
[/code]
When I compile to LaTeX, the image gets transferred over (I’ve made Planningen.png into a Scrivener Link) and the correct \autoref syntax gets added by Scrivener as follows:
[code]In dit hoofdstuk bespreken we globaal de HGW-cyclus op groepsniveau. Deze doorlopen we drie keer per schooljaar. Binnen elke cyclus vallen twee periodes, zie (\autoref{planning}). Om de cyclus met de groep te volgen zijn er twee documenten van belang: \textbf{het groepsoverzicht} & \textbf{de periode planning}. Beide oefenen invloed op elkaar uit en lopen in elkaar over.
\begin{figure}[htbp]
\centering
\includegraphics[keepaspectratio,width=400pt,height=0.75\textheight]{Planningen.png}
\caption{Periodeplanning in combinatie met Groepsoverzichten. De H staat voor vakantie.}
\label{planning}
\end{figure}[/code]
As you can see, the autoref tag is suddenly within brackets (), thus breaking the script.
When I manually remove these in TeXShop, the reference gets generated just fine.
I’ve tried removing the () in Scrivener, which then effectively broke the MMD syntax.
I am new to the whole Scrivener - MMD - LaTeX workflow, but I do believe that these brackets are not my doing but are in fact a result of Scrivener.