all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can I change the link name in TOC?
@ 2010-11-09  3:26 Water Lin
  2010-11-09  9:47 ` Sebastian Rose
  0 siblings, 1 reply; 2+ messages in thread
From: Water Lin @ 2010-11-09  3:26 UTC (permalink / raw)
  To: emacs-orgmode


While I generate the table of content of my org file, the link of each
sub-title will be something like #sec-2.2

But when I change the sequence of the title, the anchor will be changed.

I want to maintain permalinks for each anchors. Is it possbile to change
the #sec-2.2 into something like #test-keywords?

BTW: I am using Chinese for my sub-title, so I think use the title words
for anchor is not suitable.

Thanks

Water Lin

-- 
The Big Bang on Busy Reading: http://bigbang.WaterLin.org
Email: WaterLin@sohu.com

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

* Re: Can I change the link name in TOC?
  2010-11-09  3:26 Can I change the link name in TOC? Water Lin
@ 2010-11-09  9:47 ` Sebastian Rose
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Rose @ 2010-11-09  9:47 UTC (permalink / raw)
  To: Water Lin; +Cc: emacs-orgmode

Water Lin <WaterLin@sohu.com> writes:
> While I generate the table of content of my org file, the link of each
> sub-title will be something like #sec-2.2
>
> But when I change the sequence of the title, the anchor will be changed.
>
> I want to maintain permalinks for each anchors. Is it possbile to change
> the #sec-2.2 into something like #test-keywords?
>
> BTW: I am using Chinese for my sub-title, so I think use the title words
> for anchor is not suitable.
>
> Thanks
>
> Water Lin


This is, what custom IDs are for:

--8<---------------cut here---------------start------------->8---
* Headline
  :PROPERTIES:
  :CUSTOM_ID: myID
  :END:
--8<---------------cut here---------------end--------------->8---



Now refer to to "Headline" like this:

   <a href="my-file.html#myID">Headline</a>




 Sebastian 

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

end of thread, other threads:[~2010-11-09  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09  3:26 Can I change the link name in TOC? Water Lin
2010-11-09  9:47 ` Sebastian Rose

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.