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
When converting from markdown to LaTeX the following snippet:
---
header-includes:
- \usepackage{tgtermes}
---
this is the line block:
| 0 - A
| 1 - B
| 2 - C
| 3 - D
it produces the following output:
this is the line block:
~~~0 - A\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}1 - B\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}2 - C\\
\hspace*{0.333em}\hspace*{0.333em}\hspace*{0.333em}3 - D
When converting the output to PDF, it seems that with certain fonts the first row of the line block becomes less indented than the rest of the lines, caused by the ~ instead of \hspace. When I manually replace all ~ with \hspace*{0.333em}, all lines in the block are indented as expected.
pandoc 3.1.6.2
The text was updated successfully, but these errors were encountered:
Background (from code comments on inlineListToLaTeX):
-- nonbreaking spaces (~) in LaTeX don't work after line breaks,-- so we turn nbsps after hard breaks to \hspace commands.-- this is mostly used in verse.
When converting from markdown to LaTeX the following snippet:
it produces the following output:
When converting the output to PDF, it seems that with certain fonts the first row of the line block becomes less indented than the rest of the lines, caused by the
~
instead of\hspace
. When I manually replace all~
with\hspace*{0.333em}
, all lines in the block are indented as expected.pandoc 3.1.6.2
The text was updated successfully, but these errors were encountered: