Questions tagged [pandoc]
Pandoc is an open-source, command-line, universal document converter for converting between various markup formats.
2,208
questions
227votes
3answers
120kviews
Set margin size when converting from Markdown to PDF with pandoc
I have created an RMarkdown file in RStudio and managed to knit it with knitr into an HTML and .md file. Next, I used pandoc to convert the .md file into a PDF file (I get an error if I try and ...
170votes
8answers
136kviews
How to set size for local image using knitr for markdown?
I have a local image that I would like to include in an .Rmd file which I will then knit and convert to HTML slides with Pandoc. Per this post, this will insert the local image :
 files into a single output?
I have two files in the same folder: chapter1.Rmd and chapter2.Rmd, with the following content:
chapter1.Rmd
---
title: "Chapter 1"
output: pdf_document
---
## This is chapter 1. {#Chapter1}
Next ...
117votes
7answers
64kviews
How do I make a reference to a figure in markdown using pandoc?
I'm currently writing a document in markdown and I'd like to make a reference to an image from my text.
this is my text, I want a reference to my image1 [here]. blablabla

...
113votes
1answer
20kviews
Relationship between R Markdown, Knitr, Pandoc, and Bookdown
What is the relationship between the functionality of R Markdown, Knitr, Pandoc, and Bookdown?
Specifically what is the 'division of labour' between these packages in converting markup documents with ...
106votes
8answers
161kviews
How to convert a Markdown file to PDF
I have a Markdown file that I wish to convert to PDF so that I can upload it on Speakerdeck. I am using Pandoc to convert from markdown to PDF.
My problem is I can't specify what content should go on ...
79votes
7answers
30kviews
Pandoc and foreign characters
I've been trying to use Pandoc to convert some Markdown into a PDF file. This is a sample that Pandoc will not convert for me:
# Header!
## Sub Header
themselves derived respectively from the Greek ...
72votes
4answers
45kviews
Markdown to docx, including complex template
I have automated my build to convert Markdown files to DOCX files using Pandoc. I have even used a reference document for the final document's styling. The command I use is:
pandoc -f markdown -t ...
70votes
2answers
113kviews
Plot size and resolution with R markdown, knitr, pandoc, beamer
Doesn't fit on the slide by default, doesn't even print by any other means.
Here's the .Rmd: Edit: it seems you have to use plot() in every chunk. Second plot now prints.
# Plot should show at high ...
68votes
11answers
47kviews
pandoc version 1.12.3 or higher is required and was not found (R shiny)
I have a problem generating a pdf report from my app shiny which is hosted on a server.
the app works fine but when I press the button to download the report, I get this error :
pandoc version 1....
68votes
7answers
83kviews
rmarkdown: pandoc: pdflatex not found
When I use the render{rmarkdown} to produce pdf file from .Rmd file on my Mac, an error message says
pandoc: pdflatex not found. pdflatex is needed for pdf output.
Error: pandoc document conversion ...
59votes
2answers
108kviews
Simple manual RMarkdown tables that look good in HTML, PDF and DOCX
How can I manually and simply format a table in RMarkdown that will look good when converted to HTML (using the knitr and markdown packages), PDF (using pandoc and miktex) and docx (using pandoc)?
I ...