Questions tagged [pandoc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
3k views

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 [[...
6
votes
2answers
185 views

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, ...
5
votes
3answers
928 views

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 ...
4
votes
0answers
318 views

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:" ...
3
votes
2answers
158 views

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 ...
3
votes
1answer
189 views

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
votes
1answer
46 views

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 ...
2
votes
2answers
525 views

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. ...
2
votes
0answers
538 views

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 ...
1
vote
1answer
488 views

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: ...
1
vote
1answer
21 views

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 ...
1
vote
1answer
210 views

org-mode inline html while exporting using ox-pandoc

I am not able to use inline html through macro in org-mode when exporting through ox-pandoc. For example if I use @@html:<span class="small">@@Small Text@@html:</span>@@ and export the ...
1
vote
1answer
1k views

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 ...
0
votes
3answers
51 views

Avoid “`timestamp-wrapper`” span around timestamps when exporting org to markdown

Version info: Emacs: 26.3 Org: 9.1.9 Am trying to export org notes to markdown format for publishing. Am using the org-gfm-export-as-markdown to preview the markdown that will be generated. Later I ...
0
votes
1answer
37 views

Org-mode define face for pandoc citation syntax

I would like to set a new face in org-mode for pandoc citation syntax which looks like this: [@bibtexkey{555-563}] Custom face: (defface pandoc-citation-face '((t :foreground "yellow")) "Face ...
0
votes
0answers
12 views

How to list or autocomplete pandoc-crossref citations in an org-mode buffer?

Is there a way to autocomplete when typing a pandoc-crossref style references such as {#fig:foo} or #+LABEL: fig:foo ? Currently, I have to remember all these names/labels in the org-mode buffer and ...
0
votes
0answers
37 views

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 ...
0
votes
0answers
41 views

Get Emacs Markdown markdown mode to use Rstudio pandoc

I installed markdown mode for Emacs. Now I need it to see a version Pandoc I have on my machine. Markdown Mode for Emacs I put this in my init file and loaded it. (custom-set-variables '(...
0
votes
0answers
175 views

How to properly render markdown latex in emacs cli using markdown-mode and pandoc?

I have been facing lately the following problem. I have installed markdown-mode and I've been using pandoc behind the scenes to communicate with markdown-mode and do the rendering. I've been trying ...
0
votes
1answer
171 views

How to make markdown-live-priview-mode use pandoc?

I'm having a problem where in markdown-live-preview-mode tables are not correctly converted to HTML from markdown. I'm using markdown-mode. I've tried using pandoc to create the HTML and pandoc ...
0
votes
0answers
93 views

Getting error exporting org doc because it has #+TITLE [duplicate]

Getting this error after installed the latest org and ox-pandoc packages. apply: Wrong type argument: listp, #("Some title" 0 48 (:parent (#0))) Any pointers? Update: This is org-version: Org ...