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 yJvdNrgWvWB44QAAgWs5BA (envelope-from ) for ; Sun, 06 Jun 2021 20:40:56 +0200 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 SCAaMrgWvWC4dAAA1q6Kng (envelope-from ) for ; Sun, 06 Jun 2021 18:40:56 +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 6D82F15A18 for ; Sun, 6 Jun 2021 20:40:56 +0200 (CEST) Received: from localhost ([::1]:54638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpxhe-0000qL-Kr for larch@yhetil.org; Sun, 06 Jun 2021 14:40:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpxgB-0000R9-6w for emacs-orgmode@gnu.org; Sun, 06 Jun 2021 14:39:23 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:36511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpxg0-0008H8-EC for emacs-orgmode@gnu.org; Sun, 06 Jun 2021 14:39:17 -0400 Received: by mail-wm1-x332.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so11139428wmk.1 for ; Sun, 06 Jun 2021 11:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4mQwDxHOKjI4ScSjKtBYwaUwqFoaGWrB9tj8IQW7Lxc=; b=LxcED6L2NEGY1fhyu7I7TIBoP7tFbIMbd5rLq6Au9wTmEc044sNb3+daz++LZCrXPq Y7FXUwkcpcjaN1adx0mHt7M6stX4V2USVNEaH1GbkTF8QOC1wHgTH1AUukFErjBDTN6K LgaqgTdIyy1RlB46ktiAzU1tcIhb5GHPr9LqKAt4RnjSYhYFgE7BUlEpV7LooOgzuxzS 4dyl4bvpI30vR4HobgLac4K1OmrbL/bEHjxdreT8C66yQlJUjvb/io7ltiY2mJm2U0s5 n9PzfxXEwMhlV6Vzeg0TKVGD05i9BcWYeHU+jBmM5TAk2yhln8x2acuM4jZ72USWgCTG CQlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4mQwDxHOKjI4ScSjKtBYwaUwqFoaGWrB9tj8IQW7Lxc=; b=ZsoI62tq/a19bOUy4V8P6msyv8b+EPX9ieXmZpTSgpOkErlrJA2XdIVpOTv/I8LkBF rj5O/e9bbWSVto6FiXkqQGesJ+V06EuTLQtK7GRcrkBy2VcJF1Svr4LNhigr7lRZ74Qh IvkMoiO6sTNIz/guTQqSFr2jUXxI8avvuNUfIT3NbwyZ8Nt2kzXL+6Agn9QAahMmUJof Qfg3BI6oXmEk52bzd8T25yOLncfO+bGVOEZ6hikCxy5tplnpPKqMS7sx+4vEkoO7upSH MpSc317pG4TQuY+DkYlRJfeQfifZP2guSwI2Y+RtNn5RCfosQrvQAfWbuJ+wT/t3il7a qfWQ== X-Gm-Message-State: AOAM532PN3yFGrlp3iAQW7kBa666arXh6d5BoQcau1vcsCOgbcv2gAtO DfrWC5l4qoLQz7zKoT/VUznA645F6yxYU6EyuME= X-Google-Smtp-Source: ABdhPJxIgtFzY1F1auSOCbrz4dyKI7HxlKv6DWu/Z1xBa0RDVW1+hHmlwQZd+5JKjBAd9Ok45BiEdyvDDr4lDldjW1c= X-Received: by 2002:a05:600c:2216:: with SMTP id z22mr10694480wml.66.1623004750689; Sun, 06 Jun 2021 11:39:10 -0700 (PDT) MIME-Version: 1.0 References: <87mts25000.fsf@gmail.com> In-Reply-To: <87mts25000.fsf@gmail.com> From: "Bruce D'Arcus" Date: Sun, 6 Jun 2021 14:39:00 -0400 Message-ID: Subject: Re: [PATCH] Allow LaTeX reference command (\ref) to be customised To: Timothy Content-Type: multipart/alternative; boundary="000000000000a2385205c41d3d8f" Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x332.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, HTML_MESSAGE=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=1623004856; 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=4mQwDxHOKjI4ScSjKtBYwaUwqFoaGWrB9tj8IQW7Lxc=; b=WlNxnaWJ13lrBLLBAU0slNkXheah+fS7XZinNv1Fys+a9lVtr729y7hB61yRQ2qS22AC89 ZWkr7re2fnRNSDpFOSbtTQDx3TQHo/LS2/u9SIs2PdVmu67vxHPz6FN1mpQRnQfl1it6X1 X/x+pODDBuLbws7lqlleoOir+0ekWptex1iOQqsSVAM32Uo+jfSWA/GC05bMOwTpFZwqtW 1HvF7xhBmwuwYMp0uJr7SWk78MNVmK2zvTj2ZLiz2G3Wk3P9EqryLVojJCCAoQ+PcCCOuT GHQk7RAzhcWeFpk15ssnHanUS+g4qXntMGtqpbREEfCDyPV+iWFu8FohnLdvnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623004856; a=rsa-sha256; cv=none; b=n2eUUBnaW35TRkezUY9gJ5GG68Mu3XBNoQxt9RJSH+6k7utlFnfEPY/OTq1U9cxiQT0fv0 DTupkMqZeYJEtz+SkNT7PIL9y39pVxVvzVUdDNPSRAUs/lPznNaiU3P85d3PVAo3uN0JJ9 NFK7TeYf8y6lN3CqTPgzgRsxTq14RTZ4ZK+RxUXoek359fIcx1NCScQ5FaWM6RdWzoOtPg nCN4zg7Nw6VfmFpCm/1JGBVDsUMSMlRne/nAkZZzOVYkXxlLwMr7Dpcp+P2Y053PzO2yLj Pi9Og+7j8a/c6NkZ0d1dIpALEVqIkaR+mDS6m9HMONXhzxrczwBHuEWIXeCQ6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=LxcED6L2; 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=LxcED6L2; 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: 6D82F15A18 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: +YrIkeQsoo2i --000000000000a2385205c41d3d8f Content-Type: text/plain; charset="UTF-8" +1 On Sun, Jun 6, 2021, 2:19 PM Timothy wrote: > 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 > > --000000000000a2385205c41d3d8f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
+1

On Sun, Jun 6, 2021, 2:19 PM Timothy <tecosaur@gmail= .com> wrote:
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

--000000000000a2385205c41d3d8f--