jkitchin / org-ref

org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it.
GNU General Public License v3.0
1.36k stars 243 forks source link

HTML export issue with images #487

Closed darknmt closed 7 years ago

darknmt commented 7 years ago

Hello,

Puting label in the #+CAPTION header of an image makes the html export work improperly. For example the following text in org

#+CAPTION: Homotopy operator \( \varepsilon \). label:homotopy-operator
file:../img/2017-08-13-homotopy-operator.png

is exported to

<div class="figure">
<p><img src="../img/2017-08-13-homotopy-operator.png" alt="2017-08-13-homotopy-operator.png" />
</p>
<p><span class="figure-number">Figure 1: </span>Homotopy operator \( \varepsilon \). <div id="homotopy-operator"></p>
</div>
</div>
</div>

which has the text following that image centered.

jkitchin commented 7 years ago

That is an org-mode issue. Why do you think that is improper?

darknmt commented 7 years ago

The </div> and </p> tags are misplaced, so if I have text following that image, it is also included in the same div and gets justified.

jkitchin commented 7 years ago

That is probably an org-mode issue unless you can confirm it does not happen with org-ref not loaded. You should ask about it on the org-mode mailing list.