emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: emacs-orgmode@gnu.org
Subject: A section in file 2 being referenced in file 1, then exported to latex and built into a PDF?
Date: Sun, 27 Jan 2019 11:18:35 +0000	[thread overview]
Message-ID: <87pnsitkl0.fsf@skimble.plus.com> (raw)

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


How can I, in org-mode, reference another heading in a different file in the same directory please?

For example -

--8<---------------cut here---------------start------------->8---
* Testing
** Testing number one
:mydrawer:
See \uline{Testing number one} on page \pageref{fu2:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}
:END:
\label{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}
--8<---------------cut here---------------end--------------->8---

Is in /home/boudiccas/research/writing/fu/fu2.org

and I want the reference to appear in the org-mode file in '/home/boudiccas/research/writing/fu/fu.org'

And show as -

--8<---------------cut here---------------start------------->8---
* Testing
** testing one

# See \uline{Testing number one} on page \pageref{{fu2.org}:{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page \pageref{{fu2.org}:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page \pageref{fu2.org:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page \pageref{fu2:2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

# See \uline{Testing number one} on page \pageref{2c2a0555-27a4-4ac1-b124-ffb60ee2af00}

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

Both files are exported to latex and built into a pdf file.

In the second example I have tried various things, including

--8<---------------cut here---------------start------------->8---
# #+latex_header: \include{/home/boudiccas/research/writing/fu/fu2}

# #+latex_header: \input{/home/boudiccas/research/writing/fu/fu2.org}
--8<---------------cut here---------------end--------------->8---

but none were successful.

So everything that I have tried, and fails, is commented out.

So how can I do it please? Is it actually possible to do it?

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.5, fluxbox 1.3.7, emacs 26.1.91, org 9.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

                 reply	other threads:[~2019-01-27 11:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87pnsitkl0.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.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).