[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: Exporting internal link to special latex block [9.3.7 (9.3.7-14
From: |
Bastien |
Subject: |
Re: Bug: Exporting internal link to special latex block [9.3.7 (9.3.7-14-gb2b587-elpa @ /home/lobo/.emacs.d/elpa/org-20200720/)] |
Date: |
Sat, 05 Sep 2020 12:28:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Marco,
Marco Falconi <marco.falconi@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
- Re: Bug: Exporting internal link to special latex block [9.3.7 (9.3.7-14-gb2b587-elpa @ /home/lobo/.emacs.d/elpa/org-20200720/)],
Bastien <=