From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mOtPInBHlWH74QAAgWs5BA (envelope-from ) for ; Wed, 17 Nov 2021 19:18:24 +0100 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 CEMKHnBHlWFBMAAA1q6Kng (envelope-from ) for ; Wed, 17 Nov 2021 18:18: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 1F4F52C8F7 for ; Wed, 17 Nov 2021 19:18:22 +0100 (CET) Received: from localhost ([::1]:42200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnPVk-0006va-9M for larch@yhetil.org; Wed, 17 Nov 2021 13:18:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnPVE-0006hd-Kv for emacs-orgmode@gnu.org; Wed, 17 Nov 2021 13:17:48 -0500 Received: from mout02.posteo.de ([185.67.36.66]:56895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnPVC-00065G-Id for emacs-orgmode@gnu.org; Wed, 17 Nov 2021 13:17:48 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 109B2240101 for ; Wed, 17 Nov 2021 19:17:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1637173064; bh=ANFE6z3YDW0A8sUAQpkMi7M5hCSFQmqlwBSlzAY3++o=; h=From:To:Cc:Subject:Date:From; b=TJi/5SqHjbSSPQfv1KEDb5LctUvWAIL4CLytNcrWDwmbP55R7d6GwyYR6WSzPBv9R BlU+YknsHadaTVShk3VwgQorsmKKIJ6g4wL7SMptIEmsjyYe4pXXwIGeampR60dx1Z Bjpp0BpYF7+TaiUhpVfl/a3xI9TmYf+qrhJJNCEoftL1cTG5vWXq0+wH90lD5kbENg FxCtaOtaBJebYJrr2LhxNEiSmR2jUBAzQUk+v4d4hE/s3dg0pJWJEphRt86fWjSlz6 cBqwjDyXpuob3e0CynwTB4F1Y1cJNO8j5gJPNHQoPFFHAL0rfRZzo23GL7jEpUzTev U+M7yY9BKMt5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HvWPM3DXlz9rxD; Wed, 17 Nov 2021 19:17:43 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Stefan Nobis Subject: Re: insert automatically a reference to a section header and a link References: <877dd7mdx7.fsf@mat.ucm.es> <87r1bfnln2.fsf@ucl.ac.uk> <87o86ilw9a.fsf@mat.ucm.es> <87ilwqlvh5.fsf@mat.ucm.es> <87bl2ilqtr.fsf@mat.ucm.es> Date: Wed, 17 Nov 2021 18:17:41 +0000 In-Reply-To: (Stefan Nobis's message of "Wed, 17 Nov 2021 17:29:29 +0100") Message-ID: <874k8afxyy.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode 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=1637173102; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IeEhaLHGz4d/eFN7pS5muy3BsizoKNQ3Vrpoj8vtfJI=; b=SmENfOXskIIC4XNavfSvOmJMd8jiSKpS87PnKuUF1UBLUh8TEsZEE/PGJC4WuAMeSP62LL iBBNO64MBaesybchJOK9vMDMgia82HS+NiOkHJof/RKxoHw90HcZsDeRFVmr2bZ5V+KBZn mMY708WC2Ahu7+g618+wiYewik+4EJQoafaqwKtASsiR/ngV6NMCSlDD4rlBEinkg6goTI bFBD/yKpB+u756HXFvreD8zSkbWWs2ovoW8VuDaP3yLSbboTdelRco+27ofiRgV+Cy5nf7 a+pxx+5n5oG0vfmCIkEgdOx4bVRa7xE5qTinGa0JY7vMWwcxf9F2rX/0FxoGqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637173102; a=rsa-sha256; cv=none; b=H8Ir44UpcaTWcL40tHEPoDNmRqvZRSZCtcEOyTTWXmJkzbkan+0iddMowvHRApj8D8+yyP gfUeMf4LrFhEIjN1I3U10KEDuLtke1YlpnqfgPUob0YUyWh3HgTD32WRzg3FZTerEw1LEk 8Gou+zzBx8sXa0EwZ+d68RwZl8e+dKW2dBTI7RSfedwcTI4Mq8CXQMzaUN4Ze0vpUA23tn qwNFDR6uQOIIBnt51sQpcXKs540ukiI1CNf9B4PWR/WlLp2Hxp4HuXxcf9aQ6OFa0OPbCh etu1qI+rUp4wPMD7pTfAc+6CgHoCh3przJ3NG44IywH1evWr2Kd0/zFxW6U1/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="TJi/5SqH"; dmarc=pass (policy=none) header.from=posteo.net; 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: -4.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="TJi/5SqH"; dmarc=pass (policy=none) header.from=posteo.net; 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: 1F4F52C8F7 X-Spam-Score: -4.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4a2frSrsdfyu Stefan Nobis writes: > #+begin_src emacs-lisp > (defun sn/ox-latex-filter-special-ref-vref (text backend info) > (when (org-export-derived-backend-p backend 'latex) > (replace-regexp-in-string "\\\\ref{" "\\\\vref{" text))) > > (add-to-list 'org-export-filter-link-functions #'sn/ox-latex-filter-special-ref-vref) > #+end_src In Org 9.5 there is a new variable `org-latex-reference-command'. You can do something like: (setq org-latex-reference-command "\\vref{%s}") Best regards, Juan Manuel