From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id fPGTFA7CbGCqXwAAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 22:18:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qEBzDQ7CbGCeXQAAB5/wlQ (envelope-from ) for ; Tue, 06 Apr 2021 20:18:22 +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 8F08E26B50 for ; Tue, 6 Apr 2021 22:18:21 +0200 (CEST) Received: from localhost ([::1]:33588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTs9T-0007V4-5u for larch@yhetil.org; Tue, 06 Apr 2021 16:18:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTs82-0007Un-Up for emacs-orgmode@gnu.org; Tue, 06 Apr 2021 16:16:50 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:39816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTs80-0005RN-GD for emacs-orgmode@gnu.org; Tue, 06 Apr 2021 16:16:50 -0400 Received: by mail-pf1-x434.google.com with SMTP id c17so11230709pfn.6 for ; Tue, 06 Apr 2021 13:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdx-edu.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=U+sgydpyd/p7HDzFwL6QarB14qqysfAKbuI/rc20JLs=; b=Bv7lMhv9dgaYXqHdBGarahRRsYfoAo9cN0H9epKZOlzaXC35y450rxMZh86cpoLKr5 m4cR1PjW+QX0BS6BQex/sdqZNo8yuYieH6BM/sDGHdpY5NdPErb/DR6zyKPX5VH+Yag0 NZxV39Qr6XqMrui7cNtLTM6igxl1GYAjMnbjnolb0lFU6IAvG9FlDw/+EWyPCRMdLrBR AWykNa1EyByBQt8A05C8or/6Ek2qlm4U5LZHdi/jFKY3uz3IhRgIgoP/+ef+JZjtLsQp M2dnRkxneOUGIhHQ4zO15yebg/KAgPhDvFXU2Ho1aP7bEahozAC4DVXrlstU4RSWFdln JH6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=U+sgydpyd/p7HDzFwL6QarB14qqysfAKbuI/rc20JLs=; b=k+PZaskrlLiJHzrH3mAZw+fzagE71g4CGi51pCuq642Pn9f3HBpkTyKviF6eNH6UL+ OrCAFmgcnTtTNfUvawi2MZLbncqAhV35MVKLO7/rirlB1QIYcD7qliYp4SWeOr54TAdL a1q4tMVlYD/OoS7oOFjeIELYXcDYA1y2ULXFKI3Qe5rHI+VJzL0QBZypJA1r6gTgp7N/ n0VrsvYzPLz4iPOJnl07qkbOS5LWmvBx613wWLDpjxsqA5Yka3XLbu+hmkkpjmW+g1p7 E5YMGIXeYvJx3JEk+dcRY5gz6/0E2BYHYl/85GMSjDG5km8VgK06fctqt40fVpY7ZeyJ duVQ== X-Gm-Message-State: AOAM531Fg9Qh9U9CErztbnkFZWu/Lj9VsefyETDTSeZiSfDAfRBNeOkp QBnMaQFgbTi0/mYL+G5L0z/bgOfjzas98hRiLVeAt1/aifcxZYFYgudWUuyvN3jX88fmuya050r i014smlhm0fO1Werm4zs67CeduHspY67Rb27h2npy7FZhSToaA+4BA27IcxpbVA== X-Google-Smtp-Source: ABdhPJwdH70Vmqrr6yjyPhHyd+QgypS+C0pG3uQUexy+Y3Wf7pEiEOC9+qUtnqG+Db2HWGi4y+JS6A== X-Received: by 2002:a63:2603:: with SMTP id m3mr28392276pgm.202.1617740205192; Tue, 06 Apr 2021 13:16:45 -0700 (PDT) Received: from [192.168.0.6] (75-164-186-91.ptld.qwest.net. [75.164.186.91]) by smtp.gmail.com with ESMTPSA id r26sm12894147pgn.15.2021.04.06.13.16.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Apr 2021 13:16:44 -0700 (PDT) To: emacs-orgmode@gnu.org From: James Powell Subject: captioned named table in org-babel R is dangling link in latex export Message-ID: <3028fd8d-b1be-0d25-53cf-79bf8484f662@pdx.edu> 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=powellj@pdx.edu; helo=mail-pf1-x434.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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=1617740301; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=U+sgydpyd/p7HDzFwL6QarB14qqysfAKbuI/rc20JLs=; b=MXQVxofrpq4K3R28CNEdCI0oWVbJ2ztjLVTK9OT5XhIg73IX6J1Zkcf8rDcliNjNjxPRxN DyMnPh95x7RDmCINVxvgcfOflE67gxZwLjyyOltgcoTpoa7x/pU4lHl7gYXBMVdoDci79A /cqRQQEQ1CXax1hpRxGJQpefRe6OaK/1JEQD+GMw6yjeZwujqTYClkADWHJg3F4+42kxV1 ZDhXLbgS2fqFeufPHYYsKYV7LbvtHT70KNDUBlzqhsj0FgEvAf3Nt2LRdFQ1tzzxSnej0/ G/9IAFXuK/Zryu5ggHrr5SHBTZoH/p3Vn8FpDNyGL18f5YYxVHf2MUk4ID09yA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617740301; a=rsa-sha256; cv=none; b=cTYhGv9g2w1ZG3RJyx4I8jT+BvE/jE77MrUDsimOLtUNd766OAqRNJvnZL/MBwlnF4zEiD nUDSttzCYnrUp7OtC1o9z0ZbOADeZ3nPovghXvtfTbx6cQVBiK7KVrRsnKzn8TpkfKG4ld Y1Uhv+YFWumtKjwdSa/ZCYxy/G1E9BeBnofuPc2+dbisylaBtS+cKB35AVZEWGk4jwzsri Urr5/iV7B5vWevK3e6LdDp8Hw7yilzdW7HKmOkFhMe+BPO9KKhjH1hvrwUCfb/ROWPFBI2 yATNb4oAgze1MAxGjCfIJFUY338Q9boK8I8NpuQQyoaMkH0bU3T21doNrzUmUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pdx-edu.20150623.gappssmtp.com header.s=20150623 header.b=Bv7lMhv9; 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.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pdx-edu.20150623.gappssmtp.com header.s=20150623 header.b=Bv7lMhv9; 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: 8F08E26B50 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: DmQISqwf06iH 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   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]]. <> 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