Skip to main content

All Questions

Tagged with
0 votes
1 answer
43 views

pandoc/Markdown: how to remove trailing commas from list template?

Suppose I have YAML list (or other supported format) that I want to print as a comma-separated list in a markdown format. data.yml: --- items: - item1 - item2 - item3 --- template....
Brian McFarland's user avatar
0 votes
1 answer
221 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 \[ ....
Teddy C's user avatar
  • 357
0 votes
1 answer
551 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 } ...
Jewel Paresh Limbochiya's user avatar
1 vote
2 answers
872 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 ...
Dave's user avatar
  • 929
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=&...
ChrisAga's user avatar
  • 141
4 votes
0 answers
838 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 ...
DigitalNomad's user avatar
  • 1,718
0 votes
1 answer
501 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,...
WoJ's user avatar
  • 3,263
0 votes
0 answers
270 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 ...
Shadow43375's user avatar
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 ...
Porcupine's user avatar
  • 473
4 votes
2 answers
1k 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/*....
leun4m's user avatar
  • 364
2 votes
1 answer
500 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 ...
smilingbuddha's user avatar
11 votes
2 answers
5k 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 :...
agentofuser's user avatar
  • 7,447
1 vote
0 answers
1k 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 ...
yolegu's user avatar
  • 21
4 votes
1 answer
2k views

How do I use Pandoc's extensions correctly?

This is in my .md document: ![Step 1](Slide1.png){ width=100px } ![Step 2](Slide2.png){ width=100px } ![Step 3](Slide3.png){ width=100px } ![Step 4](Slide4.png){ width=100px } ![Step 5](...
JMC's user avatar
  • 158
8 votes
1 answer
3k views

Make pandoc ignore css style class

I'm trying to convert an HTML file to Markdown using Pandoc, but I'm having a hard time finding the correct options. I would like convert the entire HTML file to the simplest Markdown possible. That ...
Seanny123's user avatar
  • 391
3 votes
1 answer
426 views

How to use Pandoc with double-byte characters?

I am trying to convert a Markdown document to PDF. The following works using pandoc test.md -o test.pdf: # Test Testing But this # Test 日本語 gives me an error: ! Package inputenc Error: Unicode ...
ceiling cat's user avatar
  • 4,557
6 votes
1 answer
5k views

Compile PDF book from multiple Markdown files

I have a folder structure like this, with recipe .md files in directories according to theme: Recipes |- Mains | |- recipe1.md | |- recipe2.md |- Desserts |- recipe3.md ...
John L. Godlee's user avatar
3 votes
2 answers
5k views

When converting txt to docx using pandoc, how to specify default paragraph style?

I am trying to convert a txt file (markdown) 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 ...
Jason's user avatar
  • 315
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 ...
Fried Brice's user avatar
3 votes
1 answer
1k 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 ...
ehiller's user avatar
  • 334
2 votes
1 answer
343 views

Format to generate .tex, .pdf and .md from?

I've used Pandoc to generate .md, .tex, .pdf from .tex and .xhtml files. In tex I am using BibTeX and in ODT (save-as .xhtml) I am using Zotero to insert my citations. Currently neither .tex nor ....
A T's user avatar
  • 801
1 vote
1 answer
2k views

Pandoc not converting Markdown list to LaTeX properly

I cannot seem to get Pandoc to convert my Markdown documents to PDF (via LaTeX) properly. The problem seems to come from how I am formatting my lists. If I use the following command pandoc -i test.md -...
brandonaut's user avatar
3 votes
1 answer
1k views

Pandoc options to convert LaTeX flavored Markdown to HTML

The aim is to convert a Markdown file (file.md) to a html file (file.html). The Markdown file contains formulas specified in LaTeX specified between two dollar ($) signs. Example: The resulting ...
willeM_ Van Onsem's user avatar
50 votes
3 answers
59k views

correctly sizing PNG images in markdown with pandoc for html/pdf/docx

I am trying to use markdown with pandoc to convert a single document into html, pdf, and docx. It's an extremely simple document containing only math-less text and a few images. The images are in ...
user46976's user avatar
  • 1,548
9 votes
3 answers
6k views

Word count for markdown?

Is there a way to get a word count of natural language words in Markdown (or better, Pandoc Markdown), via the command line? It's possible to just use wc to get a very rough estimate, but wc is naive,...
naught101's user avatar
  • 1,433
2 votes
2 answers
5k views

Include files in Markdown document with Pandoc (except Haskell)

I use Pandoc to create Reveal.js presentations from Markdown documents, having switched to it from Google Slides. From the beginning I decided that presentations for different events and lectures are ...
certainlyakey's user avatar
1 vote
2 answers
2k views

Image Identifiers and List of Images with pandoc?

I have a text written in markdown (with pandoc extensions) with several image-references. Now I need to build a table or list with these images with a reference to the page they appear on. Just ...
mark's user avatar
  • 11
0 votes
1 answer
737 views

Compiling markdown Simplenotes with pandoc.vim and simplenote.vim

I would like to use pandoc.vim to compile markdown Simplenotes that I edit in Vim using simplenote.vim. To use pandoc.vim I set my Simplenote file type to pandoc with let g:SimplenoteFiletype = "...
Richard Herron's user avatar
1 vote
1 answer
1k views

using Jekyll to generate HTML-based slideshow presentations from Markdown source?

I want to create slick HTML-based slideshows to use for giving presentations. I've found a couple that I like, such as scrolldeck.js. Basically it's a static site within a folder, i.e. a single ...
incandescentman's user avatar
-1 votes
1 answer
714 views

Utility to automatically convert markdown content to HTML on-the-fly within an HTML page? [closed]

Is there a utility that will automatically convert my Markdown content to HTML on-the-fly within an HTML page? So that I could easily embed markdown content within an HTML page like so? <BODY&...
incandescentman's user avatar

15 30 50 per page