Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pandoc]

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

0
votes
0answers
7 views

R Markdown “Default” CSS Theme

I believe I am trying to somehow reset an environmental variable or setting related to how Pandoc develops an HTML output file from Markdown through knitr. I am using R (and RStudio) on Windows, all ...
1
vote
1answer
23 views

Allow raw HTML in LaTeX code with Pandoc

I know including raw HTML is possible in Markdown documents with Pandoc, so I was wondering if there was a way to allow it in LaTeX documents. Pandoc converts lower than and greater than characters ...
1
vote
0answers
24 views

Failure to convert included files from .org to .rst using pandoc

Problem I am writing blogs using Emacs org-mode. Specifically, I first create contents and get ml.org file and then convert it into ml.rst using pandoc command pandoc -f org -t rst ml.org. In order ...
0
votes
1answer
17 views

Being both nonprivileged and root inside Docker container

I want to use pandoc inside docker. The image looks like this: FROM debian:buster-slim RUN apt-get update && apt-get install -y pandoc texlive WORKDIR /home This is build.sh inside the ...
2
votes
1answer
24 views

Convert a markdown file to a series of HTML files

Say I have a manual for a computer program written in markdown/org-mode format. The manual is written as a book with chapters, sections, and subsections. I know Pandoc can convert this Markdown file ...
2
votes
2answers
76 views

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 :...
2
votes
2answers
79 views

Generate a PDF from the command line and fill up the page with as many copies of an image as possible?

I’ve been searching around a lot for this but wasn’t able to find a solution. How can I generate a PDF with an arbitrary paper format (say A4) and fill its pages with as many copies of an image as ...
3
votes
2answers
136 views

Pandoc - how to get pagebreak between title block and the table of contents?

Simple markdown file, with YAML block: --- title: Report author: Tom Brown 12345678 date: August 2018 toc: true numbersections: true geometry: margin=2.5cm urlcolor: blue header-includes: | \...
0
votes
0answers
45 views

Plain text format that supports export to Word with reviewing comments

I would like to know about a plain-text markup format where I can directly enter comments that I can then export to Word and have them show up as comment balloons. I don't need any other markup. I'm ...
0
votes
0answers
319 views

Convert *.md file to *.docx by right click using Pandoc

I would like to be able to easily generate *.docx files from *.md ones by just right-clicking on the file and selecting "Convert to docx". I used to do this manually by using Pandoc in the Windows ...
2
votes
1answer
385 views

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](...
1
vote
1answer
502 views

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 ...
2
votes
1answer
52 views

How to use Pandoc with double-byte characters?

I am trying to convert a Markdown document to PDF. The following works using pandoc test.md -o test.pdf: # Test Testing But this # Test 日本語 gives me an error: ! Package inputenc Error: Unicode ...
4
votes
1answer
309 views

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 ...
0
votes
1answer
1k views

When converting txt to docx using pandoc, how to specify default paragraph style?

I am trying to convert a txt file (markdown) to docx using pandoc with a special MS Word template. I'm doing it this way: pandoc -s --reference-docx=/path/to/my/template.dotx -o outfield.docx file.md ...
0
votes
2answers
694 views

Sublime 3 Markdown Build System via Pandoc

I'm trying to write a Sublime-Text-3 build system that will run Pandoc to convert my markdown file to html, and then open the html in my browser. I keep getting a "No Build System" error, and I can't ...
0
votes
1answer
473 views

Pandoc has stack size error?

I am attempting to use pandoc to convert an HTML file to a MediaWiki format. I'm getting the following error. (It is a large file, so it wouldn't surprise me if this is the issue.) I have googled the ...
2
votes
1answer
531 views

pandoc - markdown to man page tables not formatted (on msys2)

I am trying to use pandoc (if someone has a better conversion program I am all ears, please not ruby-dependent) to convert markdown files into manpages. It works fine until I go to do a doc with a ...
1
vote
1answer
371 views

How to convert Markdown to TWiki using Pandoc?

Pandoc documentation says it can convert to TWiki. But with the newest version, it gives error "Unknown writer: twiki": $ brew install pandoc $ pandoc --version | head -4 pandoc 1.17.0.3 Compiled ...
1
vote
1answer
142 views

In vim, is it possible to turn my bibliographic keys into links?

I write in pandoc markdown, which uses bibligraphic keys from biblatex that look like @smith_foo_1999, where "Smith" is the author name, "Foo" is the title, and 1999 is the year of publication. This ...
4
votes
2answers
703 views

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 ...
2
votes
2answers
993 views

Right align columns in Sublime Text 3

I would like to right align text in columns in Sublime Text 3 (on Win 8.1, FWIW). That is, I want to convert this Time Cash Flow 0 -500 1 100 2 200 3 300 into this Time Cash Flow ...
2
votes
1answer
1k views

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 ...
2
votes
1answer
598 views

How can I get pandoc to recognize my custom YAML fields?

I have a markdown file that starts like this: --- title: Some Title author: - family: Barson given: Foobius --- And I'd like to get pandoc to extract this information and output it. So I have a ...
2
votes
1answer
126 views

Format to generate .tex, .pdf and .md from?

I've used Pandoc to generate .md, .tex, .pdf from .tex and .xhtml files. In tex I am using BibTeX and in ODT (save-as .xhtml) I am using Zotero to insert my citations. Currently neither .tex nor ....
1
vote
1answer
973 views

Pandoc not converting Markdown list to LaTeX properly

