1

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

\documentclass{article}
\usepackage[utopia]{mathdesign}
\let\mathbb\undefined  % delete the command definition
\usepackage{bbold}     % let bbold define its own \mathbb command
\begin{document}
$\mathbb{123R}$
\end{document}

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

pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4

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.

7
  • 2
    You need another font, see e.g. tex.stackexchange.com/questions/291329/… Commented Sep 4, 2017 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 Commented Sep 5, 2017 at 0:14
  • What does pdffonts command say for the pandoc version, and what does it say for the pdflatex version? Commented Sep 5, 2017 at 1:42
  • By the way, does pandoc produce TeX log? Can you post it? Commented Sep 5, 2017 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. Commented Sep 5, 2017 at 2:40

1 Answer 1

1

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.