From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id E0qIKzcFZmHB7AAAgWs5BA (envelope-from ) for ; Tue, 12 Oct 2021 23:59:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WA+VJjcFZmFGEwAAB5/wlQ (envelope-from ) for ; Tue, 12 Oct 2021 21:59:19 +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 107FA87C3 for ; Tue, 12 Oct 2021 23:59:19 +0200 (CEST) Received: from localhost ([::1]:50400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maPnp-000818-Va for larch@yhetil.org; Tue, 12 Oct 2021 17:59:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maPn6-00080j-5H for emacs-orgmode@gnu.org; Tue, 12 Oct 2021 17:58:32 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:46907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maPn3-0000S5-TF for emacs-orgmode@gnu.org; Tue, 12 Oct 2021 17:58:31 -0400 Received: by mail-wr1-x431.google.com with SMTP id k7so1514099wrd.13 for ; Tue, 12 Oct 2021 14:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Rc0mIIrnJoCbVyIO9pnt1TbSDiS0UThfOPQIBUwzN60=; b=MqC/Mi+AmcLyFixjgdr5znlcFw/dw0/JI6rOSZezQ14yt1QYvvannnUPG2wl1UhwwB v6hajb+1xAqqAmh3q5KyxKwA2WDi9hR/loFsgWWhCdJ/9fXUbOjq87zyOGBe93dQ2z6l HJWs0xrpZPxpd0Xhc2LBqpvA+zi7sCAfQXWWAgenrsNBgX/KgaR2YMNBGdhPIY7IuQg/ w6pAXd7tJudvTJuLaACdxXqkaFr4QinhXezO1tShOTxeFn06dQSB6Dc2/xzOrAlz2WyV d+UdS/cbyRZ29vnz5Q6rSWlBfWJViZMQMaFCnnx4uu+LuCJCThj6AsASWrBkJjknWdU9 Wlyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Rc0mIIrnJoCbVyIO9pnt1TbSDiS0UThfOPQIBUwzN60=; b=DoKdxwMDOEULE0YhwNZocag2+y4Ebc1bJIweOzMVut4RS2yIJ0/JMxg8PnWw/XbwgI rECUCd1xzyLRfz9Smalm3BwPdYrtTUENpc3biIFKSS5rUJeRQthuOH0awM86cpDS5Nj7 UzxpLtJQU8D8metJMzFxYD8YnvYP6dOrIiRQscuVKlVnmR2I7jRQ1QECICgpzqtUF3Xx /YC5tbPJOlSlcdwvBtglAOBfn4+z/YlyaqamrAtcP0Lm43TASbp4rWMFesziV6gJunzp Pqmsgv1ABvV/Xkv4Bkhs6Hv0U7aktjuzlQ9FB61AwcXRtZyvmYbzsb162+bX04jwlXIw 1k8w== X-Gm-Message-State: AOAM533lqHPkdGluI4zhqwL+ZKV/zS3ZCxWS/x42x7PeFdyLOxw0vjlz 2IwbtwsuSD0vNtNKzF9mMtdQJKCFhLa2Vg1syrg= X-Google-Smtp-Source: ABdhPJwgYzBpdFNdLyZqS6SnUrViu73PbQuhCCKkrLPJy66ygmREIZuWX62D6FJyiFGoZMauIGbJu9uFJst//dgCfrI= X-Received: by 2002:a05:6000:1563:: with SMTP id 3mr10815728wrz.20.1634075907704; Tue, 12 Oct 2021 14:58:27 -0700 (PDT) MIME-Version: 1.0 References: <87sfzdv083.fsf@ucl.ac.uk> In-Reply-To: From: "Bruce D'Arcus" Date: Tue, 12 Oct 2021 17:58:16 -0400 Message-ID: Subject: Re: Expanding how the new cite syntax is used to include cross-references - thoughts? To: John Kitchin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x431.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: Tom Gillespie , Org Mode List 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=1634075959; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Rc0mIIrnJoCbVyIO9pnt1TbSDiS0UThfOPQIBUwzN60=; b=tsc7ePzKVSkRDaOGe62IJxysEfWdGy12suUSkXFlJMu/oQ+JJrFjrEvG+1Le34PBdZNO01 bMdKNEDZOmv2ykdPKeAO9BfNXFlB6bn51nfDbb0gMWd9sHG7NqUF01kmf0Z6TMf5zvZhOl BnxuUF1hWC2w//gurqP0Oa8BpZAL7uiIyPCKZ5U7o8TXHA1B1sw44KY/Fmp9Dnf/4R6dnO HnnFq1tgnD3nAlfNtXNtkZHw0k2IBQ7+1/NGW57xutbzjOf2/PDNmidbtzw9kmgVpc+1Ba n9WXY8kl81tzeXpUGaO/XIsTWGEo8lsAhOYC9A9o/w4310xmNOuxmSh1va7HQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634075959; a=rsa-sha256; cv=none; b=RlLCpS+wCkpEO4WZW2Mwy6BTLp8guPp81L8ETsZYh1CIyDuaqTpoFHSbmVCD1T/a397ztr Vo0S7HqrFgh+rVv4F0rydxD+gvYqX7YXliMDmGpu6H9IrH8Y02GzuGHxbpkOUDo7wcrpKU rDuwG8YEgquknEk7Q/EXfIsPZYH1XUKXAuu+40kFmkANy5pu0+i6zIWt3q75A/B7boDofk kbIz1XeXYz8I8h+yWX/7Ucn94BCc6nY5FhwIky7ACZCGw6ZJ/eCZoaMz1pmcP0N9wP9Xl/ p0Ve/NO+px2RyWJ3YbDePxhTIUMVV3xZPBiY9uSfA/vm5O14MceOAm6IOGI8LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="MqC/Mi+A"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 1.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="MqC/Mi+A"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 107FA87C3 X-Spam-Score: 1.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: pk/53oU9+MR3 On Tue, Oct 12, 2021 at 5:16 PM John Kitchin wrot= e: > > I think the existing link capability of org-mode is completely adequate f= or cross-references. LaTeX exports are almost completely covered in org-ref= . I made a refproc (https://github.com/jkitchin/org-ref/blob/org-ref-3/org-= ref-refproc.el) that provides similar export behavior for other backends in= a pre-processing hook. It supports the concepts in autoref and cleveref by= replacing the org-links with an appropriate org syntax that then exports n= atively. For example, if cref:name references a table, it would get replace= d by "Table [[name]]" in the buffer and then exported to the desired backen= d. Nice work John; I'm glad you were able to sort it out. I haven't had a chance to play with it, but FYI I'm seeing a number of compilation warnings (see below), which should be easy enough to fix. Any reason this, or something like it, shouldn't be added to org? Bruce org-ref-refproc.el:15:1: Warning: defcustom for =E2=80=98org-ref-refproc-clever-prefixes=E2=80=99 fails to specify type org-ref-refproc.el:15:1: Warning: defcustom for =E2=80=98org-ref-refproc-clever-prefixes=E2=80=99 fails to specify type In org-ref-get-ref-links: org-ref-refproc.el:47:54: Warning: reference to free variable =E2=80=98org-ref-ref-types=E2=80=99 In org-ref-refproc-referenceables: org-ref-refproc.el:113:60: Warning: reference to free variable =E2=80=98org-ref-label-re=E2=80=99 In org-ref-refproc-cref-replacement: org-ref-refproc.el:379:41: Warning: assignment to free variable =E2=80=98pr= efix-data=E2=80=99 org-ref-refproc.el:382:27: Warning: reference to free variable =E2=80=98pre= fix-data=E2=80=99 In end of data: org-ref-refproc.el:244:7: Warning: the function =E2=80=98org-ref-ref-jump-t= o=E2=80=99 is not known to be defined.