emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Testing: org-export-e-html


From: Nicolas Goaziou
Subject: Re: [O] Testing: org-export-e-html
Date: Thu, 31 May 2012 14:08:00 +0200

Hello,

William Crandall <address@hidden> writes:

> Thanks for clarifying link syntax.
> I think I'm more than half way there!
>
> I can now create targets/destinations:
>
> This:
>     ** <<crandall>>BC Crandall
>
> becomes:
>     <h3 id="sec-1-1"><a id="crandall" name="crandall"/>BC Crandall</h3>
>
> As expected.
>
>
> But creating a link TO that "id" target eludes me.
>
> This:
>     [[#crandall][BC Crandall]]
>
> becomes:
>     <i>BC Crandall</i>
>
> Was expecting:
>     <a href="#crandall">BC Crandall</a>

Again, "#crandall" syntax should be used to target an headline with
"crandall" as value for its custom-id property. See section 4.2 in the
manual.

--8<---------------cut here---------------start------------->8---
* BC Crandall
  :PROPERTIES:
  :CUSTOM_ID: crandall
  :END:

  [[#crandall][Description]]
--8<---------------cut here---------------end--------------->8---


If you are linking to a target, simply call its name.

--8<---------------cut here---------------start------------->8---
* <<crandall>>BC Crandall

  A [[crandall][link]] to headline [[crandall]]
--8<---------------cut here---------------end--------------->8---

Notice the difference between the link with or without a description.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]