Questions tagged [pandoc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Non standard paper size when creating PDF from MD in pandoc

This question is kind of an extension to this one: https://stackoverflow.com/questions/38455078/specifying-papersize-for-md-to-pdf-conversion so for specifying paper size I can use command like pandoc ...
bicyclesonthemoon's user avatar
0 votes
0 answers
22 views

How can I use email subject in the body automatically with [neo]mutt?

Say I'm composing an email with the subject Test Subject. Ultimately, I want an HTML body with <title>Test Subject</title> in it. Now, this could either be done by creating the text/...
MCLooyverse's user avatar
0 votes
0 answers
87 views

Installing pandoc on raspberry Pi 3B+ running ArchLinuxARM-rpi-armv7

I'm trying to install pandoc on my Raspberry Pi 3B+ running ArchLinuxARM-rpi-armv7 (https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3). yay -S pandoc gives -> Could not find all ...
emile's user avatar
  • 1
2 votes
2 answers
80 views

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 ...
Mike656's user avatar
  • 23
9 votes
1 answer
6k views

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 ...
Martin Vegter's user avatar
-7 votes
1 answer
249 views

What is the difference between lynx and pandoc? [closed]

In this thread I was suggested to do an action with lynx or pandoc. To my understanding, both programs can output an all backend and solely or primarily textual webpage, in console, pretty much as ...
Lahor's user avatar
  • 113
1 vote
1 answer
886 views

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 ...
Alexis Purslane's user avatar
4 votes
1 answer
357 views

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" "$...
Stewart's user avatar
  • 12.7k
4 votes
1 answer
2k views

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 ![My PDF file inserted](my-pdf.pdf) Then you convert that markdown file with pandoc: ...
Creasixtine's user avatar
2 votes
1 answer
983 views

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, ...
Anas R.'s user avatar
  • 151
1 vote
1 answer
196 views

Pandoc and Abbreviations

I'm trying to generate an ePub file with abbreviations. Here's an example: input.md: --- title: Test language: en --- # Test HTML is maintained by W3C. and abbr.md: *[HTML]: Hyper Text Markup ...
Anas R.'s user avatar
  • 151
1 vote
1 answer
2k 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 --...
alec's user avatar
  • 1,538
0 votes
1 answer
2k 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 ...
ChocolateOverflow's user avatar
0 votes
0 answers
716 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 ...
mooseface's user avatar
  • 141
1 vote
1 answer
1k 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....
Alexander Mills's user avatar
1 vote
1 answer
212 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 ...
HappyFace's user avatar
  • 1,493
0 votes
1 answer
242 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 ...
user2741831's user avatar
1 vote
1 answer
806 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 ...
user avatar
1 vote
1 answer
231 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 ...
StevieD's user avatar
  • 875
0 votes
4 answers
143 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': ...
ZPUFF19's user avatar
  • 33
3 votes
2 answers
7k 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 ...
Latex_xetaL's user avatar
3 votes
1 answer
391 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....
Jonathan's user avatar
  • 1,220
2 votes
0 answers
18 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 \[ ...
Anna19's user avatar
  • 33
1 vote
1 answer
370 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 ...
user3127939's user avatar
2 votes
2 answers
3k 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=...
jdhao's user avatar
  • 606
0 votes
1 answer
838 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 ...
arpit joshi's user avatar
18 votes
3 answers
13k 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 ...
patrick's user avatar
  • 1,002
1 vote
0 answers
114 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-[email protected]” failed.Hide output… (node:9072) ...
Cédric Martinez's user avatar
5 votes
3 answers
6k 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 ...
modulitos's user avatar
  • 3,097
3 votes
2 answers
420 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 ...
st john smith's user avatar
0 votes
0 answers
1k 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....
user977828's user avatar
25 votes
2 answers
31k 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: ...
ppr's user avatar
  • 1,887
17 votes
2 answers
4k 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 ...
evilsoup's user avatar
  • 6,727