* enhancement - cross-reference to another file?
@ 2017-10-14 12:45 Sharon Kimble
2017-10-14 15:22 ` Martin Alsinet
0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2017-10-14 12:45 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
Is it possible to cross reference to another org-mode file in a
different directory?
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---
Can it be done do you think please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: enhancement - cross-reference to another file?
2017-10-14 12:45 enhancement - cross-reference to another file? Sharon Kimble
@ 2017-10-14 15:22 ` Martin Alsinet
0 siblings, 0 replies; 2+ messages in thread
From: Martin Alsinet @ 2017-10-14 15:22 UTC (permalink / raw)
To: Sharon Kimble, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
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 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]]
[-- Attachment #2: Type: text/html, Size: 2128 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-14 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-14 12:45 enhancement - cross-reference to another file? Sharon Kimble
2017-10-14 15:22 ` Martin Alsinet
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.