Questions tagged [pandoc]

25 questions
19
votes
3 answers

In org mode, how do I reference a figure?

I have a figure declared like this: #+CAPTION: Google NGrams Viewer Search #+NAME: fig:ngrams [[file:ngrams.png]] And I'd like to reference it, so that I can write, e.g. Please refer to Figure [[some magic thing here]] and have it output Please…
Jonathan
  • 567
  • 5
  • 20
8
votes
2 answers

Export a docx file to org using pandoc but without the property drawers

If I export a docx file to org using Pandoc as follows pandoc -s test.docx -o test.org I get a nice org file with markup. However, I also get unwanted properties with each heading in the file, generated from the headings. For example: * Heading…
Edman
  • 1,167
  • 7
  • 13
5
votes
2 answers

How to convert the emacs manual to org format?

I like to read the Emacs manual on a hard copy but I would like to have a copy in org format to kill parts that I have understood and so to only keep what's important to remember (titles, functions and keybindings mostly). I have tried with pandoc…
4
votes
0 answers

org-mode HTML export - difference in behavior with org-html and org-pandoc

I have an example org-mode file with the following contents: - only text\\ only text\\ only text - image... (works with org-html but not pandoc-html because of no brackets around "file:" statement) #+ATTR_HTML: :width 15% …
hatmatrix
  • 1,046
  • 9
  • 18
4
votes
2 answers

in org-mode, a function to delete all properties drawers?

I use Pandoc to convert from HTML and Markdown to org-mode. The conversion leaves lots of extraneous org-mode PROPERTIES drawers. How can I direct org-mode to delete all PROPERTIES drawers? ADDITION: I'm using this shell script to run the…
incandescentman
  • 4,111
  • 16
  • 53
4
votes
3 answers

html to orgmode via pandoc- get rid of all #+BEGIN_HTML blocks

i tried converting html webpages to org mode file using a simple pandoc command: pandoc -o output.org R\ Seminar:\ Introduction\ to\ ggplot2.htm this works quite well but im left with tons of html blocks that look like this #+BEGIN_HTML
zeltak
  • 1,685
  • 11
  • 25
3
votes
3 answers

How do I live preview markdown, rendering math, checkboxes, etc.?

I’m using Spacemacs with markdown-mode and I’ve configured it according to Jason Blevins’ guide. Other things I’ve tried Pandoc works pretty well except when I set the —lua-filter=task-list.lua flag and I don’t have chackboxes to render (but it…
3
votes
1 answer

Convert math in org file to markdown file correctly

I'm trying to convert/export a org file to Markdown. Most Markdown supports math with $x^2$ or $$x^2$$. I tried ox-gfm and pandoc, but they don't seem to handle it correctly: org file: \[x^2\] $$x^2$$ $x^2$ \(x^2\) $x^2$ exported markdown…
Jasper
  • 131
  • 2
2
votes
1 answer

org-mode export with ox-pandoc: setting CSS for HTML5 output

The latest versions of emacs and ox-pandoc already provide a great output but I need to customize the HTML5 output by setting a CSS stylesheet that matches my company's templates. How can I do that? I tried adding: #+PANDOC_OPTIONS: css:…
Alberto
  • 133
  • 5
2
votes
0 answers

pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation not permitted)

I'm trying to render the output of a markdown file using C-c C-c p. On doing so, a webpage opens on my browser displaying pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation not permitted) How do I preview the file and…
Saurabh
  • 211
  • 1
  • 10
2
votes
1 answer

Unable to export markdown files with devanagari characters

Running emacs 25.2.2. And markdown installed from Melpa. If I export a file with devanagari characters, it produces a file sans devanagari characters! I did a bit of research and found out that markdown test.md -o test.html issued from a command…
deshmukh
  • 1,852
  • 13
  • 29
2
votes
2 answers

Org export via org-ref-->pandoc, bibliography using relative path

Can org-ref export through ox-pandoc using a relative path to the bibliography file? Export via org --> pandoc --> HTML succeeds when the org document contains an absolute path to the bib file. However using a path to the bib file relative to the…
Snelephant
  • 814
  • 1
  • 7
  • 17
2
votes
0 answers

ox-pandoc table and image export formatting. ATTR_LATEX and ATTR_HTML not behaving as expected

I have been using ox-pandoc to export my org-mode files (generally to pdf using pandoc and xelatex) but I am having a lot of trouble formatting images and tables. #+ATTR_LATEX commands for images is generally ignored, but I found a workaround for…
Nick
  • 33
  • 3
1
vote
1 answer

Specify arbitrary attributes for code blocks and keep them when converting with pandoc

Markdown and its different flavours have a number of interesting extensions, notably the [hl_lines attribute][0], which allows to highlight specific lines in a fenced code block, as illustrated here and here. This feature has actually been…
harabat
  • 31
  • 5
1
vote
1 answer

How do I get flyspell to ignore pandoc citations in markdown

Flyspell regularly shows pandoc citations as a spelling error in markdown documents. For example @chu2017 will come up as a spelling error for 'chu'. How can I get Flyspell ignore the citations and only check other words in the document?
1
2