emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Powell <powellj@pdx.edu>
To: emacs-orgmode@gnu.org
Subject: captioned named table in org-babel R is dangling link in latex export
Date: Tue, 6 Apr 2021 13:16:43 -0700	[thread overview]
Message-ID: <3028fd8d-b1be-0d25-53cf-79bf8484f662@pdx.edu> (raw)

I have a goal: make a table in R using org-babel and have it appear in
the latex export.  I also want to be able to refer to the table by name in
the org file and have that become a hypertext link in the latex export.

Using Org mode version 9.4.4 I build this document:

#+NAME: t1
#+begin_src R :exports both
   x <- tribble(~a, ~b, 1, 3)
#+CAPTION: Org Table
| 1 | 3 |

I want to refer to Table [[t1]].

What I expect: the latex export will include the table and link to it.

What happens instead: the code and table appear, numbered and captioned.
However, the link is broken ("I want to refer to Table ??"). Looking in
the latex, this line reads

 > I want to refer to Table \ref{org993764c}.

but that label org993764c appears nowhere else in the file.

Org-lint doesn't complain about the file at all.  I searched the archives
and the intertubes, I don't see any discussion of this.

Any help would be greatly appreciated.

- JP

James E. Powell, MS
Pronouns: he/him/his
Applied Physics PhD Candidate
Department of Physics
Portland State University
Home page: http://web.pdx.edu/~powellj
Office: SRTC 409B Phone: +1-503-725-8515

             reply	other threads:[~2021-04-06 20:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 20:16 James Powell [this message]
2021-04-07 14:33 ` William Denton

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:

  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=3028fd8d-b1be-0d25-53cf-79bf8484f662@pdx.edu \
    --to=powellj@pdx.edu \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: captioned named table in org-babel R is dangling link in latex export' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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