From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oDGCGvPBfWB4NwEAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 19:46:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +IOIFPPBfWBSPgAA1q6Kng (envelope-from ) for ; Mon, 19 Apr 2021 17:46:27 +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 83928C139 for ; Mon, 19 Apr 2021 19:46:25 +0200 (CEST) Received: from localhost ([::1]:55710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYXya-0001f9-KU for larch@yhetil.org; Mon, 19 Apr 2021 13:46:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXy6-0001ea-NY for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:45:54 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXy3-0001uH-94 for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:45:54 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 85A4720007; Mon, 19 Apr 2021 17:45:46 +0000 (UTC) From: Nicolas Goaziou To: James Powell Subject: Re: Bug: redundant and undocumented #label is required to link to a table [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)] References: <35a09991-d1c9-647e-4f14-fa3b3274c3a2@pdx.edu> Mail-Followup-To: James Powell , emacs-orgmode@gnu.org Date: Mon, 19 Apr 2021 19:45:45 +0200 In-Reply-To: <35a09991-d1c9-647e-4f14-fa3b3274c3a2@pdx.edu> (James Powell's message of "Mon, 19 Apr 2021 10:18:26 -0700") Message-ID: <87lf9eb22e.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Cc: emacs-orgmode@gnu.org 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=1618854385; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Dka+/2MgevxF0m1PE3seCcCFJZduf9vyMAlluvcwj98=; b=hLdc7UNoZHI2QNh0YGXoJvJw67dn6DouYlZXFyooiG3EeUpgexxOQTit+Zn1NDr+HF+zV3 s/G5vRAoDxWZA4H05ooBiB23S6FMd/fBkIelMhtbGdyc9XGZ/GDEnSJvxTuqwVzqxHWV/M 1kVcmn0rKtHHog4kJxfoVYavP0Oy5G8ukpcYwu9C6G7oLcxNpPFB9Gxv/p00kcydmlenjh dXYTYsFrBL2HNyxVOTXx8bkbZBLwngRsatsSLeB+uyqCoruBW7RTWD4fIDJuwQlaoL/HX7 VcqIjRrPyAyBpRqDGdZQtu07MhuqhK22B7DSUmzoAqzh9tFmZsPFn5yvURpr4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618854385; a=rsa-sha256; cv=none; b=G8Gn5mpX3jIo3fQfb+1BMJhG6k5PZ7tcwBtuuQ0qSrpWyeM4TXYd0Ca0MFqEeJxWt45IdN Z8TGzSCmsgJYQkkpVPyeyR9JIdoITM2qhw09M8AM8fdhhOaKhOo4hVleZX8uikObOsXxQb RPzDLeKzqBGmVApIIx1GNV6fET+sJeUq1iWkDv2azNu0SWbV2MM2yW2NhE7ylGJPr7aCNH G0KV7ur05chpLpVqJYukxvg2eeHZieFtJQd16HemHJrsPabaUbwS7iuwmlvv3xDbuiXKwF zTCuUoFnNWCm7dxa0Au1WLRHmSr+P5LY346/rOD6TGlE7rXgNTxvmT/06qts8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 83928C139 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: F1snWrExGNPM Hello, James Powell writes: > 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 #+e= nd_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 posted this > earlier to this list and learned about a workaround > > " It works if you put a #+label on the table ... which confuses me, > because I looked through the manual for #+label and there's no mention > of it at all, but a bunch of my Org files use it (for LaTeX export). " #+label is an outdated equivalent for #+name. In this case, you are referencing the source code block whereas you want to reference the table. So #+name should go before the table. Note that if you follow [[t1]] link, point will move to the source code block, not the table. Regards, --=20 Nicolas Goaziou