From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Alsinet Subject: Re: enhancement - cross-reference to another file? Date: Sat, 14 Oct 2017 15:22:45 +0000 Message-ID: References: <87zi8tvqy3.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0820e77412f3ab055b8359e9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3OHH-0007Lb-Sp for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 11:23:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3OHD-0007lj-M9 for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 11:23:03 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:52437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3OHD-0007lF-G5 for emacs-orgmode@gnu.org; Sat, 14 Oct 2017 11:22:59 -0400 Received: by mail-wr0-f175.google.com with SMTP id k62so2758955wrc.9 for ; Sat, 14 Oct 2017 08:22:57 -0700 (PDT) In-Reply-To: <87zi8tvqy3.fsf@skimble.plus.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Sharon Kimble , emacs-orgmode@gnu.org --089e0820e77412f3ab055b8359e9 Content-Type: text/plain; charset="UTF-8" Hello Sharon: On Sat, Oct 14, 2017 at 7:45 AM Sharon Kimble wrote: > > Is it possible to cross reference to another org-mode file in a > different directory? > Yes, it is possible, you have to use the following syntax: [[file:/path/to/other/org/file.org:* heading][My other org file]] You can check the manual for the different link types and examples http://orgmode.org/manual/External-links.html > Example - cooking 1 has an entry for Mayonnaise, so can file 2 have an > entry for mayonnaise but cross-referenced to cooking 1? > > --8<---------------cut here---------------start------------->8--- > id1=cooking1.org > > ** Mayonnaise > [[*Mayonnaise][Mayonnaise]] > blurb and blah > --8<---------------cut here---------------end--------------->8--- > > --8<---------------cut here---------------start------------->8--- > id2=cooking2.org > > ** Mayonnaise 3 > > See also [[*id1:Mayonnaise][Mayonnaise]] and also [[*Mayonnaise > 2][Mayonnaise 2]] > > --8<---------------cut here---------------end--------------->8--- > > In your example, the references would be written: See also [[file:cooking1.org:** Mayonnaise][this mayonnaise recipe]] and also [[*Mayonnaise 2][this other one]] --089e0820e77412f3ab055b8359e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Sharon:

On Sat, Oct 14, 2017 at 7:45 AM Sharon Kimble <boudiccas@skimble.plus.com> wrote:
=

Is it possible to cross reference to another org-mode file in a
different directory?

Yes, it is possibl= e, you have to use the following syntax:

[[file:/p= ath/to/other/org/file.org:* heading][My other org file]]

You can check the manual for the different link types and examples
=C2=A0
=


Example - cooking 1 has an entry for Mayonnaise, so can file 2 have an
entry for mayonnaise but cross-referenced to cooking 1?

--8<---------------cut here---------------start------------->8---
id1=3D= cooking1.org

** Mayonnaise
[[*Mayonnaise][Mayonnaise]]
blurb and blah
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
id2=3D= cooking2.org

** Mayonnaise 3

See also [[*id1:Mayonnaise][Mayonnaise]] and also [[*Mayonnaise 2][Mayonnai= se 2]]

--8<---------------cut here---------------end--------------->8---


In your example, the references would = be written:

See also [[fi= le:cooking1.org:** Mayonnaise][this mayonnaise recipe]] and also [[*Mayonna= ise 2][this other one]]


=C2= =A0
--089e0820e77412f3ab055b8359e9--