11 votes

In org mode, how do I reference a figure?

Figured it out myself. Turns out with the latest pandoc and pandoc-crossref you can do this: #+CAPTION: Google NGrams Viewer Searches #+LABEL: fig:ngrams [[file:ngrams.png]] Then: Please refer to [...
Jonathan's user avatar
  • 597
9 votes
Accepted

In org mode, how do I reference a figure?

There is another way to reference figures, by using #+NAME: before the figure. For example: #+CAPTION: Example of the process #+NAME: fig:theprocess [[./Images/process.png]] And later in the place ...
Kostas Tsiligkiris's user avatar
9 votes

In org mode, how do I reference a figure?

You can also use org-ref. Then you can use ref:ngrams to reference a figure. This works well with LaTeX export. It probably works with pandoc too.
John Kitchin's user avatar
  • 11.9k
9 votes
Accepted

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

The drawers are added only if a header has additional attributes. One can use a simple Lua filter to remove all attributes from headers in pandoc's internal document format: function Header (header) ...
tarleb's user avatar
  • 473
4 votes

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

I think this is best solved on the level of pandoc conversion, with a pandoc filter. Create a file, say noattrs-filter.hs containing: import Text.Pandoc.JSON main = toJSONFilter noAttrs noAttrs :: ...
aplaice's user avatar
  • 2,176
4 votes

How to convert the emacs manual to org format?

Download the Emacs source from a GNU mirror and unpack it with tar xf. Run makeinfo --docbook doc/emacs/emacs.texi -o emacs.docbook to create an intermediate DocBook. Run pandoc --from docbook --to ...
Zeta's user avatar
  • 1,093
4 votes
Accepted

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

If you don't mind using a shell script to accomplish what you want, you can try: pandoc -t org file.md | sed -E "/^[[:space:]]+:/ d" > file.org This will remove all lines starting with one (or ...
Daniel's user avatar
  • 3,653
3 votes

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

From the solution linked to by ista (direct link to the solution), you can create a pandoc filter, say in file nodivs-filter.hs import Text.Pandoc.JSON main = toJSONFilter nodivs where nodivs (Div ...
aplaice's user avatar
  • 2,176
2 votes
Accepted

How to convert the emacs manual to org format?

...only keep what's important to remember... This doesn't answer your question directly, but it suggests some alternatives you might want to consider. If you use library Info+ then you can easily ...
Drew's user avatar
  • 77.5k
2 votes

Unable to export markdown files with devanagari characters

You can try to implement a function like this: (defun pandoc-md2html () "Compile markdown file to HTML, using pandoc." (interactive) (when buffer-file-name (message "Pandoc markdown to HTML ...
Maxim Kim's user avatar
  • 1,766
2 votes

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

That's either a bug or a feature in the ox-gfm package. Basically, the ox-gfm package defines an exporter that derives from the ox-md exporter, which derives from the ox-html exporter. The html ...
db48x's user avatar
  • 18.1k
1 vote

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

The reason for this is the md export backend is derived from the html backend and does not redefine how time stamps are exported, so it falls back to however the html backend exports time stamps. ...
NickD's user avatar
  • 29.8k
1 vote
Accepted

How do I get flyspell to ignore pandoc citations in markdown

Try adding the following to your init.el: (add-hook 'markdown-mode-hook '(lambda () (setq flyspell-generic-check-word-predicate 'my-pandoc-flyspell-verify))) (defun my-pandoc-...
scaramouche's user avatar
  • 1,734
1 vote

How do I send docx formatted text from org-mode to the clipboard with pandoc?

I wrote ox-clip (https://melpa.org/#/ox-clip) and it works with your example. It covers windows, Mac and Linux for this. The gist is similar to your approach, but it goes through html. The linux ...
John Kitchin's user avatar
  • 11.9k
1 vote
Accepted

How can I get a numbered check list in org-mode?

[Made comment into an answer] Why are you using pandoc? Org mode can export to HTML5 natively and the above file looks fine when so exported. So try exporting without pandoc and see if that works: C-...
NickD's user avatar
  • 29.8k
1 vote
Accepted

Pandoc-mode does not find pandoc-main-hydra/body

[Summarizing the comments as an answer] Versions of pandoc-mode before April 1, 2015 did not include a hydra. The hydra branch was merged in version 2.12 of pandoc-mode. So if an earlier version of ...
NickD's user avatar
  • 29.8k
1 vote
Accepted

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

You could place the style in an HTML block: #+BEGIN_HTML <style> h1, h2 { color: #00abff; } </style> #+END_HTML
tarleb's user avatar
  • 473
1 vote
Accepted

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

[This is a supplement to my other answer: it has very little to do with emacs, but it does address the common question of how to sustainably carry a patch for some upstream component, in the context ...
NickD's user avatar
  • 29.8k
1 vote
Accepted

Org-mode define face for pandoc citation syntax

This works for me. (defface pandoc-citation-face '((t :foreground "yellow")) "Face for pandoc citation syntax") (font-lock-add-keywords nil '(("\\[@.+?\\]" 0 'pandoc-citation-face)))
John Kitchin's user avatar
  • 11.9k
1 vote

Convert math in org file to markdown file correctly

The markdown exported in org is generic: it does not handle the many flavors that are extant. You are probably better off using pandoc to do conversions to markdown: pandoc -r org -w markdown_github ...
NickD's user avatar
  • 29.8k
1 vote

org-mode inline html while exporting using ox-pandoc

This happens as ox-pandoc tries to work around some of pandoc's missing org-mode features by first exporting via the org-mode org exporter and calling pandoc on the result. The org exporter discards ...
tarleb's user avatar
  • 473
1 vote

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

Try this Use pandoc to convert to HTML to LaTex. pandoc -o output.latex R\ Seminar:\ Introduction\ to\ ggplot2.htm Use pandoc to convert LaTex to Org pandoc -o output.org output.latex Tested ...
Melioratus's user avatar
  • 4,644

Only top scored, non community-wiki answers of a minimum length are eligible