Questions tagged [pandoc]

The tag has no usage guidance.

1
vote
1answer
42 views

Installing pandoc from backports on Debian stretch

I followed the instructions at https://backports.debian.org/Instructions/ But when trying to get a newer version of pandoc with apt-get -t stretch-backports install 'pandoc', I just get: pandoc is ...
0
votes
4answers
73 views

How to debug my script?

This script name is hello for i in $(ls $*);do x=$(echo $(basename $i".md")); pandoc $i -t "latex" -o $x.pdf; done When I write this $ ./hello *bye.md This error ls: cannot access 'test': ...
2
votes
2answers
370 views

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 ...
3
votes
1answer
95 views

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....
1
vote
0answers
9 views

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 \[ ...
1
vote
1answer
114 views

Mass convert thousands of downloaded (with wget) HTML documents to DOCX

I would like to process and convert all the files downloaded from wget in HTML format from a URL. I want to convert a complete web page to DOCX format. We are talking about 3000 HTML documents ...
2
votes
2answers
754 views

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

Command not found when run in sudo but gives output when run as normal user

When I run the below command using sudo it gives me command not found but when I run it using normal user it gives me the version output [root@localhost ~]# pandoc -v bash: pandoc: command not found ...
8
votes
3answers
4k views

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 ...
1
vote
0answers
94 views

Cannot install pandoc-convert 1.1.0 via npm in atom 1.14.3 on Manjaro LXqt

When I try to install the package pandoc-convert 1.1.0 on Atom 1.14.3 using the Manjaro LXqt OS 16.11 I get the following error: Installing “pandoc-convert@1.1.0” failed.Hide output… (node:9072) ...
4
votes
2answers
3k views

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

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 ...
0
votes
0answers
816 views

How to install pandoc

I tried to install pandoc on manjaro and therefore I installed ghc and caball-install, but I got an error by executing "cabal update" $ cabal update Downloading the latest package list from hackage....
19
votes
2answers
15k views

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

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 ...