* Cross referencing in Emacs Org mode
@ 2021-05-18 22:25 Partha Pratim Ghosh
2021-05-19 8:52 ` Eric S Fraga
2021-05-19 9:47 ` Christian Moe
0 siblings, 2 replies; 3+ messages in thread
From: Partha Pratim Ghosh @ 2021-05-18 22:25 UTC (permalink / raw)
To: Help Emacs Orgmode
Dear All,
Is it possible to have cross reference in LaTeX export for Org
mode. To be specific: I have a org file segmented into sections, say as
follows:
*** example of Org file, excluding the headers******
* Section 1
contains some text, a label [label:label1].... and some citation [cite:cite1]
* Section 2
contains some text, a label [label:label2] and a reference to label1
as [ref:label1], and a reference to a label in Section 3, [ref:label3]
* Section 3
contains some text, and label [label:label3]
\printbibliography
****************************************************
I did not include the headers where the bibliography files are properly
added. When I export the full buffer with C-c C-e l o everything runs
fine. However, whenever I go to Section 2, say and try to export using
C-c C-e C-s l o (for subtree export only), the bibliography does not
appear, and the reference to label1 or label3 does not appear.
Is it possible to have the labels properly referenced as well as the
bibliography printed when subtrees are only exported to pdf?
With my regards and all the very best wishes,
partha
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cross referencing in Emacs Org mode
2021-05-18 22:25 Cross referencing in Emacs Org mode Partha Pratim Ghosh
@ 2021-05-19 8:52 ` Eric S Fraga
2021-05-19 9:47 ` Christian Moe
1 sibling, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2021-05-19 8:52 UTC (permalink / raw)
To: Partha Pratim Ghosh; +Cc: Help Emacs Orgmode
On Wednesday, 19 May 2021 at 00:25, Partha Pratim Ghosh wrote:
> Is it possible to have cross reference in LaTeX export for Org
> mode. To be specific: I have a org file segmented into sections, say as
> follows:
Check out the "Internal Links" section of the org manual.
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.5-534-g8f03cd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cross referencing in Emacs Org mode
2021-05-18 22:25 Cross referencing in Emacs Org mode Partha Pratim Ghosh
2021-05-19 8:52 ` Eric S Fraga
@ 2021-05-19 9:47 ` Christian Moe
1 sibling, 0 replies; 3+ messages in thread
From: Christian Moe @ 2021-05-19 9:47 UTC (permalink / raw)
To: Partha Pratim Ghosh; +Cc: Help Emacs Orgmode
Hi,
The question, then, is not if you can have cross-references (as you say,
they work fine), but if they will work with subtree export.
I believe not (but others may have to correct me). Links/refs to parts
of the document outside the exported subtree *will* be broken. The
exporter does not consider other sections of the document and will not
try to resolve how the refs *should* have looked.
If you use custom IDs or dedicated Org targets like <<label1>> for the
label and links like [[label1]] for the refs, you *can* manage how
broken links should be handled. `C-h v org-export-with-broken-links' for
details.
Yours,
Christian
Partha Pratim Ghosh writes:
> Dear All,
>
> Is it possible to have cross reference in LaTeX export for Org
> mode. To be specific: I have a org file segmented into sections, say as
> follows:
>
> *** example of Org file, excluding the headers******
>
> * Section 1
> contains some text, a label [label:label1].... and some citation [cite:cite1]
>
> * Section 2
> contains some text, a label [label:label2] and a reference to label1
> as [ref:label1], and a reference to a label in Section 3, [ref:label3]
>
> * Section 3
> contains some text, and label [label:label3]
>
> \printbibliography
>
> ****************************************************
>
> I did not include the headers where the bibliography files are properly
> added. When I export the full buffer with C-c C-e l o everything runs
> fine. However, whenever I go to Section 2, say and try to export using
> C-c C-e C-s l o (for subtree export only), the bibliography does not
> appear, and the reference to label1 or label3 does not appear.
>
> Is it possible to have the labels properly referenced as well as the
> bibliography printed when subtrees are only exported to pdf?
>
> With my regards and all the very best wishes,
>
> partha
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-19 9:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-18 22:25 Cross referencing in Emacs Org mode Partha Pratim Ghosh
2021-05-19 8:52 ` Eric S Fraga
2021-05-19 9:47 ` Christian Moe
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).