You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered another instance where in latex a new paragraph is started (and hence text appears indented) which does not match the output on the web. As with display equations, it would be good if the user could control this, i.e.:
if no newline is present after a code block, don't start a new paragraph in latex
if there is a newline is present after a code block, DO start a new paragraph
The problem I believe is that a newline is always inserted in latex, which corresponds to case 2 - even if the user does not have a newline.
Test case
Here is a test case that is problematic:
Markdown source: (with two quotes standing in for three)
Above we created an instance of the `gtsam.DiscreteDistribution` class. As with any GTSAM class, you can type
``python
help(gtsam.DiscreteDistribution)
``
to get documentation on its constructors and methods.
Web rendered:
PDF Rendered:
Latex source(with erroneous extra newline):
Above we created an instance of the \texttt{gtsam.DiscreteDistribution} class. As with any GTSAM class, you can type
\begin{minted}[breaklines]{python}
help(gtsam.DiscreteDistribution)
\end{minted}
to get documentation on its constructors and methods. In particular, we called the constructor
Proposed Fix
I believe the latex should be
Above we created an instance of the \texttt{gtsam.DiscreteDistribution} class. As with any GTSAM class, you can type
\begin{minted}[breaklines]{python}
help(gtsam.DiscreteDistribution)
\end{minted}
to get documentation on its constructors and methods. In particular, we called the constructor
The practice of inserting newlines before and after environments like these creates "new paragraph" issues. Should be fixed for minted, listings, verbatim etc., I think.
The text was updated successfully, but these errors were encountered:
As an aside, something similar is happening with lists in markdown. This markdown
We assign labels to these actions as follows:
* $a_1$: put in glass bin
* $a_2$: put in metal bin
* $a_3$: put in mixed paper bin
* $a_4$: nop (let the object continue, unsorted)
and each of these actions can be applied at any stage of execution.
yields a new paragraph in latex. Here the newline is needed in the source, because otherwise the list is not terminated - which I guess is standard in markdown. So maybe a newline should only be inserted in latex if two newlines are present in the source.
Description
I encountered another instance where in latex a new paragraph is started (and hence text appears indented) which does not match the output on the web. As with display equations, it would be good if the user could control this, i.e.:
The problem I believe is that a newline is always inserted in latex, which corresponds to case 2 - even if the user does not have a newline.
Test case
Here is a test case that is problematic:
Markdown source: (with two quotes standing in for three)
Web rendered:
PDF Rendered:
Latex source(with erroneous extra newline):
Proposed Fix
I believe the latex should be
The practice of inserting newlines before and after environments like these creates "new paragraph" issues. Should be fixed for minted, listings, verbatim etc., I think.
The text was updated successfully, but these errors were encountered: