Questions tagged [pandoc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
54 views

how to set individual margins (left/right/top/bottom) with pandoc shell command when creating pdf?

I'm pleased to see pandoc can specify some latex (which I know almost nothing of) geometries to customize the margin size of a pdf it creates like so.... pandoc -V geometry:margin=.5in somefile.mkd --...
0
votes
1answer
87 views

pandoc error: Permission denied

I'm on Manjaro Linux. I have texlive-most installed. I'm trying to make pdf files from md with pandoc. However, I keep getting Permission denied errors. I've tried using pdflatex and pdfroff. Run ...
0
votes
0answers
33 views

pandoc: preserve centered text

i'm using pandoc (2.2.1) to convert an html page to pdf (or also markdown, org, plain text, etc. whatever works really). this is the page: https://www.exclassics.com/pamphlets/pamph004.htm pandoc ...
1
vote
1answer
235 views

Cannot install miktex on Ubuntu 18

Ultimately the final goal is to convert HTML to PDF. I saw this solution: https://github.com/SebastiaanKlippert/go-wkhtmltopdf but the above solution seems to require headless chrome in order to run....
1
vote
0answers
24 views

How to cat the first page of an epub file?

epubcat book.epub 1 3 # outputs plain text of pages 1 through 3 I don’t know if epubs have the concept of “pages.” If not, perhaps we can say each 400 chars are a page? A general solution that works ...
0
votes
1answer
27 views

Manjaro can't install pandoc, invalid or corrupted package

I tried to install pandoc, but I keep getting the error (106/106) checking package integrity [###################################] 100% error: failed to commit transaction ...
0
votes
1answer
77 views

Pandoc - Export to multiple HTML files

I have a markdown file. for example: # This is a heading This is a text in a html file ## This is a subheading This is a text in a subheading # This is another heading This is a text in other html ...
1
vote
1answer
118 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
96 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
2k 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
185 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....
2
votes
0answers
11 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
216 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
2k 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
490 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 ...
11
votes
3answers
7k 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
108 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
4k 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
286 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
931 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....
21
votes
2answers
19k 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: ...
10
votes
2answers
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 ...