From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: (probably stupid) link question Date: Sun, 13 Sep 2009 22:25:07 +0200 Message-ID: <878wgiy4m4.wl%maus.david@gmail.com> References: <4AAD110A.4020609@sift.info> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmvdP-0001hp-Lg for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 16:25:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmvdK-0001hB-KF for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 16:25:18 -0400 Received: from [199.232.76.173] (port=50069 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmvdK-0001h8-DG for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 16:25:14 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:41003) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmvdK-0003y9-3s for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 16:25:14 -0400 Received: by fxm26 with SMTP id 26so1823139fxm.42 for ; Sun, 13 Sep 2009 13:25:12 -0700 (PDT) In-Reply-To: <4AAD110A.4020609@sift.info> 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: Org Mode At Sun, 13 Sep 2009 10:34:34 -0500, Robert Goldman wrote: > > I've saved a link to a latex file using org-save-link, but the link is > not good enough to find the piece of the file I want. That is, Org-mode > tries to jump to the link, but finds only the FIRST match, and it so > happens that the location I wanted was the second or third. Or fourth, or fifth... IMO using the default determin-link-target approach of orgmode does not work well if you want to link to specific parts of a (LaTeX) file: I remember that org-store-link uses the current paragraph as the link target and that does not work well if the so created target is a word that appears more than once in your text (as it is in your case) or a whole paragraph, that *may* get changed slightly with the result, that orgmode wouldn't find the target to jump to. > Or should I have been dropping an anchor into the latex file somehow, > figuring that the link to "Summary" was just going to behave badly? I solved the problem exactly in this way: I hacked down my very own function that inserts a LaTeX macro with an uuid and stored a link to this uuid. I used it to mark open questions/paragraphs/todos in my master thesis -- with the desired effect, that I had an orgmode todo list that showed the things I had to to. Merely the elisp function got lost somehow so I cannot provide it at the moment. I'll see if I can recreate the function during my next hacking hours. Regards, -- David -- OpenPGP... 0x316F4BE4670716FD Jabber.... dmjena@jabber.org Email..... maus.david@gmail.com ICQ....... 241051416