emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HTML export: links to internal anchors fail when using labels
@ 2013-05-09 12:56 Stefan Vollmar
  2013-05-09 13:24 ` Christian Moe
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Vollmar @ 2013-05-09 12:56 UTC (permalink / raw)
  To: Org-mode Mailing List

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

Hallo,

with a current version of Org-mode (release_8.0.2-101-gce5988) this seems to generate a link when exporting to HTML (as documented and expected):

# <<myanchor>>
...
[[myanchor]] something


However, in the following example no link is generated and the text that should be the link's label (here: "abc") is set in italic:

# <<myanchor>>
...
[[myanchor][abc]]

This looks like a bug to me.
Many thanks in advance for any help with this.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HTML export: links to internal anchors fail when using labels
  2013-05-09 12:56 HTML export: links to internal anchors fail when using labels Stefan Vollmar
@ 2013-05-09 13:24 ` Christian Moe
  2013-05-09 13:51   ` Stefan Vollmar
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Moe @ 2013-05-09 13:24 UTC (permalink / raw)
  To: Stefan Vollmar; +Cc: Org-mode Mailing List


Hi,

Targets like <<myanchor>> used to export to the visible text "myanchor",
so a comment line like

 # <<myanchor>>

was needed to hide them. This is no longer the case, and commented
targets are neither necessary, nor do they work. (This change has been
extensively discussed on the list, I think, but perhaps the docs should
make it clearer.)

This now works:

 <<myanchor>>Here is some target text.
 ...
 [[myanchor][This is a link.]]


Yours,
Christian


Stefan Vollmar writes:

> Hallo,
>
> with a current version of Org-mode (release_8.0.2-101-gce5988) this seems to generate a link when exporting to HTML (as documented and expected):
>
> # <<myanchor>>
> ...
> [[myanchor]] something
>
>
> However, in the following example no link is generated and the text that should be the link's label (here: "abc") is set in italic:
>
> # <<myanchor>>
> ...
> [[myanchor][abc]]
>
> This looks like a bug to me.
> Many thanks in advance for any help with this.
>
> Warm regards,
>  Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HTML export: links to internal anchors fail when using labels
  2013-05-09 13:24 ` Christian Moe
@ 2013-05-09 13:51   ` Stefan Vollmar
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Vollmar @ 2013-05-09 13:51 UTC (permalink / raw)
  To: Christian Moe; +Cc: Org-mode Mailing List

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

Dear Christian,

On 09.05.2013, at 15:24, Christian Moe wrote:

> Targets like <<myanchor>> used to export to the visible text "myanchor",
> so a comment line like
> 
> # <<myanchor>>
> 
> was needed to hide them. This is no longer the case, and commented
> targets are neither necessary, nor do they work. (This change has been
> extensively discussed on the list, I think, but perhaps the docs should
> make it clearer.)
> 
> This now works:
> 
> <<myanchor>>Here is some target text.
> ...
> [[myanchor][This is a link.]]


It looked to us as if the [[myanchor]] version still worked with (old-style) commented anchors - but we were mistaken: the real reason it worked was that we had a simple, one-word heading - so no contradiction there.

And you were also right about the extensive discussions - I had simply forgotten about that - I consider the current solution a great improvement - everything works fine now. Thanks!

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4490 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-09 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-09 12:56 HTML export: links to internal anchors fail when using labels Stefan Vollmar
2013-05-09 13:24 ` Christian Moe
2013-05-09 13:51   ` Stefan Vollmar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).