emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: William Crandall <bc3141592@gmail.com>
Cc: emacs-orgmode@gnu.org, Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: Testing: org-export-e-html
Date: Sat, 02 Jun 2012 10:34:15 +0530	[thread overview]
Message-ID: <81ipfanw34.fsf@gmail.com> (raw)
In-Reply-To: <CAENLK5W7ZBkyB-r-fdoRG0u+SLsX9rAUywcRsCXu+BygJi_bZQ@mail.gmail.com> (William Crandall's message of "Fri, 1 Jun 2012 19:56:28 -0700")


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>>Directors
>
> Paragraph with a /dedicated target/: <<bc>>
>
> -----------------------------------------------------------------[end]


> 1. Both links out (first two p's), to id's in an <h> and  a <p>,
> do not generate links (<a href="#foo">foo</a>).

You are using targets.  So you shouldn't use "#"es.  This was what
Nicolas was trying to tell you.

> 2. At both anchors, <a>, in the <h2> and the <p>, the <a> tag
> is not closed with an </a>. 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>> Directors

Paragraph with a /dedicated target/: <<bc>>


* 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.

  reply	other threads:[~2012-06-02  5:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30  6:27 Testing: org-export-e-html (was: Drupal syntax on html-export) William Crandall
2012-05-30  7:08 ` Testing: org-export-e-html Sebastien Vauban
2012-05-30 11:07 ` Nicolas Goaziou
2012-05-30 23:50   ` William Crandall
2012-05-30 23:53   ` William Crandall
2012-05-31  4:28     ` Jambunathan K
2012-05-31 12:08     ` Nicolas Goaziou
2012-06-01  3:56       ` William Crandall
2012-06-01  6:42         ` William Crandall
2012-06-01 16:38         ` Nicolas Goaziou
2012-06-02  2:56           ` William Crandall
2012-06-02  5:04             ` Jambunathan K [this message]
2012-06-02  7:40               ` William Crandall
2012-06-02 10:26                 ` Jambunathan K
2012-05-31  6:42 ` Jambunathan K
2012-06-01  3:44   ` William Crandall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81ipfanw34.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=bc3141592@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).