From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qFW/H8i8fWBjIgEAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 19:24: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 mp1 with LMTPS id wH+CGsi8fWA8aQAAbx9fmQ (envelope-from ) for ; Mon, 19 Apr 2021 17:24: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 92087C654 for ; Mon, 19 Apr 2021 19:24:23 +0200 (CEST) Received: from localhost ([::1]:38230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYXdG-0001Kn-7W for larch@yhetil.org; Mon, 19 Apr 2021 13:24:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXXh-0004nF-8Y for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:18:37 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:41813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYXXb-0001sj-I4 for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 13:18:36 -0400 Received: by mail-pg1-x52c.google.com with SMTP id f29so24704971pgm.8 for ; Mon, 19 Apr 2021 10:18:30 -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=Y7ATQwGKwjkiXJNhVWY2OtrMn0flmPI41lcndj9pjnY=; b=UElhokxyiWucqeK9a0B9Yc0xj2+n4ln3rrX2u5MB+aGMGNywNEpEpX92SvzMNhRpU3 0t/CJs0eG088XUMI32K0kt7YXqVpLQv7OSvDEo0qu2xGMVKVj/kPY5odk1WBvQjlUJmS 1ox9fo1XBJMBLwCNXPyeC8OYHa1nuJ6M3/E0LNORUjKT0RUneNqbF+ghT+Ig1sGbOE+7 3pFD9HjACBjwmF/spDMq+2yUewOVKZPkuZ8E+aKtyb5V/Sst8ghqSFsMWroU8eV8hEcl 1XthfTKXv8wJbTSkYZVN+QcjufARow2ntG3M6zREC/RwZKhJpUTvB7Ry0nAaNtp4cKAa j1dQ== 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=Y7ATQwGKwjkiXJNhVWY2OtrMn0flmPI41lcndj9pjnY=; b=XRVkN7z4/PKfy+zHya+kUyD7w/jLdWLMIixf8AtT++rYFH0Ni9SJsUEhi+gdKr8RU6 pocAVQy4PMf5GE82r1unij8sAPZZL27RjNShFu51vqXyW/vPS7E5hVnYRwrygTbXR2BP Fd5jfLWoxFE7B5g8V7r7Tur35y+OFkzjI0hwqheKqoAkpfDqeRHjfyRh3d/qtEs/iTQ8 rqYis+II7+IlhqxtrwqkMcqQvGz6DxYgJUIf+vURkRF8nxo4RCR1CdIxv7uieb9hrDUb nbNsNit5wjevobzldh9eyZ2cdZNOGbi1EFcOkP0Iw1JTDt3Nqv4ItZmCYDFU5xPyKR2g 2r3g== X-Gm-Message-State: AOAM531GEi28C1bwAU9iXtcuQx3c0HteuIVdVJlURJn6qiH1fYe63pJ6 iBb+vTG6tfQ2YdcRx1gvcAsu9P4mK4hs0cbHApvTWqmF8UQgou3jJBHjPHIGWqPONqgJQ4tc9Vy L2WRkCQMNpIVpBovwmfqllAdytY5gWk+yKD6/VXIWa0of7VKNYw0hKE+ElBIFGQ== X-Google-Smtp-Source: ABdhPJzl7msHaC0L5ToWwnU1qjiFLFRNDGlragjOBN5jo9eOG2ETsDwZg9cRPMLly6HMmBc+5Gjyuw== X-Received: by 2002:a62:e717:0:b029:253:66da:24ed with SMTP id s23-20020a62e7170000b029025366da24edmr20724445pfh.24.1618852708346; Mon, 19 Apr 2021 10:18:28 -0700 (PDT) Received: from [192.168.1.128] ([159.191.253.251]) by smtp.gmail.com with ESMTPSA id j13sm12725391pfn.103.2021.04.19.10.18.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Apr 2021 10:18:27 -0700 (PDT) To: emacs-orgmode@gnu.org From: James Powell Subject: 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/)] Message-ID: <35a09991-d1c9-647e-4f14-fa3b3274c3a2@pdx.edu> Date: Mon, 19 Apr 2021 10:18:26 -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::52c; envelope-from=powellj@pdx.edu; helo=mail-pg1-x52c.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=1618853063; 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=Y7ATQwGKwjkiXJNhVWY2OtrMn0flmPI41lcndj9pjnY=; b=E9NdptXpKXMDxw1V5l4qIzJkX3wG7JVGDVnMNeKdSMhBN5Tbsl6RDnAOi++T0ce8JmjFzG L9YiHm4wHYTgbq1iksuWhlx5RWcUdFoGrpfTN9yLihjVofnxZMq3YQDQjKTgRdJzlRcC8G Xf3heKsSX5uxDez+g89GkbA1bYM7P61JtEari+v+Y2tQDI8xh/T4tBp9y00L2uPrAOWICQ AaEXKBOOvM1sB2sJOKrNCJw4QfuyZKt5CN+2fXeA+nwNgSNTvlK4QUoO24B+DaDXkWlce4 i/2o+h7FsdRuEDgyWNIg13JmEg7Sy+TSa03yhf1iTobKpPZTtxQsmUow9NWv4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618853063; a=rsa-sha256; cv=none; b=RCILE5cWq7KWjGywxjYENv0M6KoegUNBxhqn9o+YSBDcKzCtHKacErFag9uvBpgoVh2M+F 8Pkb10Amqg/Meftz8DPMB2crewyxxGodXe26LfbBoP+Lu0Qr5Ma1AgXnLvvzJcDtb19HW3 +1Xl4nGNLnBYr/0TClwW+IQ8fhgeZ+X1Pdrcw3hy9X0fwZ982y01UrSlZiZxnYRDEj+Vb0 u+IWhuZgNObCIJqq7h3UdjpPoUHqE5RUggH6XP1FIO4TUKXf4Sg/qzC2LyGFVQ89OlVdtr E7WR7q/9ntQWIz/+lOrTvcGodFCNrZ5jv6VqdEg8QxddPIRq/pl61fyU3E1VrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pdx-edu.20150623.gappssmtp.com header.s=20150623 header.b=UElhokxy; 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=UElhokxy; 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: 92087C654 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: 53kgBMCGhoUP 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 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). " (William Denton writing in https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00170.html) As another workaround, the snippet as written (with no #+label) works if you export to html instead of latex. - JP --- Emacs  : GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.24.5)  of 2020-07-07 Package: Org mode version 9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/) current state: ============== (setq  org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)  org-adapt-indentation nil  org-latex-classes '(("achemso" "\\documentclass{achemso}"                       ("\\section{%s}" . "\\section*{%s}")                       ("\\subsection{%s}" . "\\subsection*{%s}")                       ("\\subsubsection{%s}" . "\\subsubsection*{%s}")                       ("\\paragraph{%s}" . "\\paragraph*{%s}")                       ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))                      ("article" "\\documentclass[11pt]{article}"                       ("\\section{%s}" . "\\section*{%s}")                       ("\\subsection{%s}" . "\\subsection*{%s}")                       ("\\subsubsection{%s}" . "\\subsubsection*{%s}")                       ("\\paragraph{%s}" . "\\paragraph*{%s}")                       ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))                      ("report" "\\documentclass[11pt]{report}"                       ("\\part{%s}" . "\\part*{%s}")                       ("\\chapter{%s}" . "\\chapter*{%s}")                       ("\\section{%s}" . "\\section*{%s}")                       ("\\subsection{%s}" . "\\subsection*{%s}")                       ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))                      ("book" "\\documentclass[11pt]{book}"                       ("\\part{%s}" . "\\part*{%s}")                       ("\\chapter{%s}" . "\\chapter*{%s}")                       ("\\section{%s}" . "\\section*{%s}")                       ("\\subsection{%s}" . "\\subsection*{%s}")                       ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))                      )  org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)  org-reverse-note-order t  org-occur-hook '(org-first-headline-recenter)  org-metaup-hook '(org-babel-load-in-session-maybe)  org-agenda-start-on-weekday nil  org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]  org-log-done 'time  org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function  org-confirm-shell-link-function 'yes-or-no-p  org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default  org-startup-folded 'content  org-agenda-loop-over-headlines-in-active-region nil  org-link-search-must-match-exact-headline nil  org-file-apps '(("\\.pdf" . "evince %s") (auto-mode . emacs) (directory . emacs)                  ("\\.mm\\'" . default) ("\\.x?html?\\'" . default)                  ("\\.pdf\\'" . default))  org-agenda-skip-scheduled-if-done t  org-agenda-custom-commands '(("d" todo #("DELEGATED" 0 9 (face org-warning)) nil)                               ("c" todo                                #("DONE|DEFERRED|CANCELLED" 0 23 (face org-warning))                                nil)                               ("w" todo #("WAITING" 0 7 (face org-warning)) nil)                               ("W" agenda "" ((org-agenda-ndays 21)))                               ("A" agenda ""                                ((org-agenda-skip-function                                  (lambda nil                                   (org-agenda-skip-entry-if (quote notregexp)                                    "\\=.*\\[#A\\]")                                   )                                  )                                 (org-agenda-ndays 1)                                 (org-agenda-overriding-header                                  "Today's Priority #A tasks: ")                                 )                                )                               ("u" alltodo ""                                ((org-agenda-skip-function                                  (lambda nil                                   (org-agenda-skip-entry-if (quote scheduled)                                    (quote deadline) (quote regexp) "<[^>\n]+>")                                   )                                  )                                 (org-agenda-overriding-header                                  "Unscheduled TODO entries: ")                                 )                                )                               )  org-latex-format-headline-function 'org-latex-format-headline-default-function  org-default-notes-file "~/notes.org"  org-agenda-include-diary t  org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]  org-odt-format-headline-function 'org-odt-format-headline-default-function  org-src-mode-hook '(org-src-babel-configure-edit-buffer                      org-src-mode-configure-edit-buffer)  org-agenda-before-write-hook '(org-agenda-add-entry-text)  org-babel-pre-tangle-hook '(save-buffer)  org-html-footnotes-section "
%s
"  org-mode-hook '(#[0 "\301\211\207"                    [imenu-create-index-function org-imenu-get-tree] 2]                  (lambda nil                   (define-key org-mode-map (kbd "") (quote org-export-as-pdf)))                  (lambda nil                   (if window-system nil                    (progn (define-key org-mode-map "\212" (quote org-meta-return))                     (define-key org-mode-map "\n"                      (quote org-insert-heading-respect-content))                     )                    )                   )                  org-mode-reftex-setup                  #[0 "\300\301\302\303\304$\207"                    [add-hook change-major-mode-hook org-show-all append local] 5]                  #[0 "\300\301\302\303\304$\207"                    [add-hook change-major-mode-hook org-babel-show-result-all append                     local]                    5]                  org-babel-result-hide-spec org-babel-hide-all-hashes)  org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"]  org-archive-hook '(org-attach-archive-delete-maybe)  org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]  org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers                   org-cycle-show-empty-lines                   org-optimize-window-after-visibility-change)  org-link-shell-confirm-function 'yes-or-no-p  org-export-before-parsing-hook '(org-attach-expand-links)  org-todo-keywords '((sequence "TODO(t)" "STARTED(s@/!)" "WAITING(w@/!)"                       "DELEGATED(e@/!)" "APPT(@!)" "|" "DONE(d!)" "DEFERRED"                       "CANCELLED(c@)")                      )  org-fast-tag-selection-single-key 'expert  org-link-elisp-confirm-function 'yes-or-no-p  org-confirm-elisp-link-function 'yes-or-no-p  org-metadown-hook '(org-babel-pop-to-session-maybe)  org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]  org-link-from-user-regexp "\\"  org-agenda-skip-deadline-if-done t  org-html-format-headline-function 'org-html-format-headline-default-function  org-link-parameters '(("attachment" :follow org-attach-follow :complete                         org-attach-complete-link)                        ("id" :follow org-id-open)                        ("eww" :follow org-eww-open :store org-eww-store-link)                        ("rmail" :follow org-rmail-open :store org-rmail-store-link)                        ("mhe" :follow org-mhe-open :store org-mhe-store-link)                        ("irc" :follow org-irc-visit :store org-irc-store-link :export                         org-irc-export)                        ("info" :follow org-info-open :export org-info-export :store                         org-info-store-link)                        ("gnus" :follow org-gnus-open :store org-gnus-store-link)                        ("docview" :follow org-docview-open :export org-docview-export                         :store org-docview-store-link)                        ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)                        ("bbdb" :follow org-bbdb-open :export org-bbdb-export                         :complete org-bbdb-complete-link :store org-bbdb-store-link)                        ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")                        ("shell" :follow org-link--open-shell)                        ("news" :follow                         #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6                           "\n\n(fn URL ARG)"]                         )                        ("mailto" :follow                         #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6                           "\n\n(fn URL ARG)"]                         )                        ("https" :follow                         #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6                           "\n\n(fn URL ARG)"]                         )                        ("http" :follow                         #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6                           "\n\n(fn URL ARG)"]                         )                        ("ftp" :follow                         #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6                           "\n\n(fn URL ARG)"]                         )                        ("help" :follow org-link--open-help)                        ("file" :complete org-link-complete-file)                        ("elisp" :follow org-link--open-elisp)                        ("doi" :follow org-link--open-doi))  org-babel-load-languages '((dot . t) (R . t) (shell . t))  org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function  org-agenda-files '("~/jep-files/docs/projects.org" "~/jep-files/docs/notes.org"...  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)  org-confirm-babel-evaluate nil  org-publish-project-alist '(("org" :base-directory "~/org/" :publishing-directory                               "~/public_html" :section-numbers nil :with-toc nil                               :publishing-function org-latex-publish-to-pdf                               :html-head                               "")                              ("2020_MCTD_HDDV_Registration" :base-directory "~/deq/projects/heavyduty-registration-archive/2020_MCTD_HDDV_Registration" :publishing-directory "~/public_html" :publishing-function org-latex-publish-to-pdf)                              )  ) -- 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