Hi Marco,

Marco Falconi <marco.falc...@uniroma3.it> writes:

> I am trying to export to html a labeled latex special block (a theorem
> environment, defined by #+begin_theorem [...] #+end_theorem ). I have named 
> the theorem with
>
> #+NAME: thm:mv (I also tried with #+LABEL: and the behavior described below 
> does not change).
>
> I have a link to such block later in the body, in the form [[thm:mv]]. The 
> link works
> perfectly in the org file, however it is exported incorrectly to html.
>
> In fact, while the theorem environment gets exported in the html as
>
>    <div class="theorem" id="thm:mv">
>    <p>
>    [...]
>    </p>
>    </div>
>
> ,
>
> the link does not href to "#thm:mv" as expected, but to an auto-generated 
> label:
>
>     <p>
>     <a href="#orgd9d024a">1</a>
>     </p>
>
> I have tried to play around a bit with export options, but to no avail.
>
> Is this a known bug?

I also confirm this bug.  I've had a quick look.  It looks like
`org-export-get-reference' get fooled by trying to provide with a "new
reference".  I hope Nicolas can have a look because this area of the
code is quite complexe.

Thanks,

-- 
 Bastien

Reply via email to