I use pandoc, pandoc in.tex --latex-engine=xelatex -o out.pdf, and want characters like "𝟙𝟚𝟛ℝ" to be produced from

\let\mathbb\undefined  % delete the command definition
\usepackage{bbold}     % let bbold define its own \mathbb command

I get "⊮⊭⊯ℝ" in my pdf. It produces correct output in html and docx.

Compiled with pandoc-types, texmath 0.9, skylighting

I am sure the problem is having the right font for pdf, in my case. So the right question may be - which font should I use for blackboard bold numbers for pdf for pandoc. Keeping in mind that pdflatex has the fonts somehow.

  • 2
    You need another font, see e.g. tex.stackexchange.com/questions/291329/… – Ulrike Fischer Sep 4 '17 at 19:44
  • @Ulrike, I tried, but even the example from that answer does not produce anything reasonable when I run it via pandoc: ! Undefined control sequence. l.61 \amsmathbb – Vlad Patryshev Sep 5 '17 at 0:14
  • What does pdffonts command say for the pandoc version, and what does it say for the pdflatex version? – Boris Sep 5 '17 at 1:42
  • By the way, does pandoc produce TeX log? Can you post it? – Boris Sep 5 '17 at 1:43
  • @Boris, thank you; so far I'm clueless how do I run pdffonts command. I did produce a log, using pandoc's --verbose; it's about 16k. It also refers a log file, but by the time it finishes, the file is gone. – Vlad Patryshev Sep 5 '17 at 2:40

With a little help from my friends, found a solution. First, change the pandoc template. E.g. can use this one: https://github.com/Wandmalfarbe/pandoc-latex-template

Will have to create the folder for templates, and then cp ~/Downloads/eisvogel.latex ~/.pandoc/templates/

It will work with the following command: pandoc in.tex --latex-engine=xelatex --template eisvogel -o out.pdf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.