From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gMk5BJojwGDJlQAAgWs5BA (envelope-from ) for ; Wed, 09 Jun 2021 04:12:42 +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 6LLjOpkjwGD+TwAAbx9fmQ (envelope-from ) for ; Wed, 09 Jun 2021 02:12:41 +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 70B3C1AEE6 for ; Wed, 9 Jun 2021 04:12:41 +0200 (CEST) Received: from localhost ([::1]:40832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqnhv-0003Py-Gx for larch@yhetil.org; Tue, 08 Jun 2021 22:12:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqnhD-0003Pq-1K for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 22:11:55 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:52846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqnhB-0003NE-Ct for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 22:11:54 -0400 Received: by mail-pj1-x1029.google.com with SMTP id h16so460960pjv.2 for ; Tue, 08 Jun 2021 19:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=ca/VsvWQ/ZrYhvjN7lPbExDjOJuI9V4YGaRLBMShChk=; b=uVEDqAQ3Ph1ZyoZ0PzyVNHNTvObWfrpzLJF3Y41Q63oDAmWVj/Ai5SFaTGW4KjewZI KssIi0MwD/96Du1DuDluAv5JUZgyyxlIhy9zxDbCt6Tprmlr/q1ErdzvrYEQxgNpUL+K 9kPjQnC70PzCCOiaYNdQVZmCD3SLnE36PPORc8fp8E5SMnxeijNyfY0TqJm8fvA4sZyM W2tD4ie9DVqCNp55wK8toAM2lq7uwXTaneaGVarzFJMFF+7qgS8Dz8evd0maIqWeh+Iv VRLycuCdipMcaWqGQrE0OlTPKGba5VvvQuXhJGaTE+AoZrALm2E6ck/dG4v0tKTGMWnP waTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=ca/VsvWQ/ZrYhvjN7lPbExDjOJuI9V4YGaRLBMShChk=; b=HjIhVvjNqVtQzGyYU8+XkItdPcy6mz207kEi8OOJTyszIrXm95aTlcSQltz5IJvktw tPcY+sK3uGomVYBrUeKRwtYawlEj0VrqOWOU+iWgYQ3KcAPYRsN4jTLTcia93GIArlhD CvjOh5IwoFy+XSirI02Sbyr9/txXYy1k1aBzBI3q+vLUqkxiPMw1hFUKKYZWQFpOVGvp WZgTDJUyBJcl3Let+To/yQVlFc+kytv2MUaWscUsqDdo8RXQnqsDlGHhC5t39vL7sdIg UJswoZlS848j2+crjJ7f0550IvqnqPp0xUCQFKyceJGk6tNCfqucq2masc7bF6ySNWOt P4CA== X-Gm-Message-State: AOAM530Mgajug22YsYJAdUgGgbZrLYwDYaNoMu4NiMWgmsuODBFmmsb4 1V42tqDPidZOXKE2qEkSs0qGiqKMu4o= X-Google-Smtp-Source: ABdhPJy5BMxKCPe1KVX1Uc2iZpTAZ85Wm0hMGmt3F7e62Uqmkk+WrVj34P9W3QFr+QGhfUF9QCJGvQ== X-Received: by 2002:a17:90a:e2c6:: with SMTP id fr6mr7978298pjb.198.1623204711189; Tue, 08 Jun 2021 19:11:51 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id c20sm3289709pjr.35.2021.06.08.19.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 19:11:50 -0700 (PDT) References: <87mts25000.fsf@gmail.com> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Nicolas Goaziou Subject: Re: [PATCH] Allow LaTeX reference command (\ref) to be customised In-reply-to: <87mts25000.fsf@gmail.com> Message-ID: <871r9bpz18.fsf@gmail.com> Date: Wed, 09 Jun 2021 10:11:47 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, 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: , Cc: org-mode-email 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=1623204761; 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=ca/VsvWQ/ZrYhvjN7lPbExDjOJuI9V4YGaRLBMShChk=; b=BOIxTz3t2CnU6Fqlqf9rcrGStMjDw6dyuZ+MYGT5E8il+xLCJqV6GIR7lLDpiy3N8F8bGN m/Z74Wz5OJe9iDg0jRvg3UKeQrJ7MzTOZ6/tErpsJq4xBkDYs+YlVZ5HGC+dqIm0fV8mUK hNol586BYejI85WcRQq9toFXhyGSJV6CQ9IaBR68iP2v4KoVfzuwLtZ3JT7FHEEjYhxZob QBtuOb1ufuR7TAA1/GdV+zX94UBiIL85qkB4Vwv0BqxkuG/9Pfm0Fhn1gaAwZkKICKjrnB O6DNWjcW920UvhqqLCrqIpWbkSlFiqoKTAtA9GnBjkh/MC8l4X07LD+sDLw4Yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623204761; a=rsa-sha256; cv=none; b=XzmZUCpBUgeYc4iMx54FRLmIT+xupoe0HOXX14MxKzW9ZeEo1UFa0o985JeQI99/35MsS8 r7uyZFcWgmVLfinYXd4Gw13xdIGA5CHYQeU5M5s95xs+2COYaktsquvMmzTDcOBRzO/axl VddWTtgeuBRn+QXocCgb1mVBeWdrB2i3EyD/EFhb22XcaoXOapCj97hq8oLdfrRY2t/2IV scFfuTZWA11LJ2hpupAfZSo9CmRKKun7lqZZSBxVugDo06ExGpuoufxmuB/HeLaPmwmB8Z Zat+5Yj+7ik3H41lIP2BPeZ+cJgKT5zBvy1S/z52vDj7RVfojKXxr5McDHP0FA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=uVEDqAQ3; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=uVEDqAQ3; dmarc=pass (policy=none) header.from=gmail.com; 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: 70B3C1AEE6 X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: IRo8rh0Cvw/U Hi Nicolas, Since this is a fairly small thing and ox-latex seems to be your domain, I'm wondering if you've had a chance to take a look yet? (just making sure this hasn't slipped by, given your recent replies in other threads). > Hi All, > > I've started doing some more cross-referencing in documents exported to > LaTeX, and a hardcoded use of \ref has begun to stand out to me as a > rather annoying thing. Hypperef provides \autoref for adding helpful > prefixes (section, figure, etc.), and there are other packages which one > may want to use to generate 'clever' references (like cleveref with > \cref). > > As such, I think that the hardcoded \ref should actually be turned into > a customisable format string, which is what the attached patch does. -- Timothy