emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <maus.david@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: (probably stupid) link question
Date: Sun, 13 Sep 2009 22:25:07 +0200	[thread overview]
Message-ID: <878wgiy4m4.wl%maus.david@gmail.com> (raw)
In-Reply-To: <4AAD110A.4020609@sift.info>

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

      reply	other threads:[~2009-09-13 20:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 15:34 (probably stupid) link question Robert Goldman
2009-09-13 20:25 ` David Maus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878wgiy4m4.wl%maus.david@gmail.com \
    --to=maus.david@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).