From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GF3HLLnJdWQgjgAASxT56A (envelope-from ) for ; Tue, 30 May 2023 12:02:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8M7JK7nJdWRiFwEAG6o9tA (envelope-from ) for ; Tue, 30 May 2023 12:02:33 +0200 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 62A71284C8 for ; Tue, 30 May 2023 12:02:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3vfM-0002k4-F6; Tue, 30 May 2023 05:29:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3vfK-0002eW-RQ for emacs-orgmode@gnu.org; Tue, 30 May 2023 05:29:18 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3vfI-00077E-GA for emacs-orgmode@gnu.org; Tue, 30 May 2023 05:29:18 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1q3vfF-0005WR-TC for emacs-orgmode@gnu.org; Tue, 30 May 2023 11:29:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: org-ref-helm-insert-ref-link and latex src blocks Date: Tue, 30 May 2023 11:29:07 +0200 Message-ID: <87v8ga417g.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:rGbRFPob23Ij7RUPLsGLX4fpZHM= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685440953; a=rsa-sha256; cv=none; b=j5QN6iUmiVHigOEcPl1WefFbRNXbXoURjfqCvOzFA15gAcwkMkqvcR5b3TmnC5gugyvS+s 9HT6vHsUTkbiZWQx7rlnHEq33hTJssyEYnIFiqPUpSIicT1pY1yYz0+xpR6QFW/VmAvsTe BtgKprGcd8JGlBZ8CXKs8gGLrgGau3Sa9jwG1mznho6IuFR9j8e6YyhUt5h8Lz5eSbqt08 sEtVUpaVbOdpsKC7kvmFIP5eItN/F775V+EhW+SejT7Uh3okshimR3gPBoTT8SHw9XAosl TB4vzzjJghnuwZdSUoqkpyudM6lNnITi9aqcfiUvSXPkoqBQQGyQhr2uG1uazA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685440953; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ZB5sUamI3GaxwJVPqOYVQH2UEBVY7ccAj45QsZEAMDw=; b=Pa9kCnEN4QOpMFWCKkzPf28hhFHhanj+xnLaGm9LZk6B9QcPRQnqCwftN+jM2WJG6ENbwX /vJMX6fSybtnNj6QCa4IOTMdFqNBMJ9wG/6e2pOOSj1bH5cqMmoSFLX06nM752lsDRwRVm GVlZfFnfF1TO41ok0JyzVEBa+6VDWtOvbp1wb95ZBOrWSba63vEBmazezLZqeUVhJqomxB 5tbJQThR4qJlRevE/9Ms8Q0fWaoTtQwDzmfAR37mvhu87KUx46vt63CnSsbP+e9HdO/r1c TiHo49s0wJZKrZG0GlC5b8KBgrBN5+gQgEr8LE9JASN2ECozCS+nwNflqZZHZw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.06 X-Spam-Score: 4.06 X-Migadu-Queue-Id: 62A71284C8 X-TUID: QQtiCqhyKKCd Hi Please look at the following lines eqref:eq:test:1 has been inserted with org-ref-helm-insert-ref-link it is correctly exported to latex. \begin{equation} \label{eq:test:1} \int \end{equation} eqref:eq:test:1 However the same reference in a latex src block is not correctly supported #+begin_src latex :results latex replace :exports results :eval t \begin{equation} \label{eq:test:2} \end{equation} eqref:eq:test:2 #+end_src There is some logic to it, however when I use org-edit-special to deal with the reference reftex-reference does do work, but gives the error ,---- | Debugger entered--Lisp error: (error "RefTeX works only in buffers visiting a file") | signal(error ("RefTeX works only in buffers visiting a file")) | error("RefTeX works only in buffers visiting a file") | reftex-access-scan-info(nil) | reftex-reference() | funcall-interactively(reftex-reference) | call-interactively(reftex-reference nil nil) | command-execute(reftex-reference) | `---- Any idea what to do? Thanks and regards Uwe Brauer -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the NATO membership of the Ukraine. I support the EU membership of the Ukraine. https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/