I am trying to use Open Sans with pandoc but always get the Following error when I try to generate the PDF using XeLaTeX:
xdvipdfmx:fatal: This font using the "seac" command for accented characters...
Output file removed.
I have installed Open Sans directly from Google Fonts.
YAML Meta:
---
papersize: b5
geometry:
- top=0.8in
- right=1.4in
- bottom=0.8in
- left=1.4in
linestretch: 1.5
fontsize: 12pt
mainfont: Open Sans
---
Headers:
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\definecolor{red}{HTML}{B53441}
\hypersetup{
colorlinks=true,
urlcolor=red
}
The command I use to generate the File via pandoc:
pandoc -o test.pdf -H headers.tex yaml.txt Book.md --toc --toc-depth=2 --css epub.css --epub-cover-image=Cover.jpg --pdf-engine ~/bin/xelatex
If I remove the mainfont line from the yaml meta and add the latex font headers instead I get a different error:
Error producing PDF.
! Dimension too large.
These are the headers which cause the error:
\usepackage[default,scale=0.95]{opensans}
\usepackage[T1]{fontenc}
I am not very familiar with LaTeX so this error might be caused because I am using a definition intented for pdflatex with xelatex