6

When I try to convert a file to pdf format with pandoc I receive this message:

Error producing PDF.
! LaTeX Error: File `xcolor.sty' not found.

Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)

Enter file name: ! Emergency stop. <read *>

l.36 \IfFileExists

Does anyone know how to acquire the xcolor.sty file or some other way of fixing this? I'm using Linux.

2 Answers2

3

The workaround I wound up having to use (so far) was to install the package weasyprint and use the argument --pdf-engine=weasyprint. Nothing else seemed to work.

2

Installing these:

sudo apt install texlive-latex-base texlive-fonts-recommended texlive-latex-extra

Fixed the issue for me.

Raslanove
  • 121