Why an extra 'item' in compiler output?

I am struggling with converting a specific paragraph format in a document to a LaTeX format.

I have defined a Paragraph+Character style called Outcome.

I have defined the Outcome style for the compiler.

Prefix: \begin{SecOutcomes}
Suffix: (return)\end{SecOutcomes}
Paragraph Prefix: \item(space)
Paragraph Suffix: (return)

When I compile, I get an extra \item in the output.

\begin{SecOutcomes}\item 
\item Decide whether you are a scientist or an engineer at heart.
\end{SecOutcomes}

I have played around with variations on the location of the (return), all to no avail.

Where should I make changes to avoid this issue?


JJW

Your prefix should have a return too (⌥↩ to get it into the text field), the UI here is hard to visualise as the display is a single line only, but you need:

Prefix: (return)\begin{SecOutcomes}(return)

You don’t need (return) in the Paragraph suffix unless you want blank lines between items. I put a (return) before prefix just in case (it is often needed for markdown to ensure blank lines before blocks), but that is perhaps not essenstial for you. Doing that I get:

Lorum ipsum.


\begin{SecOutcomes}
\item Decide whether you are a scientist or an engineer at heart.
\end{SecOutcomes}


Lorum Ipsum

It seems that the internal style must not be a Paragraph + Character style, only a Paragraph style. Otherwise, the compiler seems to generate an extra \item(return) tag for each paragraph.

This works for the compiler directive.

Prefix: \begin{SecOutcomes}(return)
Suffix: (return)\end{SecOutcomes}
Paragraph Prefix: \item(space)
Paragraph Suffix: 

With the Scrivener input as below, the results follow.

LaTeX source …

\begin{SecOutcomes}
\item Decide whether you are a scientist or an engineer at heart.
\item Make a small contribution to science.
\end{SecOutcomes}

PDF output …

Thanks for the suggestion.


JJW

That is not my experience, either editor style works equivalently in the compiler for me (though I was testing with multimarkdown output)…