[MacPorts] #48971: pandoc fails to convert Markdown to PDF due to missing dependencies
MacPorts
noreply at macports.org
Fri Sep 25 01:17:47 PDT 2015
#48971: pandoc fails to convert Markdown to PDF due to missing dependencies
-------------------------------+--------------------------------
Reporter: markus.mahlberg@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port:
-------------------------------+--------------------------------
When converting markdown to PDF, pandoc threw an error:
{{{
machine:Documents markus$ pandoc -o backlog_srpt_24_09_15.pdf
backlog_srpt_24_09_15.md
! LaTeX Error: File `lmodern.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.3 \usepackage
pandoc: Error producing PDF from TeX source
}}}
So I had to install `texlive-fonts-recommended`, after which the
conversion worked flawless.
However, since pandoc uses `pdflatex` an additional dependency to
`texlive-latex` is required, which I had installed but is not a dependency
of `texlive-fonts-recommended`.
Furthermore, the [http://pandoc.org/README.html#creating-a-pdf pandoc
documentation for creating PDFs] states that the following TeX packages
are required:
If necessary, I can create a mapping to the ports providing the listed
packages.
Additionally, pandoc provides several options for creating PDFs using
different flavors of LaTeX binaries, namely pdflatex, luatex and xelatex.
luatex and xelatex would need additional dependencies. I am not sure
wether this warrants special port variants.
--
Ticket URL: <https://trac.macports.org/ticket/48971>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list