I have a markdown document with the ⚠ (U+26A0) symbol in it.
I'm using pandoc 18.104.22.168 on Ubuntu 18.04 as this:
pandoc -f markdown -t pdf -H preamble.tex -c style.css --pdf-engine=xelatex -o file.pdf file.md
Here is the man explaining the options: https://pandoc.org/MANUAL.html
preamble.tex contains the following:
And I encounter this error:
[WARNING] Missing character: There is no ⚠ (U+26A0) in font [lmroman10-regular]:mapping=tex-text;!
I know that I can use
\danger from the fourier package, and it actually works, but I need to generate both an HTML5 page (in that case, the
\danger is obviously not recognized) out of the markdown document and a PDF file, without touching the markdown content itself each time I have to switch the output formats.
How could I use the direct ⚠ symbol so that it is actually rendered in my pdf using pandoc with
--pdf-engine=xelatex? Is there any font with this symbol included?
Notice: if I omit the
--pdf-engine=xelatex option, this is the error:
Error producing PDF. ! Package inputenc Error: Unicode char ⚠ (U+26A0) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.1 ⚠ Try running pandoc with --pdf-engine=xelatex.
Here is the content of
# Chapter 1 Hello World ⚠ !