jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
192 stars 62 forks source link

Mishandling of certain characters in doc.title in PDF exports #1512

Open nthiery opened 2 weeks ago

nthiery commented 2 weeks ago

I have a markdown document with a title containing less usual characters:

# TD 1 : Notion d'e'a«»algorithme

Then, in the pdf export (and in -doc.title-), the unbreakable space before the : is replaced by ă, single quotes are ignored, the « and »characters are replaced respectively by ń and ż. If instead the title is specified by a title metadata, then the single quotes are not ignored; the other characters are replaced as above.

The files are all encoded in UTF-8, and the template uses:

\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc}    % use 8-bit T1 fonts

I can try to produce a minimal example if helpful.

rowanc1 commented 1 week ago

Yes - a minimal example would be helpful and would inform our test cases. Even if it is just the title in markdown and what you would expect in latex.

Currently our titles are not full text, which may be part of the problem. We should be doing a better job at some of these conversions though, which is a little surprising. If you give us a few examples we will make them work. :)