Resolved: Trouble with scrivauto labels when compiling to LaTeX as txt file

I am having trouble with “Link to Documents”

I am compiling to Txt as LaTeX code template to process next. In the source txt file:

An example. The target is a sub sub section I get a \label of number 35

\subsubsection{UK}
\label{scrivauto:35}
\paragraph{American Express}

and then where I “link to document” using the Scrivener command on selelected where American Express is mentioned, I get a \autoref with the number 36. I expect it to be 35. These numbers assigned by Scriverer, but off by one.

American Express (\autoref{scrivauto:36})

there are a few other document links that are off by one. Not all, just a few. I can’t find the pattern and I can’t find how to resolve.

Any suggestions how to ensure using “Link to Document” gets the correct reference.

[Hope i’m clear with this description]

Replying to own. Figured it out. Section Layout for Paragraph missing the \label field:

Here it is added:

To get this, edited the Section Layout for “paragraph” and copied from SubSubSection (which was working) into Prefix for Paragraph.

As I was posting it occurred to me that I’d figure it out shortly after posting.

1 Like