From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Testing: org-export-e-html Date: Sat, 02 Jun 2012 10:34:15 +0530 Message-ID: <81ipfanw34.fsf@gmail.com> References: <87396i3p1w.fsf@gmail.com> <87y5o8365b.fsf@gmail.com> <87d35j2dir.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SagVw-00013o-CC for emacs-orgmode@gnu.org; Sat, 02 Jun 2012 01:04:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SagVu-0000EF-Cb for emacs-orgmode@gnu.org; Sat, 02 Jun 2012 01:04:35 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:62010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SagVu-0000Dp-3a for emacs-orgmode@gnu.org; Sat, 02 Jun 2012 01:04:34 -0400 Received: by pbbrp2 with SMTP id rp2so4024303pbb.0 for ; Fri, 01 Jun 2012 22:04:31 -0700 (PDT) In-Reply-To: (William Crandall's message of "Fri, 1 Jun 2012 19:56:28 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: William Crandall Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Crandall There is some confusion on your end :-). > --------------------------------------------------------- Org (input): > > Link and description, to anchor in headline: [[#directors][Directors]] > > Link and description, to anchor in paragraph: [[#bc][BC]] Remove the "#"es. > * <>Directors > > Paragraph with a /dedicated target/: <> > > -----------------------------------------------------------------[end] > 1. Both links out (first two p's), to id's in an and a

, > do not generate links (foo). You are using targets. So you shouldn't use "#"es. This was what Nicolas was trying to tell you. > 2. At both anchors, , in the

and the

, the tag > is not closed with an . This may be related to the errors > noted in point one, as the HTML is malformed without them. Put the HTML file in nxml-mode and do C-c C-n. I see no validation errors. The HTML file definitely is not malformed. [Context switch] Here is the modified Org file you should be using. When you are linking to headlines, use CUSTOM_IDs and *not* targets. Links to CUSTOM_IDs have a `#' in front while don't targets are *without* `#'es. --8<---------------cut here---------------start------------->8--- Link and description, to anchor in headline: [[directors][Directors]] Link and description, to anchor in paragraph: [[bc][BC]] * <> Directors Paragraph with a /dedicated target/: <> * Headline wiith CUSTOM_ID :PROPERTIES: :CUSTOM_ID: director-1 :END: #+target: invisible * Recommendation about using links Always link to headline using [[#director-1][Headline wiith CUSTOM_ID]]. Use targets when you want to jump to obscure location [[bc]]. Never use [[invisible][Invisible target]]. They will disappear on export. For more information on how links are structured see the [[http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00752.html][this post]]. --8<---------------cut here---------------end--------------->8--- Btw, thanks for your patience and sticking it out right through to the end. Jambunathan K.