[ad_1]
On MacOS 12.6.9, I attempt to convert a Markdown file to PDF. For this, I am utilizing pandoc 3.1.2
, put in with Homebrew. There are issues changing the characters ∧
and ∨
, which I take advantage of for expressing logical formulation. As an illustration, with this file utf.md
X ∧ Y ∨ Z
which in hex (xxd utf.md
) can 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 arrange to be used with LaTeX.
Googling for the issue, I discovered the suggestion to make use of xelatex as LaTeX engine. So I attempted
pandoc -s --pdf-engine=xelatex -o utf.pdf utf.md
This resulted in
[WARNING] Lacking character: There is no such thing as a ∧ (U+2227) (U+2227) in font [lmroman10-regular]:mapping=t
[WARNING] Lacking character: There is no such thing as a ∨ (U+2228) (U+2228) in font [lmroman10-regular]:mapping=t
and, not surprisingly, the generated pdf file didn’t embrace these two characters. I conclude that the font (lmroman10-regular) doesn’t embrace glyphs for these characters.
No my query is: What font can be appropriate right here, and the way do I specify that font for pandoc
?
UPDATE
In regards to the font reported by Pandoc (lmroman10): I appeared on the fonts put in on my Mac (utilizing the the appliance Font Ebook), and there’s no font named lmroman, so I am puzzled the place pandoc will get this font from.
[ad_2]