Questions tagged [pandoc]
The pandoc tag has no usage guidance.
31
questions
-7
votes
1
answer
104
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 ...
0
votes
0
answers
23
views
Is it possible to convert all files to Base64 at the same time via `pandoc` when exporting to a new sinle HTML file?
I know to convert any files to Base64, but it is manually at hand on the terminal. It's tiring to convert each file to base63 via terminal, copy and paste each code to the combined file exported from ...
0
votes
0
answers
24
views
How to reverse the margins in pandoc (markdown to PDF conversion)
I'm rendering a markdown file to a PDF in Pandoc, with documentclass set to book, for publishing via Amazon self-publishing. It's making extra margin space on the right for odd pages, and on the left ...
0
votes
1
answer
72
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 ...
0
votes
0
answers
19
views
Pandoc error converting from .md to .html
I'm using this command to convert .md file to .html file:
pandoc -s -t ~/Documents/neocities-anve/templ/dynamic.html -c ~/Documents/neocities-anve/templ/template.css ~/Documents/neocities-anve/source/...
4
votes
1
answer
196
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" "$...
4
votes
1
answer
588
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

Then you convert that markdown file with pandoc:
...
1
vote
1
answer
203
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, ...
1
vote
1
answer
61
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 ...
0
votes
1
answer
1k
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
1
answer
843
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
0
answers
431
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
1
answer
905
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
1
answer
102
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
1
answer
138
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
1
answer
473
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
1
answer
194
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
4
answers
110
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
2
answers
4k
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
1
answer
273
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
0
answers
13
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
1
answer
328
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
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=...
0
votes
1
answer
682
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
...
18
votes
3
answers
10k
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
0
answers
111
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
2
answers
5k
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
2
answers
363
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
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....
24
votes
2
answers
25k
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: ...
15
votes
2
answers
3k
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 ...