2,687 questions
2
votes
0
answers
29
views
Forcing Markdown headers to custom numbering
I am trying to generate custom-named headers in PDF files from Markdown. I am using LaTeX and the Eisvogel template.
I want to edit the numbering of the Markdown headers, i.e., the single hash (#), ...
0
votes
0
answers
70
views
x "! Package longtable Error: longtable not in 1-column mode." from twocolumn article (extarticle) and longtable for (raw) markdown tables
My little demo example is given as follows:
---
output:
pdf_document:
latex_engine: xelatex
keep_tex: no
documentclass: extarticle
classoption: "a4paper,8pt,oneside,twocolumn"
...
3
votes
1
answer
96
views
R/Exams latex output problem using exams2pandoc()
TLDR: exams2pandoc() does not produce the same latex source produced by exams2pdf()
A full description of the problem is the following. I wrote an exercise in file ex1.qmd (screenshot) with the ...
3
votes
2
answers
109
views
How to use Haskell `do` notation with multiple monad constraints
I'm still quite new to Haskell and don't have a great grasp of monads intuitively. I'm trying to write the function below:
applyPandocFilters :: (MonadIO m, PandocMonad m) => Pandoc -> m Pandoc
...
0
votes
0
answers
77
views
Pandoc Markdown prevent page break in code blocks exported to PDF
I use Pandoc to export my Markdown to PDF. I sometimes include code blocks that are only 5 lines. They become unreadable if the PDF has a page break inside the code block.
How can I instruct either ...
0
votes
0
answers
252
views
Pandoc and LaTeX in a Docker container with customized Dockerfiles
Performed a git clone of the Pandoc Dockerfiles on GitHub: https://github.com/pandoc/dockerfiles/tree/main
When using the pandoc/extra:latest-ubuntu Docker image, I can run Docker and convert simple ...
1
vote
0
answers
50
views
knitr: Set default format for external image files (like with auto_pdf option)
Is there a way to set the default graphics format for files given to knitr's include_graphics() function?
Its auto_pdf = TRUE is close to what I want (i.e. it chooses PDF files over files with ...
1
vote
1
answer
222
views
Using --reference-doc with the pandoc Obsidian plugin to export word documents
Recently I have adopted a workflow of using Obsidian to take notes, but my employer requires me to use Word to create documents. Since I like using Obsidian and vim keybinds, I was looking into using ...
1
vote
0
answers
75
views
How to insert page breaks when creating docx with pandoc and php?
I've searched several posts here, but none of the solutions worked. Or I'm doing something wrong somewhere else lol.
I'm creating a report in docx (originally, an html) with Pandoc (currently I'm ...
0
votes
0
answers
186
views
Pandoc docx to LaTeX (custom writer)
I would like to use Pandoc to convert docx documents to LaTeX, where I have some custom commands to fill from the docx to the preamble of my LaTeX template. I took a look at the default.latex template,...
-1
votes
1
answer
116
views
How can I remove pandoc EPUB links in markdown conversion?
I am using the following shell command to convert from EPUB to Markdown,
pandoc "input.epub" -t gfm-raw_html -o output.md
It's working well, except for the fact that EPUB links remain, ...
1
vote
1
answer
225
views
How do I include a markdown file in another markdown file using GLFM in pandoc via a Lua filter?
I am new to pandoc/Lua. I have a markdown file from our Gitlab repository I would like to locally convert using pandoc. The file contains ::include directives.
I have started doing a Lua filter for ...
1
vote
0
answers
41
views
How to preserve MathJax/LaTeX formatting converting from md to org
If I get a mathematical answer from Google Gemini, I can choose copy, then paste it into Emacs. At this point it's presumably markdown, so I save it as somemath.md. When I look at it, it has all the ...
0
votes
1
answer
37
views
Preventing pandoc from adding a space after comma used as a decimal separator in math mode
I am using pandoc to convert markdown files containing TeX bits to html.
Because the text is in Italian, I want to use comma as a decimal separator. However, pandoc keeps adding a space after the ...
0
votes
1
answer
80
views
Pandoc Markdown > Word conversion: On Windows, where do I put custom-reference.docx
I've set up a Pandoc custom-reference.docx template, but I'm unsure if I have it in the wrong directory or I need to add something to my pandoc command.
I've used the command
pandoc -o custom-...
0
votes
1
answer
77
views
Add an HTML class to a paragraph using curly braces syntax
I'd like to append HTML attributes to paragraphs in the same way I can do it for headings, links, images, etc., like so:
# My nice heading {.some-class}
{.some-class}
[a link](...
1
vote
1
answer
49
views
Prevent Pandoc from generating autolinks in Markdown [closed]
I'm converting docx to Markdown using Pandoc.
Some links are converted to Markdown autolinks. I would like switch off the autolinks generation in Pandoc, but did not find a way to do that.
Background: ...
0
votes
0
answers
326
views
Pandoc: can we use Word as a template or reference
I've been trying to use Microsoft Word as a template with Pandoc, but I'm stuck and not sure if what I want to do is even possible. My goal is to have a Word document with a cover page where I can ...
0
votes
0
answers
43
views
Pandoc: multiple sets of endnotes in an EPUB
I'm trying to make an EPUB book with two "parallel" sets of endnotes. The content itself is an old book, and the two sets of endnotes are supposed to be commentaries/annotations from two ...
1
vote
1
answer
115
views
Is there a way to include latex symbols in the pandoc title metadata (like -M title "$x\rightarrow y$" for example)?
I would like to run a command of the form
'pandoc foo.md -o foo.tex -M title='Some Notes on $x^{y^z}\pi$' --template=mytemplate.pandoc
where mytemplate.pandoc uses $title$ to print a title, put the ...
0
votes
0
answers
40
views
Why does Pandoc add "\[" tags to Markdown?
I'm using Pandoc to convert LaTeX to Markdown. The conversion is great, except Pandoc adds "[" and "]" all over (example below). How can I stop that?
1. \[
\] **a heading ...
0
votes
1
answer
176
views
How do I convert a Latex document containing Tikz pictures to HTML?
I need to convert a Latex document containing Tikz pictures to HTML. The following is an example document example.tex:
\documentclass[a4paper]{report}
\usepackage{tikz}
\usetikzlibrary{automata, ...
0
votes
1
answer
116
views
Pandoc adding line break tags to HTML Table Code
I am using Rmarkdown and Pandoc with a custom template to make a report where I have a table showing the users who have approved the content of a report. In my template, I've put this signature block ...
0
votes
0
answers
59
views
How to force <table border="1"> in pandoc without CSS?
I want pandoc to set border="1" in the <table> tag of the HTML pandoc produces.
I am forced to use the workaround
$ pandoc ... | perl -pwle 's/<table/$& border="1"/'
...
0
votes
1
answer
194
views
What dependencies does Pandoc-generated latex require? [duplicate]
I have this markdown that I'd like to \include{} in a larger latex document.
$ cat example.md
# heading
- Item 1
- Item 2
```bash
Code block
```
If I run that through pandoc 2.9.2.1 (Debian 11) I ...