emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: most robust linking practices?
Date: Thu, 16 Jan 2014 16:09:48 -0500	[thread overview]
Message-ID: <CAJ51ETqTOtr98xLwT2Qu7fmFwo7R3aMoPCJ8-WDW12vFqYT7qQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

Hi all,

I am using org-mode in a multiuser environment, (i.e. many people have
access to the org-files). I create org-files with links in them to other
files, and I am trying to find the most robust way to do that.

For example, in one file in section I type C-c l to store a link, and then
later C-c-C-l to insert it in another file. That link looks like this:

[[file:~/dft-book/dft.org::*Introduction%20to%20DFT][Introduction to DFT]]

It works for me, but not for other users, because of the ~ in it.

I have tried using org-id, with mixed results.  I set this up in my init
file

;; automatically create ids for links
(require 'org-id)
(setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id)


Now, when C-c l is typed, it creates a unique id in the heading, and the
link looks like this:
[[id:065443d5-59d7-4119-b530-7b63af28349b][Background]]

I haven't figured out a detail though. If the original file is not open,
org-mode does not seem to find it when I click on it.

Am I missing some setup for org-id? I can see here
http://orgmode.org/worg/org-api/org-id-api.html that there is some concept
of a database of ids, but I didn't see anything about using it.

How would another user click on that id link and get to the file if they
didn't have the database?

Finally, the end goal here is to package a set of interlinked org-files
that someone else would use as a standalone package. What is the best link
strategy for that?

Thanks!

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

[-- Attachment #2: Type: text/html, Size: 2181 bytes --]

             reply	other threads:[~2014-01-16 21:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 21:09 John Kitchin [this message]
2014-01-16 22:32 ` most robust linking practices? Nick Dokos
2014-01-17 14:43   ` John Kitchin
2014-01-17 15:19     ` Brett Viren
2014-01-17 15:47     ` Nick Dokos
2014-01-19 20:37       ` John Kitchin

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=CAJ51ETqTOtr98xLwT2Qu7fmFwo7R3aMoPCJ8-WDW12vFqYT7qQ@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --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).