Questions tagged [pandoc]
33 questions
25
votes
2 answers
Convert a .docx to a .pdf with pandoc
I am trying to convert a .docx received by mail to a correct pdf by using pandoc (I am using GNU/Linux).
I have an error concerning characters encoding :
$ pandoc file.docx -o file.pdf
pandoc: Cannot decode byte '\x87':…
ppr
- 1,887
- 7
- 23
- 40
18
votes
3 answers
Markdown to PDF conversion in Pandoc: making pages landscape?
I am converting a document from Pandoc markdown to .pdf.
I run the conversion like this, and everything works fine:
pandoc test.MD -f markdown -o test.pdf
However, I would like pandoc to output my PDF pages in landscape, rather than portrait,…
patrick
- 1,002
- 1
- 10
- 16
17
votes
2 answers
Copy markdown input to the clipboard as rich text
I'm about to get involved in some collaborative prose writing with a friend of mine via email. As a regular person, he will of course be using MS Word document formats; as a massive nerd, I prefer to use markdown when writing on a computer.
What I…
evilsoup
- 6,727
- 3
- 33
- 40
8
votes
1 answer
convert markdown to pdf in commandline
what is the simplest tool to convert markdown to pdf in commandline?
I have found howtos where people suggest to use pandoc, but the required packages need gigabytes of dependencies:
apt-get install pandoc texlive-latex-base…
400 the Cat
- 819
- 4
- 37
- 85
5
votes
3 answers
How to install Pandoc on ArchLinux
Does anyone have suggestions about how to install pandoc on Arch? I am trying to install pandoc-static from here: https://aur.archlinux.org/packages/pandoc-static/, although it appears to be conflicting with my xmonad installation (I use xmonad as a…
modulitos
- 3,097
- 8
- 29
- 44
4
votes
1 answer
Avoiding awk injection
I have a script which reads an VCS log, converts that to latex, and then uses awk to replace keyword @COMMITS@ in a template with the text:
untagged=$(get-commit-messages "$server" "$rev")
IFS=$'\n' untagged=( $untagged ) # Tokenize based on…
Stewart
- 12,628
- 1
- 37
- 80
4
votes
1 answer
Markdown & Pandoc : How to include a specific PDF page as image?
It is currently possible to insert a PDF as an image in markdown files through pandoc by doing this:
# Hello World

Then you convert that markdown file with pandoc:
~$ pandoc -s -f markdown-implicit_figures…
Creasixtine
- 771
- 6
- 6
3
votes
2 answers
How to process multiple files with pandoc?
files:
$ ls
a.md
b.md
c.md
d.md
e.md
Command: pandoc file.md -f markdown file.pdf
How would I parallely process two pandoc instances simulatneously? Possibly with xargs or parallel.
It would work like
Iteration/ cmd 1 / cmd 2
1 / pandoc a.md -f…
Latex_xetaL
- 35
- 1
- 4
3
votes
1 answer
In NixOS, is there any way to create a package that has pandoc, pandoc-citeproc, and pandoc-crossref?
I'm very new to NixOS. I use Pandoc a lot, often with pandoc-citeproc, but I can't find a NixOS package for pandoc-citeproc. I see that there's a Haskell library for pandoc-citeproc in HaskellPackages. How can I combine a Pandoc binary which is…
Jonathan
- 1,210
- 4
- 23
- 41
3
votes
2 answers
How to merge these commands into one?
This is what I am wanting to do:
Convert a folder of HTML files into markdown, also copying over the the XML metadata of each of the HTML files by converting into YAML.
I have done research and came across the following commands:
find . -name \*.md…
st john smith
- 51
- 4
2
votes
2 answers
How to change the size of inline pdf in Pandoc generated html files?
I'm using Pandoc to convert my mardown files to html files, html pages which are Github styled using Github.html5 from the Pandoc-goodies repo which is based on this other repo.
I'm extremely pleased to see that  inserts the complete…
Mike656
- 23
- 4
2
votes
1 answer
How to associate markdown files with a web browser?
Out of GUI-based software like ReText or Formiko, and using just a command-line tool like pandoc, is it possible to open markdown files (MIME type association) as an HTML file in a web browser, without any browser-addon too?
Notice that the original…
Anas R.
- 151
- 7
2
votes
0 answers
Add math delimiters in ikiwiki and mathjax
In my ikiwiki + pandoc + mathjax setup the delimiters $ for inline math and $$ for display math are currently recognized. How can I add additional delimiters, for example \( and \) for inline and \[ and \] for display math?
Note that I already…
Anna19
- 33
- 3
2
votes
2 answers
pandoc continues complain about non-utf8 character even though it seems there is no non-utf8 character
I am trying to convert a markdown file to pdf using pandoc. Since my markdown contains Chinese characters, I use the following command to produce the pdf:
pandoc --pdf-engine=xelatex -V CJKmainfont=KaiTi test.md -o test.pdf
But pandoc complains…
jdhao
- 606
- 12
- 29
1
vote
1 answer
Markdown to PDF Converstion with Pandoc: Make pages a specific size, in inches
So I know you can use pagesize and geometry to set the page size of the PDFs Pandoc makes to presets (like a5, b5, etc), but is there a way to set a precise pair of dimensions? I'm going to be using the PDF with Amazon Self-Publishing (paperback)…
Alexis Dumas
- 653
- 1
- 5
- 11