Questions tagged [pandoc]

Questions about Pandoc, a free and open-source software document converter.

Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. Pandoc can convert between numerous markup and word processing formats, including, but not limited to, various flavors of Markdown, HTML, LaTeX and Word docx.

85 questions
45
votes
3 answers

correctly sizing PNG images in markdown with pandoc for html/pdf/docx

I am trying to use markdown with pandoc to convert a single document into html, pdf, and docx. It's an extremely simple document containing only math-less text and a few images. The images are in PNG format. I include an image using this in…
user46976
  • 1,428
  • 3
  • 19
  • 28
22
votes
4 answers

Getting chapters to start on a new page in a pandoc-generated PDF

%Title %Author #Header 1 Lots of words. #Header 2 More words. ##Level 2 header The above text can be turned into an EPUB file for e-readers with pandoc -o output.epub input.mkd, and it can be converted to PDF with pandoc -o output.pdf…
evilsoup
  • 13,097
  • 3
  • 59
  • 80
17
votes
2 answers

Markdown to LaTeX conversion with a custom preamble using Pandoc

I know that I can use the -H or --include-in-header commands to include a custom preamble in the generated output. The problem is now that Pandoc includes my preamble but puts another preamble in front of…
John
  • 171
  • 1
  • 1
  • 3
10
votes
2 answers

Rendering PDF from Markdown file with literal emoji characters using Pandoc

I'd like to convert markdown text like: This is a smile To a PDF with the emoji on it. To be clear, I want to be able to insert the emoji character itself in the source text, not something like :smile:. How can I do this with Pandoc?
agentofuser
  • 7,247
  • 11
  • 38
  • 34
8
votes
1 answer

Generate table of contents with links for GitHub markdown with pandoc

How to generate table of contents with links for GitHub markdown with pandoc? I tried pandoc -f markdown_github --toc -s -S README.md -o new.md It does create a table of contents but it has no link to sections. I'm trying to generate a table of…
Franck Dernoncourt
  • 20,384
  • 48
  • 186
  • 322
8
votes
3 answers

Word count for markdown?

Is there a way to get a word count of natural language words in Markdown (or better, Pandoc Markdown), via the command line? It's possible to just use wc to get a very rough estimate, but wc is naive, and counts anything surrounded by white space…
naught101
  • 1,373
  • 1
  • 13
  • 25
6
votes
2 answers

Why would RTF files created with Pandoc be opened as plain text?

I'm experimenting with Pandoc, in particular the markdown to RTF function. When I run the converter, the resulting RTF is opened in both Word and OpenOffice as plain text (where the text looks like RTF, but isn't treated as RTF). Converting to HTML…
Ash
  • 2,984
  • 4
  • 27
  • 30
6
votes
1 answer

Make pandoc ignore css style class

I'm trying to convert an HTML file to Markdown using Pandoc, but I'm having a hard time finding the correct options. I would like convert the entire HTML file to the simplest Markdown possible. That is, no
tags and no CSS styling in curly…
Seanny123
  • 361
  • 1
  • 4
  • 20
6
votes
1 answer

Compile PDF book from multiple Markdown files

I have a folder structure like this, with recipe .md files in directories according to theme: Recipes |- Mains | |- recipe1.md | |- recipe2.md |- Desserts |- recipe3.md |- recipe4.md How can I compile all these…
John L. Godlee
  • 240
  • 2
  • 7
5
votes
2 answers

Using Pandoc to convert from markdown to markdown with references / What does "reference with no printed form" mean?

I want to write a markdown file with references @ref (and a BibTeX database). When sending the file around, it should be converted to a stand alone markdown file containing rendered references. The rendered reference key should not be numeric, but…
koppor
  • 546
  • 2
  • 6
  • 19
4
votes
2 answers

How to use Pdflatex with Pandoc?

I'm using Pandoc to convert my markdown files to different formats including html and docx. With PDF though, I get the message pdflatex not found even though it was installed and I can even call it directly from Cygwin. Why is Pandoc not detecting…
ahmed
  • 537
  • 2
  • 6
  • 17
4
votes
1 answer

How do I set pandoc as a 'compiler' for markdown files in SciTE?

I've begun writing stuff in markdown lately, and edit my files in SciTE. I work in Windows, so this means I'm simultaneously running a Windows command prompt to generate output files at various stages of my writing process. I mostly output my files…
4
votes
0 answers

Creating Text Style with Colors using Pandoc to Docx Converter

I am creating a simple Word document (*.docx) using Pandoc. My input text file is fairly straight forward. I would like to create text with Red/Yellow/Green highlight. I am aware of creating a custom reference document and using that in Pandoc. In…
NotepadPlusPlus PRO
  • 1,489
  • 6
  • 19
  • 35
4
votes
1 answer

How do I use Pandoc's extensions correctly?

This is in my .md document: ![Step 1](Slide1.png){ width=100px } ![Step 2](Slide2.png){ width=100px } ![Step 3](Slide3.png){ width=100px } ![Step 4](Slide4.png){ width=100px } ![Step 5](Slide5.png){ width=100px } ![Step 6](Slide6.png){…
JMC
  • 158
  • 8
3
votes
1 answer

Pandoc options to convert LaTeX flavored Markdown to HTML

The aim is to convert a Markdown file (file.md) to a html file (file.html). The Markdown file contains formulas specified in LaTeX specified between two dollar ($) signs. Example: The resulting formula is $p\left(n,k,i\right)=\dfrac{{n-i-1 \choose…
Willem Van Onsem
  • 213
  • 1
  • 11
1
2 3 4 5 6