From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Re: Reg: Publishing in html using property tags Date: Mon, 15 Aug 2011 12:39:05 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsrId-00005F-OV for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 03:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsrIc-00081K-6y for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 03:09:27 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:61595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsrIb-00080v-Rf for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 03:09:26 -0400 Received: by yib2 with SMTP id 2so3262329yib.0 for ; Mon, 15 Aug 2011 00:09:25 -0700 (PDT) In-Reply-To: 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: Bodhi Cc: emacs-orgmode@gnu.org Hi Bodhi, On Mon, Aug 15, 2011 at 9:20 AM, Bodhi wrote: > Hi Puneeth, > Let us assume I have two files: foo.org and bar.org. > foo.bar contains: > :PROPERTIES: > :CUSTOM_ID: testing > :END: > > bar.org contains > [[CUSTOM_ID:testing]] > > Now, I wish to click on bar.org's link, and it should open up the file > foo.org. Is there a way to do so? To be more specific, I wish to put any > link without any relative or absolute addressing, and I should still be able > to jump to links, using some kind of invisible data base which org-mode > uses. And I wish to convert it to html for publishing these documents, using > the htmlize.el by Niksic. To be able to do this, you should let org-mode create a universal ID for the heading that you want to link to. The following steps should help you do this. 1. Make sure you have the org-id module loaded. : (require 'org-id) 2. In the file foo.org, go to the first heading (presuming that's the heading you want to link to). 3. Call the function =org-store-link=. : M-x org-store-link 4. Go to the location in bar.org, where you want to insert the link. 5. Call the function =org-insert-link=. : M-x org-insert-link Use the arrow keys to select the link you want to insert, from the list. HTH, Puneeth