On MacOS 12.6.9, I try to convert a Markdown file to PDF. For this, I'm using
pandoc 3.1.2
, installed with Homebrew. There are problems converting the characters ∧
and ∨
, which I use for expressing logical formulas. For instance, with this file utf.md
X ∧ Y ∨ Z
which in hex (xxd utf.md
) would be
5820 e288 a720 5920 e288 a820 5a0a 0a
and LANG
being set to en_GB.UTF-8
, the command pandoc -s -o utf.pdf utf.md
produces the error message
Error producing PDF.
! LaTeX Error: Unicode character ∧ (U+2227)
not set up for use with LaTeX.
Googling for the problem, I found the suggestion to use _xelatex_ as LaTeX engine. So I tried
pandoc -s --pdf-engine=xelatex -o utf.pdf utf.md
This resulted in
[WARNING] Missing character: There is no ∧ (U+2227) (U+2227) in font [lmroman10-regular]:mapping=t
[WARNING] Missing character: There is no ∨ (U+2228) (U+2228) in font [lmroman10-regular]:mapping=t
and, not surprisingly, the generated pdf file did not include those two characters. I conclude that the font (_lmroman10-regular_) does not include glyphs for these characters.
No my question is: What font would be suitable here, and how do I specify that font for pandoc
?
**UPDATE**
About the font reported by Pandoc (_lmroman10_): I looked at the fonts installed on my Mac (using the the application _Font Book_), and there is no font named _lmroman_, so I'm puzzled where pandoc gets this font from.
Asked by user1934428
(1458 rep)
Sep 15, 2023, 10:44 AM
Last activity: Jun 13, 2024, 12:01 AM
Last activity: Jun 13, 2024, 12:01 AM