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 found that PDF compilation via LaTeX halts when judgeMax, the character/word used for the grammaticality/acceptability judgement whose number of characters are the largest in the ex environment, contains one of the LaTeX's meta-characters such as #, % or &. So, the following two markdown examples are not properly processed in the compilation procedure and throw an error: ! Illegal parameter number in definition of \@jwidth.
::: {.ex #grammaticality-judgement}
^# I'm not sure this is grammatical.
:::
or
::: {.ex #grammaticality-judgement}
a. ^# I'm not sure this is grammatical.
a. This is grammatical.
:::
I also added a new "lazy" example-coding possibility, in which you can make subentries (with letters) by just typing dashed (markdown lists). It will insert the letters anyway :-)
I found that PDF compilation via LaTeX halts when
judgeMax
, the character/word used for the grammaticality/acceptability judgement whose number of characters are the largest in theex
environment, contains one of the LaTeX's meta-characters such as#
,%
or&
. So, the following two markdown examples are not properly processed in the compilation procedure and throw an error:! Illegal parameter number in definition of \@jwidth.
or
I suspect that the line in
texMakeGb4e
function and the line intexMakeLangsci
function render the characters like#
,%
or&
to LaTeX as they are (i.e. without escaping them) and that this causes the above-mentioned error.Those lines can be replaced with the following lua command (I verified this works in my environment):
Would you mind considering and verifying this patch?
Environment
pandoc-ling: the latest version as of 2021/02/24
pandoc: v2.11.4
OS: Windows 10 x64 (build 19042)
The text was updated successfully, but these errors were encountered: