Questions tagged [pandoc]

Pandoc is an open-source, command-line, universal document converter for converting between various markup formats.

Filter by
Sorted by
Tagged with
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 ...
user avatar
  • 8,974
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 : ![Image Title](path/...
user avatar
  • 2,369
168votes
13answers
186kviews

How can I create a text box for a note in markdown?

I am writing a document in markdown. I am using the wonderful pandoc to create docx and tex files from the markdown source. I would like to have a textbox for tips and notes to readers the way ...
user avatar
  • 2,623
134votes
5answers
55kviews

Pandoc markdown page break

Recently I started using Pandoc markdown which seems a good alternative to LaTeX, as my document does not have many mathematical formulas, and I do not have ANY experience with LaTeX, which combined ...
user avatar
  • 5,632
130votes
8answers
114kviews

How to convert R Markdown to PDF?

I've previously asked about the commands for converting R Markdown to HTML. What is a good way to convert R Markdown files to PDF documents? A good solution would preserve as much as possible of ...
user avatar
118votes
3answers
36kviews

How to combine two RMarkdown (.Rmd) 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 ...
user avatar
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 ![image1](img/image1.png) ...
user avatar
  • 10.8k
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 ...
user avatar
  • 10.1k
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 ...
user avatar
  • 12.5k
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 ...
user avatar
  • 35.3k
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 ...
user avatar
  • 35.6k
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 ...
user avatar
  • 5,740
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....
user avatar
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 ...
user avatar
  • 845
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 ...
user avatar
  • 40.1k

15 30 50 per page
1
2 3 4 5
148