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: Thu, 31 May 2012 09:58:48 +0530	[thread overview]
Message-ID: <81bol5m0sf.fsf@gmail.com> (raw)
In-Reply-To: <CAENLK5VMdj9BMG2E2qVV0R-ML8w=ZUKz+r+uzpNTJy=HiOiTZQ@mail.gmail.com> (William Crandall's message of "Wed, 30 May 2012 16:53:05 -0700")

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


For some reasons, the link type becomes "custom-id".  See the attached
files - links.org and links.el.


[-- Attachment #2: links.el --]
[-- Type: application/emacs-lisp, Size: 3089 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: links.org --]
[-- Type: text/x-org, Size: 196 bytes --]

* <<aaaa>> BC Crandall
  :PROPERTIES:
  :CUSTOM_ID: bbbb
  :END:

* Link1

#+target: cccc

[[#aaaa][Some description]]


* Link2

[[#bbbb][Some description]]

* Link3

[[#cccc][Some description]]

[-- Attachment #4: Type: text/plain, Size: 2563 bytes --]


William Crandall <bc3141592@gmail.com> writes:
> Hello Nicolas,
>
> 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>
>
>
> I was expecting that link (not italicized) because
> of the <a id="crandall"/> in the <h3>, in that file.
>
> Sorry if I'm being obtuse here!
>
> Thanks again for your help,
>
> -BC
>  
>
>     Hello,
>     
>     William Crandall <address@hidden> writes:
>     
>     > 2a. Internal HTML links (#)
>     >
>     >
>     > Neither links nor destinations make it into the html.
>     >
>     > This:
>     >
>     >     "an internal section link [[#directors][Directors]]."
>     >
>     > becomes:
>     >
>     >    "an internal section link: <i>Directors</i>.
>     >
>     > Was expecting (without italics):
>     >
>     >    ""an internal section link: <a href="#directors">Directors</a>"
>     
>     I think your mixing up syntax here: "#" stands for custom-id links.
>     
>     In other words, [[#directors][Directors]] is a link pointing to an
>     headline whose CUSTOM-ID property is "directors". If there's no such
>     headline, it will return Directors italicized.
>     
>     If you're targeting an headline, provide it an appropriate CUSTOM-ID.
>     Otherwise, just use a target.
>     
>     
>     > 2b. This target:
>     >
>     >    # <<directors>>
>     >    * A First Section
>     >
>     > becomes:
>     >
>     >    <div id="outline-container-1" class="outline-2">
>     >    <h2 id="sec-1">A First Section</h2>
>     >    <div class="outline-text-2" id="text-1">
>     >
>     > Was expecting:
>     >
>     >    <div id="outline-container-1" class="outline-2">
>     >    <h2 id="sec-1"><a name="directors" id="directors"></a>A First
>     > Section</h2>
>     >    <div class="outline-text-2" id="text-1">
>     
>     "# <<target>>" syntax has been dropped since every target is now
>     "invisible".
>     
>     Use :
>     
>     * <<directors>> A First Section
>     
>     instead.
>     
>     
>     Regards,
>     
>     -- 
>     Nicolas Goaziou
>     

  reply	other threads:[~2012-05-31  4:29 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 [this message]
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
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=81bol5m0sf.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).