emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* A section in file 2 being referenced in file 1, then exported to latex and built into a PDF?
@ 2019-01-27 11:18 Sharon Kimble
  0 siblings, 0 replies; only message in thread
From: Sharon Kimble @ 2019-01-27 11:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-27 11:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-27 11:18 A section in file 2 being referenced in file 1, then exported to latex and built into a PDF? Sharon Kimble

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).