From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Links to id:xxxxxx don't work in exported html Date: Fri, 9 Jan 2009 16:21:38 +0100 Message-ID: References: <20090108144916.GB5649@taupan.ath.cx> <20090109135012.GA29016@taupan.ath.cx> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLK6D-0007VQ-IY for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 11:20:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLK6C-0007UJ-L5 for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 11:20:40 -0500 Received: from [199.232.76.173] (port=47299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLK6C-0007U5-5F for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 11:20:40 -0500 Received: from mail-ew0-f13.google.com ([209.85.219.13]:44253) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLK6B-0005zV-Hs for emacs-orgmode@gnu.org; Fri, 09 Jan 2009 11:20:39 -0500 Received: by ewy6 with SMTP id 6so10670170ewy.18 for ; Fri, 09 Jan 2009 08:20:38 -0800 (PST) In-Reply-To: <20090109135012.GA29016@taupan.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: friedel@nomaden.org Cc: Emacs-orgmode mailing list Hi Friedrich, first of all, Org does expect that the file containing the link and the file containing the target have the same relative path both in the staging area (where the .org files are) and in the publishing area (where the .html files will be). I don't know how else to approach this. Second, if I understand correctly, the your links are located in "Collect.org", and the targets are in different files. This means that Org is confused about what files contain which anchors. The relation between files and anchors is stored in the file ~/.emacs.d/org-id-locations. It can be updated with M-x org-id-update-id-locations This list may come out of sync if you move entries from one file to another not using Org commands, but, for example, cut and paste with the mouse. Can you please check if updating helps? If not, can you take a look at the file org-id-locations and see what it has to say about the id's you are checking? If all this does not help, please make me a complete test case and I will try to reproduce it with that. - Carsten On Jan 9, 2009, at 2:50 PM, Friedrich Delgado Friedrichs wrote: > Hm... > > Carsten Dominik schrieb: >> Now you can use the ID's. The advantage is that, as you move >> links around, they will continue to work. So this is really >> great for Notes that you might want to re-organize. > ---Zitatende--- > > I can't get this to work. > > My config is > > org-publish-project-alist: > (("all" :auto-index t :base-directory "~/git/Org/" :publishing- > directory "~/opt/Org-Publish" :recursive t) > ("common" :auto-index t :base-directory "~/git/Org/" :publishing- > directory "~/opt/Org-Publish") > ("work-only" :auto-index t :base-directory "~/git/Org/ > work" :publishing-directory "~/opt/Org-Publish/work") > ("home" :auto-index t :base-directory "~/git/Org/home" :publishing- > directory "~/opt/Org-Publish/home") > ("work" :components > ("common" "work-only"))) > > I published with "all" and the snippet I posted before results in: > > > > > > > >
>

2 Notes

>
> > > > >
> >
> > The published file is Collect.org, and the links point to > Collect.html, however they reside > in different files (the first is in work/Sonstiges.org and the other > one is in Common.org). > > And I get relative links, even though I configured absolute > directories. > > However work/Sonstiges.html and Common.html contain the correct > anchors. > > Should I post a complete set of files for reproducing the problem? > > -- > Friedrich Delgado Friedrichs > TauPan on Ircnet and Freenode ;) > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode