Questions tagged [pandoc]
Questions about Pandoc, a free and open-source software document converter.
85
questions
0
votes
1
answer
47
views
Render markdown with math wrapped in escaped parenthesis / brackets to PDF?
Background / use case: https://genai.stackexchange.com/questions/386/how-does-chatgpt-render-math-in-markdown-output
The \( ... \) syntax in markdown corresponds to LaTex math inline mode, and the \[ ....
0
votes
1
answer
213
views
Pandoc export to Markdown doesn't include images
I have a Word document that contains a TOC, various headings level 1, 2 & 3, some tables and some images.
When I export to md using pandoc -f docx -t markdown the resultant .MD when viewed in ...
-1
votes
1
answer
45
views
How can I open Pandoc in a particular directory in order to run a command line?
I just install Pandoc on Windows10. I have several .docx files from a folder ( D:\DE SCANAT\Docx ) and I want to convert all them (batch) into .txt
I must use this line command for this:
for i in *....
0
votes
1
answer
682
views
Can I use pandoc to convert from markdown to DOCX or ODT and apply a template?
I'm trying to use Pandoc to convert a markdown file into a Word (docx) or LibreOffice (odt) file, what is a simple thing to do...
But I want this converted ODT document to use a specific "OTT&...
0
votes
1
answer
158
views
I'm trying to convert a normal Markdown document to a PDF using pandoc. I'm getting LaTeX errors
Here is the entire markdown:
---
title: Calculus hw
author: Jewel
date: April 21, 2023
---
> Question 1
$$
f(x) =
\begin{cases}
Asin(x)+Bcos(x) & \text{if } x < 0 \\
x^2+1 & \text{if } ...
1
vote
0
answers
253
views
Using pandoc to convert latex into plain text: "unexpected () \begin{document}" error
I want to use pandoc to convert latex into plain text. I try to convert this latex file: https://arxiv.org/e-print/1603.03827
I installed pandoc 2.9.2.1 on Ubuntu 22.04 as follows:
sudo apt-get ...
0
votes
1
answer
255
views
BASH - combine .md files from subdirectories into a master .md
We have a growing list of subdirectories and we would like to summarize the content in each with a .txt or .md file. We would then like to consolidate those readmes into a single master readme. We ...
0
votes
0
answers
246
views
Converting HTML pages to docx
I am trying to convert an html document to docx using pandoc.
pandoc -s Template.html --mathjax -o Test.docx
During the conversion to docx everything goes smooth less the equations.
In the html file ...
1
vote
1
answer
1k
views
Pandoc can't convert to pdf, `xcolor.sty' not found
When I try to convert a file to pdf format with pandoc I receive this message:
Error producing PDF.
! LaTeX Error: File `xcolor.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter ...
3
votes
2
answers
669
views
What are the pandoc command line options to color and underline hyperlinks in PDF output?
Basically the title question -- I want the links in my pdf document to be blue and underlined (instead of hidden).
0
votes
0
answers
62
views
Pandoc , how to attach files from markdown to docx
I write my notes in markdown with some links to local files
## Heading1
sometext
[local file](path to loacl file)
Is there a way to attach this file "local file" while converting from ...
1
vote
1
answer
53
views
Is there any option to control the width of outputted paragraphs in pandoc?
I'm struggling to find any search results for how to control the output width of paragraphs in pandoc, when I put the following text in...
Lorem ipsum dolor sit amet, consectetur adipiscing elit....
1
vote
2
answers
595
views
Disable auto numbering in pandoc markdown
I have Markdown content that looks like this
(A) some text
(A) some more text
(A) and so on
I'm using pandoc to render this to PDF (pandoc -o test.pdf test.md). This produces content that turns ...
1
vote
1
answer
455
views
pandoc comments and notes for lecturer/ reader
When converting e.g. a Markdown file to a pdf file with pandoc for a lecture then everything except comments like
<!---
comment
-->
will be present in the output pdf file.
But is there an more ...
2
votes
3
answers
1k
views
Two columns pdf from markdown with pandoc and lua script
I want to render a two columns pdf document using markdown fenced divs. The minimal example is this :
:::::::::::::: {.columns data-latex=""}
::: {.column width="40%" data-latex=&...
0
votes
1
answer
118
views
Pandoc on Microsoft Azure gives getAppUserDataDirectory error
I am trying to run Pandoc on MS Azure environment to create HTML report from markdown file. The Pandoc command is real simple one.
pandoc test.md -o test.html
But I get the following error.
pandoc: ...
4
votes
0
answers
541
views
Creating Text Style with Colors using Pandoc to Docx Converter
I am creating a simple Word document (*.docx) using Pandoc. My input text file is fairly straight forward. I would like to create text with Red/Yellow/Green highlight. I am aware of creating a custom ...
1
vote
1
answer
2k
views
Converting HTML pages with MathML equations to Word document
My goal is to convert this document (https://galileo.phys.virginia.edu/classes/252/lorentztrans.html) which contains math into word document with well formatted equations.
Why only Microsoft Word you ...
3
votes
1
answer
527
views
Pandoc doesn't recognize documented '--defaults' option
I use Pandoc as a static site generator and previous versions of the program allowed me to specify YAML files with metadata about the document like so:
pandoc --defaults ./base.yaml -o ./res/head.html ...
0
votes
1
answer
331
views
How to create a minimalist HTML5 file from Markdown?
I have a simple Markdown file which I want to convert to a minimal HTML5 compliant file.
I tried:
pandoc -f markdown -t html5 .\description.md -o description.html → this generates proper HTML content,...
2
votes
1
answer
3k
views
how do i combine 2 pdf documents into 1 in the terminal?
I have 2 files written in Markdown which I used pandoc to convert into pdf. I now need to combine the 2 into one single document(lets say I have many that I need to combine into a single pdf). Is ...
0
votes
0
answers
198
views
Pandoc in Typora procceses markdown with file that leads to error when run from PowerShell
I have a markdown file (call it testfile.md) that I have created in Typora. When I export it to PDF from Typora it calls on Pandoc behind the scenes and the file is successfully created. However, when ...
1
vote
1
answer
508
views
Limit what sections get exported/processed in Pandoc markdown?
Is there a way to control/limit what content get processed by Pandoc in a pandoc markdown document?
What I miss is OrgMode's :noexport: tag that could be attached to a section header so that
that ...
3
votes
0
answers
349
views
ImportErrorr triggered by pandocfilters installed by pip3
Goal
To get pandocfilters running with pip3.
My Error
Here's my steps to reproduce the error.
Install pandocfilters through pip3: pip3 install pandocfilters.
Download the scripts examples/caps.py and ...
-2
votes
1
answer
275
views
Automatic margins when making a PDF in Pandoc?
Is there some way to, instead of specifying --variable papersize="A4" --variable margin-left="1.2in" --variable margin-top="1.2in" for the command, and having to change the two last ones every time ...
1
vote
2
answers
5k
views
How to make pandoc use the correct font?
After spending 54 million years waiting for "TeX Live" (required by pandoc) to install, I was finally able to run the command to turn my .txt file into a PDF:
pandoc -i "1.txt" -o "1.pdf"
The result ...
0
votes
1
answer
508
views
Sublime Text always outputs html with pandoc instead of running python code
As it says in the title, when I try to run some python code (this code specifically), sublime text will create an html markdown file with pandoc.
The specific error message I receive is
/usr/local/...
2
votes
2
answers
1k
views
Pandoc: Using standardized unicode Emoji
I want to use flag: Japan emoticon with unicode U+1F1EF U+1F1F5 as defined in the standard Full Emoji List, v12.0, inside markdown (rendered with Pandoc).
Given that this Emoticon is not defined ...
3
votes
2
answers
944
views
Pandoc: Duplicate footnotes - multiple files - same name
I have a folder structure like the following:
chapters/
01-chapter.md
02-chapter.md
03-chapter.md
format.sh
parse.sh
parse.sh
pandoc -t html5+smart -so dist/book.html --html-q-tags chapters/*....
2
votes
1
answer
4k
views
Custom table of contents in Pandoc-created PDF
I'm creating PDFs from markdown files and would like to customize the output. Specifically, I'd like to change the title of the table of contents in the resulting PDF.
Currently, it's "Contents":
...
1
vote
0
answers
174
views
Pandoc: Metadata
I'm trying to convert a simple HTML file to a PDF, with some metadata inserted.
The command I'm using is
pandoc test.html -o test.pdf --metadata author:testtesttest
Contents of test.html
<p>...
0
votes
1
answer
65
views
zip compression in epub via pandoc better than plain zip?
I have a plain text file (scan of a book written about 100 years ago in english).
When I save it in my text editor it has size 618kb
Whan I zip this file it has size 211kb
but when I covert it to ...
1
vote
1
answer
4k
views
Knitting Rmarkdown to Network Path in Rstudio Fails
I have Rmarkdown code that functioned without error knitting to HTML, yet after attempting to knit as a Word document, I cannot knit any Rmarkdown files that are saved on a network drive. If I save ...
2
votes
1
answer
2k
views
Allow raw HTML in LaTeX code with Pandoc
I know including raw HTML is possible in Markdown documents with Pandoc, so I was wondering if there was a way to allow it in LaTeX documents.
Pandoc converts lower than and greater than characters ...
1
vote
0
answers
69
views
Failure to convert included files from .org to .rst using pandoc
Problem
I am writing blogs using Emacs org-mode. Specifically, I first create contents and get ml.org file and then convert it into ml.rst using pandoc command pandoc -f org -t rst ml.org.
In order ...
0
votes
1
answer
231
views
Being both nonprivileged and root inside Docker container
I want to use pandoc inside docker. The image looks like this:
FROM debian:buster-slim
RUN apt-get update && apt-get install -y pandoc texlive
WORKDIR /home
This is build.sh inside the ...
2
votes
1
answer
451
views
Convert a markdown file to a series of HTML files
Say I have a manual for a computer program written in markdown/org-mode format. The manual is written as a book with chapters, sections, and subsections.
I know Pandoc can convert this Markdown file ...
10
votes
2
answers
4k
views
Rendering PDF from Markdown file with literal emoji characters using Pandoc
I'd like to convert markdown text like:
This is a smile 😀
To a PDF with the emoji on it. To be clear, I want to be able to insert the emoji character itself in the source text, not something like :...
2
votes
2
answers
3k
views
Generate a PDF from the command line and fill up the page with as many copies of an image as possible?
I’ve been searching around a lot for this but wasn’t able to find a solution.
How can I generate a PDF with an arbitrary paper format (say A4) and fill its pages with as many copies of an image as ...
3
votes
3
answers
8k
views
Pandoc - how to get pagebreak between title block and the table of contents?
Simple markdown file, with YAML block:
---
title: Report
author: Tom Brown 12345678
date: August 2018
toc: true
numbersections: true
geometry: margin=2.5cm
urlcolor: blue
header-includes: |
\...
0
votes
0
answers
840
views
Convert *.md file to *.docx by right click using Pandoc
I would like to be able to easily generate *.docx files from *.md ones by just right-clicking on the file and selecting "Convert to docx". I used to do this manually by using Pandoc in the Windows ...
4
votes
1
answer
2k
views
How do I use Pandoc's extensions correctly?
This is in my .md document:
{ width=100px }
{ width=100px }
{ width=100px }
{ width=100px }
 to docx using pandoc with a special MS Word template. I'm doing it this way:
pandoc -s --reference-docx=/path/to/my/template.dotx -o outfield.docx file.md
...
0
votes
3
answers
2k
views
Sublime 3 Markdown Build System via Pandoc
I'm trying to write a Sublime-Text-3 build system that will run Pandoc to convert my markdown file to html, and then open the html in my browser. I keep getting a "No Build System" error, and I can't ...
0
votes
1
answer
2k
views
Pandoc has stack size error?
I am attempting to use pandoc to convert an HTML file to a MediaWiki format. I'm getting the following error. (It is a large file, so it wouldn't surprise me if this is the issue.)
I have googled the ...
3
votes
1
answer
954
views
pandoc - markdown to man page tables not formatted (on msys2)
I am trying to use pandoc (if someone has a better conversion program I am all ears, please not ruby-dependent) to convert markdown files into manpages. It works fine until I go to do a doc with a ...
2
votes
1
answer
751
views
How to convert Markdown to TWiki using Pandoc?
Pandoc documentation says it can convert to TWiki. But with the newest version, it gives error "Unknown writer: twiki":
$ brew install pandoc
$ pandoc --version | head -4
pandoc 1.17.0.3
Compiled ...