Questions tagged [pandoc]

Pandoc is an open-source tool to convert between types of documents

Pandoc can convert between different types of documents, such as Markdown and HTML. See also the manpage for pandoc (1).

19 questions
22
votes
5 answers

Install Pandoc (required for docverter)

For the life of me I can't figure out how to install pandoc. I tried the approach recommended on its Github repo as well as all 3 approaches recommended on the pandoc site. I'm installing on Ubuntu 12.04 so I first did sudo apt-get install…
tim peterson
  • 2,345
9
votes
3 answers

Converting EPUB to PDF using Pandoc

I want to convert my test.epub to PDF format using Pandoc. I tried (given here) pandoc -f epub -t test.epub -o outfile.pdf which throws the following error: cannot produce pdf output from pdf I also tried the following command pandoc test.epub -f…
5
votes
2 answers

Using pandoc-crossref on Ubuntu 20.04

I am using pandoc to convert a LaTeX document to Word format. The source document contains various cross-references that need to be kept in the output. However, when the cross-references filter is used pandoc complains that it is not installed: $…
4
votes
1 answer

Trying to install pandoc via cabal install fails

Since the pandoc package in the repository is outdated, I would like to install it via cabal-install. I ran cabal update, and then cabal install pandoc which fails with: cabal: Couldn't read cabal file "pandoc/1.9.4.4/pandoc.cabal" This might be…
jottr
  • 764
4
votes
1 answer

Ghostwriter snap requires pandoc but doesn't find it, how to resolve?

On my Ubuntu MATE 24.04 setup, I have recently started using Ghostwriter to write documentation, take notes in Markdown format, with the hope that I'd later convert them to HTML or PDF using pandoc. In fact, I realized that Ghostwriter itself uses…
bdutta74
  • 347
4
votes
1 answer

Ubuntu 19.10 How To Get Pandoc Making PDF Files?

Install pandoc: $ sudo apt install texlive-latex-base pandoc Use pandoc to make pdf from a Markdown file: $ pandoc file.md -o file.pdf Error message: kpathsea: Running mktextfm ecrm1000 /usr/share/texlive/texmf-dist/web2c/mktexnam: Could not…
4
votes
1 answer

pandoc on Ubuntu can't use beamer

I'm using pandoc to author slides. I'd like to see how the beamer PDF output looks, but I'm getting an error: $ pandoc -t beamer talk.txt -o talk.pdf pandoc: Unknown writer: beamer Any ideas?
Adam Monsen
  • 2,161
3
votes
2 answers

How to get Ubuntu to recognize new installed Pandoc version?

I want to install a new pandoc version. I followed the procedure outlined here. mark@server:~$ sudo cabal install pandoc pandoc-citeproc This worked out. But when checking on the installed version I get mark@server:~$ pandoc -v pandoc…
3
votes
2 answers

How to convert Markdown to PDF (with word wrapping)

Using pandoc like: pandoc -o output.pdf input.md does not give me a result with word-wrapping. For instance, three liner input.md looks like the following: # Introduction Lorem ipsum dolor sit amet, scelerisque natoque, in etiam erat nibh lacus,…
3
votes
1 answer

pandoc does not seem to include .rtf files. Can I add them?

I am using Ubuntu 22.04 LTS I wanted to convert .rtf files to PDFs using Python. I found this on stackoverflow: import pypandoc def convert_rtf_to_pdf(input_rtf, output_pdf): pypandoc.convert_file(input_rtf, 'pdf', outputfile=output_pdf) if…
Pedroski
  • 435
3
votes
1 answer

How do I uninstall Pandoc in Ubuntu 19.10 (and install most recent version)

I have an old version of Pandoc installed, but I'd like to install the latest version of Pandoc. To begin I've run the following to get rid of the old version: sudo apt-get autoremove --purge pandoc But when I check that everything is uninstalled…
hossuriad
  • 107
2
votes
1 answer

Issues installing pandoc 2.3.1 in Ubuntu 18.04.1

I am trying to install pandoc 2.3.1 in my Ubuntu 18.04.1 LTS. First, I remove any old pandoc version (in my case is pandoc 1.19.2.1) manolo@manolo:~$ sudo apt-get remove pandoc Reading package lists... Done Building dependency tree Reading…
Antarqui
  • 129
1
vote
2 answers

Get Firefox to reopen same file on disk (for testing)

I am writing documentation using Pandoc, with a view to having it be viewed in HTML eventually on my web site. During development I want to test how the results look locally, so I have a build command set up in Geany like this: pandoc --toc --smart…
Nick Gammon
  • 483
  • 1
  • 3
  • 14
1
vote
1 answer

Problem in converting math in Latex to epub using pandoc

Latex code in my tex file: $\frac{\partial H}{\partial q_i}$ $=$ $\dot{P}_i$, $\frac{\partial H}{\partial P_i} =\dot{q}_i$ I have given the following command in terminal pandoc -s science.tex -o science.epub pandoc is not converting the certain…
1
vote
0 answers

How can I convert this epub file to pdf?

I have tried Calibre to convert an epub file to pdf, following https://askubuntu.com/a/299752/ ebook-convert /tmp/1.epub 1.pdf but it fails with many errors. $ ebook-convert --version ..ebook-convert-wrapped-wrapped (calibre 5.42.0) Created by:…
Tim
  • 26,107
1
2