From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6A4SFRzEbWC7HQEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 16:39:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id m8MFDxzEbWDfNgAA1q6Kng (envelope-from ) for ; Wed, 07 Apr 2021 14:39:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DF64A16259 for ; Wed, 7 Apr 2021 16:39:22 +0200 (CEST) Received: from localhost ([::1]:35370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU9Kz-0003My-LS for larch@yhetil.org; Wed, 07 Apr 2021 10:39:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU9Fd-0006AG-CK for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 10:33:49 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:53582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU9FZ-0005Z0-SF for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 10:33:49 -0400 Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 88447B9C56 for ; Wed, 7 Apr 2021 10:33:40 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=ATA+pQRWe80Lct1Z7fxZglPwaQ4=; b=IBR5sD Y4kyuDeUsKaa3ufYO9kUjSH97rJqkCP7TKq/PdsBOL66FSaeWw2agExxlMEYsKmk IEW13h6cLEyCNciWCkrVlKcNeXHW3/p9X8ES879x8vppGVhCR4+vnwdobmqEgRSr fab12b7kySDYeHTHBXHKK+rb1kWbDnfYQiJ6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:in-reply-to:message-id:references:mime-version :content-type; q=dns; s=sasl; b=IfAiItzZEf5ulgpoW+iSMrK2dpUHVjEk /a2wSsCjikV4Z+1IskvI7+IR0euljk57qoU+pF8vmEoXdKrB24VeAQ0Xtetl1Zuy 0gqZIORZ+KJdjazwbFX7xfOT/UOIq8XBPQX4vCOrTArEDjfRIHMztdhJGljZcvZ5 bObxtKoc6zs= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 80C77B9C55 for ; Wed, 7 Apr 2021 10:33:40 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 1289BB9C54 for ; Wed, 7 Apr 2021 10:33:40 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 5F550120DBE; Wed, 7 Apr 2021 10:33:39 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 59306120BC7 for ; Wed, 7 Apr 2021 10:33:39 -0400 (EDT) Date: Wed, 7 Apr 2021 10:33:39 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: emacs-orgmode@gnu.org Subject: Re: captioned named table in org-babel R is dangling link in latex export In-Reply-To: <3028fd8d-b1be-0d25-53cf-79bf8484f662@pdx.edu> Message-ID: References: <3028fd8d-b1be-0d25-53cf-79bf8484f662@pdx.edu> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1741096510-1910735947-1617806019=:132225" X-Pobox-Relay-ID: 3EEF72CC-97AE-11EB-842A-74DE23BA3BAF-56320186!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=wtd@pobox.com; helo=pb-smtp2.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617806363; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qP7PnrZZ38K4vLa9GosA69iG+qi/nM7Coz0Zz/U6T48=; b=XeON7GTo4mCf5DJYUL1eVAusRwux2nzvLGMK+iksT+ATEkJtgD2qDzA/h6rWmLjdbMfGdS mSAdNbWNMXfpoMJoMulY+ieTBWi6msmw5TspAEX8SKnHm1Tk1nFAg1SWHbxPpJSFEy8/dA +gk9OH+x824//ragCEDDhnjjoS0eq215wQNMO0CqAI9s5BJ/kAJFRa8yf27bKT4+JHLrIs KrkCwhjfaMqnpfY0Pylq9ASL8pm2rIv++jxR0PJO/Nnmo5ryxo1Q2kP1Vv5quwoI9FchOv WhXpdGk3T4f56Fyf7AxhX+wgugkTcn3jVBptxg4cjpD3LFdUEiwCnKFafps6OA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617806363; a=rsa-sha256; cv=none; b=glICMxd/XHmPN1rz7Q2Uo+Npnp8BR8vNZ5fXTZXbeqKk/gj3pccwhZyC+iyIcTPoa/Yc4t +ikk75XR3BC7/DKxik2zG0brsH4dWe1dO5EedU2dbpn54ChSV5sOFZlkdzUM6qs+DrpWJ2 zIbgQ8y0sBpVuU0pwaDRS5l8sBePkczZC/MhbCThkDbOMEJoAusz7RH6atUWhOLyADEQlT b/Iuo8cN8iX8AyuO4kz3mz6YWDarcPzMBeAkdagxoaKNTVB3+iTFr2SlrtCvOHwbS0XfBd mWCkVIRdj7CxdpFvfZWdF9G6RVl7M/UW5QTsOFfSvXmsptKvyFw4XMTkBibM3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="IBR5sD Y"; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b="IBR5sD Y"; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: DF64A16259 X-Spam-Score: -2.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: OieVKIEKMH5R This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1741096510-1910735947-1617806019=:132225 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable It works if you put a #+label on the table ... which confuses me, because= I=20 looked through the manual for #+label and there's no mention of it at all= , but a=20 bunch of my Org files use it (for LaTeX export). # ----- #+name: t1 #+begin_src R :exports both library(tidyverse) x <- tribble(~a, ~b, 1, 3) x #+end_src #+caption: Org table. #+label: tab_t1 #+RESULTS: t1 | 1 | 3 | I want to refer to Table [[tab_t1]]. # ------ Bill On 6 April 2021, James Powell wrote: > I have a goal: make a table in R using org-babel and have it appear in > the latex export.=C2=A0 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 > =C2=A0 library(tidyverse) > =C2=A0 x <- tribble(~a, ~b, 1, 3) > =C2=A0 x > #+end_src > #+CAPTION: Org Table > #+RESULTS: t1 > | 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.=C2=A0 I searched the a= rchives > and the intertubes, I don't see any discussion of this. > > Any help would be greatly appreciated. > > - JP > > -- William Denton :: Toronto, Canada --- Listening to Art: https://liste= ningtoart.org/ https://www.miskatonic.org/ --- GHG.EARTH: https://ghg.earth/ Caveat lector. --- STAPLR: https://staplr.org/ --1741096510-1910735947-1617806019=:132225--