Pandoc: Image caption is missing if ATTR_LATEX goes after CAPTION in org mode

Created on 18 Jul 2019  路  4Comments  路  Source: jgm/pandoc

tmp.org:

* Heading

  #+ATTR_LATEX: :float nil
  #+CAPTION: Attribute before caption
  [[file:pic.png]]

  #+CAPTION: Attribute after caption
  #+ATTR_LATEX: :float nil
  [[file:pic.png]]

  #+CAPTION: No attributes
  [[file:pic.png]]

Result:

$ pandoc -f org -t markdown tmp.org 
Heading
=======

![Attribute before caption](pic.png)

![](pic.png)

![No attributes](pic.png)

Expected result

$ pandoc -f org -t markdown tmp.org 
Heading
=======

![Attribute before caption](pic.png)

![Attribute after caption](pic.png)

![No attributes](pic.png)

Version

$ pandoc --version
pandoc 2.7.2
Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.7.7
Default user data directory: /Users/grigory/.local/share/pandoc or /Users/grigory/.pandoc
Copyright (C) 2006-2019 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
Org-mode reader

All 4 comments

Thanks for the report. Should be fixed now.

@tarleb Thank you!

Facing similar issue when using minted on a code block. #+ATTR_LATEX is being ignored. Any workarounds?

#+ATTR_LATEX: :options frame=single
#+BEGIN_SRC bash
conda create --name speech python=3.6
conda activate speech
#+END_SRC

@prajwaljpj this closed issue is not a good place to discuss this. Please open a new issue, idealy complete with input, expected LaTeX output, and actual output.

Was this page helpful?
0 / 5 - 0 ratings