unicode and pdf documentation build failure

22 views
Skip to first unread message

Travis Scrimshaw

unread,
Jun 2, 2020, 11:24:52 PM6/2/20
to sage-devel
Hi everyone,
   I have a patch with some unicode that uses a character (U+26AC, ⚬) that is not recognized by the pdf docbuild. Is there some way I can add an option for the pdf docbuilder to translate this unicode character into a latex symbol so the PDF doc will build? Or is the best option just to suppress the output?

Thanks,
Travis

John H Palmieri

unread,
Jun 3, 2020, 1:28:49 AM6/3/20
to sage-devel
Hi Travis,

Can you add a command to `latex_elements['preamble']` in src/sage/docs/conf.py`? There are a lot of unicode characters defined there already. \DeclareUnicodeCharacter{26AC}{\circ} or something like that?

Travis Scrimshaw

unread,
Jun 3, 2020, 1:52:07 AM6/3/20
to sage-devel
Hi John,
   Thank you, that was precisely what I was looking for. I could not remember how to do that.

Best,
Travis
Reply all
Reply to author
Forward
0 new messages