* (probably stupid) link question
@ 2009-09-13 15:34 Robert Goldman
2009-09-13 20:25 ` David Maus
0 siblings, 1 reply; 2+ messages in thread
From: Robert Goldman @ 2009-09-13 15:34 UTC (permalink / raw)
To: Org Mode
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.
I looked at the "Handling Links" page in the buffer and I don't see any
obvious answer to this question. Is there some way to say "please rerun
the link-following search?"
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?
many thanks,
r
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (probably stupid) link question
2009-09-13 15:34 (probably stupid) link question Robert Goldman
@ 2009-09-13 20:25 ` David Maus
0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2009-09-13 20:25 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-13 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-13 15:34 (probably stupid) link question Robert Goldman
2009-09-13 20:25 ` David Maus
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).