Closed dpo closed 1 year ago
Can you strip the yaml down to minimal, please?
Sorry. I modified the post above to reflect my non-default settings.
The culprit seems to be
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
sentencesBeginWith:
other: "\$|\\("
When I start with
By construction, \(\phi_{k,i}(x) = \phi_{k,i}^>(x) + \phi_{k,i}^<(x)\), \(\{\phi_{k,i}^>(x)\} \downarrow 0\) and \(\{\phi_{k,i}^<(x)\} \uparrow 0\) as \(k \to \infty\) for all \(x > 0\).
and the settings
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
sentencesBeginWith:
other: "\$|\\("
then I receive
By construction, \(\phi_{k,i}(x) = \phi_{k,i}^>(x) + \phi_{k,i}^<(x)\), \(\{\phi_{k,i}^>(x)\} \downarrow 0\) and \(\{\phi_{k,i}^<(x)\} \uparrow 0\) as \(k \to \infty\) for all \(x > 0\).
Your example does not demonstrate the problem. Please see I've just been asked to write a minimal working example (MWE), what is that?] and ensure that code you post is minimal and demonstrates the problem.
Sorry. It seems the behavior occurs because of surrounding LaTeX code.
I boiled down the LaTeX code to this:
\begin{proof}
Define
\[
x = 1.
\]
By construction, \(\phi_{k,i}(x) = \phi_{k,i}^>(x) + \phi_{k,i}^<(x)\).
\end{proof}
With
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
sentencesBeginWith:
other: "\$|\\("
I obtain
\begin{proof}
Define \[ x = 1.
\]
By construction, \(\phi_{k,i}
(x) = \phi_{k,i}^>(x) + \phi_{k,i}^<(x)\).
\end{proof}
Thanks for more details.
Using
modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 1
sentencesBeginWith:
other: "\$|\\\\\("
gives
\begin{proof}
Define \[ x = 1.
\]
By construction, \(\phi_{k,i}(x) = \phi_{k,i}^>(x) + \phi_{k,i}^<(x)\).
\end{proof}
I hope this as you would like.
In your YAML you've specified
other: "\$|\\("
This is translated to mean "either $ or (". Note that "\(" translates to "(".
We modify it to be
other: "\$|\\\\\("
which is translated to mean "either $ or \(". Note that "\\" translates to "\" so when followed by "(" it translates literally into "\(".
Thank you!
Please provide the following when posting an issue:
original .tex code
yaml settings
actual/given output
See diff above.
desired or expected output
I would not expect a linebreak before
(x)
.