Closed CLRafaelR closed 4 years ago
長いっすね...。YAML部分って再現に必要です?
あぁ再現できました
あぁ、てっとり速い解決策としては tex を埋め込むとかでも良い気がしますが
@kishiyamat
Inputting raw LaTeX commands on Rmd, as you mentioned, is not desirable for me in two senses: 1. that's what I'm always doing and then we cannot enjoy the easy, readable/writable notation of markdown; 2. the gb4e commands are not rendered when we want to produce HTML file. For these reasons, I want to stick to pangloss
' markdown notation here.
Resolved with #3c6f4f3
@kisiyamat
Main issue
I'm writing an (R)markdown file with some interlinear gloss and trying to produce a PDF. In the (R)markdown file, there is also some examples coded with the markdown-native numbered example lists, as shown below:
However,
pangloss
overkills this numbered example lists and the notation above (i.e.(@vanish2)
) would not be rendered into a LaTeX and PDF file.To prevent this malfunction, it is possible to add
\
to the second and third line of the gloss environment. However, this leaves an undesirable pair of brackets in the third line in the PDF file.I suspect that l.21
if text[:4] == '@ex:':
inpangloss.py
has something to do with the issue, since from this linepangloss
modifies the md file.Do you have any suggestion to avoid this issue?
MWE
Secondary output (md)
Output (PDF)
Output (LaTeX)