I cannot seem to get Pandoc to convert my Markdown documents to PDF (via LaTeX) properly. The problem seems to come from how I am formatting my lists. If I use the following command pandoc -i test.md -...
2
votes
1answer
373 views

How to generate a table of contents when converting from LaTeX to EPUB using Pandoc?

I'm converting a LaTeX document into an EPUB ebook: pandoc input.tex -o output.epub Everything works fine, however the ebook has a broken TOC: It contains only one item - the book's title. How can I ...
1
vote
1answer
1k views

How to update pandoc on centos linux?

I dowloaded cabal-install-1.20.0.3.tar.gz file and extracted when I try to run am getting following errors.My aim is to update pandoc. Now I have pandoc 1.9 but I need 1.12 version.To update pandoc am ...
2
votes
1answer
1k views

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 ...
2
votes
1answer
1k views

Compiling Pandoc Haskell script: Could not find module `Text.Pandoc.JSON'

I am trying to use a canned example from Pandoc's scripting page, but I don't understand enough Haskell to make this work. Here's the script. #!/usr/bin/env runhaskell -- includes.hs import Text....
14
votes
1answer
12k views

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 ...
3
votes
2answers
2k views

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 ...
4
votes
2answers
1k views

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,...
2
votes
2answers
3k views

Include files in Markdown document with Pandoc (except Haskell)

I use Pandoc to create Reveal.js presentations from Markdown documents, having switched to it from Google Slides. From the beginning I decided that presentations for different events and lectures are ...
1
vote
2answers
834 views

Image Identifiers and List of Images with pandoc?

I have a text written in markdown (with pandoc extensions) with several image-references. Now I need to build a table or list with these images with a reference to the page they appear on. Just ...
1
vote
1answer
31 views

CLI Perform Regex in Memory then feed to Command

I would like to use a regular expression to modify a file and then feed it to pandoc in the cli. Something like this: perl -pe 's/_(.*)_/\\underline{$1}/g' source.md > pandoc -o source.pdf So, I'...
0
votes
1answer
755 views

pandoc in emacs in windows, searching for program: permission denied, /usr/bin/pandoc

I have Pandoc successfully installed on Windows, and have run it from command prompt. When I try to run it in Emacs, I receive: Running Pandoc... apply: Searching for program: permission denied, /...
0
votes
1answer
529 views

Compiling markdown Simplenotes with pandoc.vim and simplenote.vim

I would like to use pandoc.vim to compile markdown Simplenotes that I edit in Vim using simplenote.vim. To use pandoc.vim I set my Simplenote file type to pandoc with let g:SimplenoteFiletype = "...
2
votes
1answer
2k views

Specifying image size when converting HTML to docx

I am using Pandoc to convert HTML to DOCX format. Everything works fine, but the resulting images are too big. If I resize them in input HTML nothing changes. I could resize the images with ...
1
vote
0answers
108 views

Pandoc: Output two sumation signs in equal height in Word 2010

I need to output some complex equations in Word 2010 (docx). To do so I write most of the equations in tex and use pandoc to translate them as Word formulas. However I have a problem with the ...
17
votes
3answers
10k views

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 ...
1
vote
1answer
979 views

using Jekyll to generate HTML-based slideshow presentations from Markdown source?

I want to create slick HTML-based slideshows to use for giving presentations. I've found a couple that I like, such as scrolldeck.js. Basically it's a static site within a folder, i.e. a single ...
-1
votes
1answer
524 views

Utility to automatically convert markdown content to HTML on-the-fly within an HTML page? [closed]

Is there a utility that will automatically convert my Markdown content to HTML on-the-fly within an HTML page? So that I could easily embed markdown content within an HTML page like so? <BODY&...
2
votes
0answers
275 views

Using pandoc, dzslides and mathjax only works with Firefox

I'm trying to create dzslides with pandoc (v. 1.9.4.2) that contain equations which I want to be rendered by mathjax. Consider the following example: % $\TeX$ test % John Doe % March 22, 2013 ## ...
1
vote
0answers
663 views

How to convert mac osx dictionary to linux readable format?

I would like to be able to take the dictionary data described here: http://priithaamer.com/blog/ruby-on-rails-dictionary-for-macosx And convert it for reading on linux. Is there an app such as ...
0
votes
3answers
126 views

Fixing a CSL file that fails to print the date correctly in pandoc

I am having a minor but very irritating problem with pandoc and citations. In accordance with Pandoc's User Guide I insert the citation like this: [@ChandrajitBanerjee12] The applicable Bibtex ...
2
votes
3answers
598 views

Using find, xargs, etc. to output similarly named files

I have a folder full of HTML files: 001.htm 002.htm 003.htm … I want to run Pandoc on them to convert them to similarly named Markdown files: 001.md 002.md 003.md This command works on one of them:...
1
vote
3answers
2k views

Convert html2pdf with toc, color and unicode support?

Is there a way I can convert large html file (produced with sphinx by the way) to pdf with color, table of contents (toc) and unicode support? There's htmldoc -- but it neither support color, nor ...
1
vote
0answers
449 views

Using font-face with Slidy / Pandoc?

Is there a way to make an @font-face call in using Pandoc's Slidy? At the beginning of my slidy.css stylesheet, I have a @font-face call in the tradtional format: @font-face { font-family:'...
2
votes
0answers
1k views

Writing corporate documentation in Markdown and pandoc [closed]

Background I have had a few friends that turned me on to markdown and pandoc for writing documentation. At my current job, we use Microsoft Word for writing unstructured, one-off howto documents for ...