emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

captioned named table in org-babel R is dangling link in latex export


From: James Powell
Subject: captioned named table in org-babel R is dangling link in latex export
Date: Tue, 6 Apr 2021 13:16:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

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:

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

I want to refer to Table [[t1]].
<<end>>

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 via email to

[Prev in Thread] Current Thread [Next in Thread]