latex_macros expansion eats spaces when the macro is followed by a digit #11549
Unanswered
hendriktews
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
The space marks the end of the macro name (this comes from TeX). You can use one of the following: \name\ X.or \name{} X. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I believe this is a bug but I am not sure, therefore posting here.
When I process
with
pandoc a.md -o a.pdfwith pandoc version 3.1.11.1 I get a PDF with two lines, where\nameis replaced byA, as expected. However, in the first line there is a space betweenAandXwhile in the second line there is no space betweenAand5. The effect is already visible when translating to LaTeX with-t latex. One gets a space between the expanded macro and a following digit when there is a newline between the macro and the digit in the source.Is it a feature that LaTeX macro expansion deletes all spaces behind a macro when the macro is followed by a digit on the same line?
Beta Was this translation helpful? Give feedback.
All reactions