uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
128 stars 10 forks source link

ellipsis renders weirdly in LaTeX #43

Closed joshuahhh closed 1 year ago

joshuahhh commented 1 year ago

... in md (three characters) turns into in LaTeX source (single character) turns into Screen Shot 2022-09-15 at 9 57 00 AM in LaTeX output.

jheer commented 1 year ago

I did a quick check and Pandoc automatically parses ... into unicode \8230 / horizontal ellipsis. One weakness of the Living Papers latex compiler is handling (or more aptly, current non-handling) of unicode, which I would love to handle in a robust and generalized manner. But for basic common things like ellipses a lookup table should suffice for now.

If you want to patch your fork in the meantime, simply add a case at this line: https://github.com/uwdata/living-papers-testbed/blob/main/src/output/latex/tex-format.js#L39

You can have map to \ldots{}.

joshuahhh commented 1 year ago

FYI: I've been marking issues as "priority: medium" to indicate that I've been able to route around them for the purposes of my paper (though I expect they'll cause issues for future papers).

jheer commented 1 year ago

Fixed via lookup table.