Pandoc: Markdown to PDF

Step-by-Step descriptions of how to do things.

Pandoc: Markdown to PDF

Postby ^rooker » Sun Oct 29, 2017 1:00 am

The command is this:
Code: Select all
pandoc -so output.pdf input.md

Where you replace "output.pdf" and "input.md" with your destination and source file respectively.

In order to generate PDF documents from Markdown (.md) files, you need the following packages installed:
(This list should work for Debian-based GNU/Linux systems. Tested on Xubuntu 16.04.3)

First of all the conversion tool "Pandoc":
Code: Select all
pandoc


Pandoc requires "pdflatex" to generate PDFs. You need at least these packages to satifsy prerequisites:
Code: Select all
texlive-latex-base texlive-fonts-recommended
  • 0

Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
 
Posts: 1444
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to HowTo's

Who is online

Users browsing this forum: No registered users and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: No registered users and 17 guests

cron
Reputation System ©'