From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CAvqFpTKAmFg0wAAgWs5BA (envelope-from ) for ; Thu, 29 Jul 2021 17:34:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aF+eEpTKAmF0cQAAB5/wlQ (envelope-from ) for ; Thu, 29 Jul 2021 15:34:44 +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 0CF981E63B for ; Thu, 29 Jul 2021 17:34:43 +0200 (CEST) Received: from localhost ([::1]:36960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m983W-0004gx-1z for larch@yhetil.org; Thu, 29 Jul 2021 11:34:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9835-0004go-Uv for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 11:34:15 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:43726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9833-0002nN-H3 for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 11:34:15 -0400 Received: by mail-wr1-x429.google.com with SMTP id h14so7430347wrx.10 for ; Thu, 29 Jul 2021 08:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Q2vCiaUVYv7qx21WRcj+zGwqFC7nuztLAx3xESNH+w=; b=0DLD87fXlvsW9ZoDTe7omvt+Uas76JNSl8IpO0wMH440Dab3lIsDXbH8nOWsvt2ZzX MBIyAyhll9y4tQoC4eAxKuH6ZJVKyXcToSIrpUOFIBovLi8xVmGBy1NDV4y8dYOqXp+4 rDj6W8M+WPeYXKmllPUgmyyH+mVpnMsKnnkLj/sZHU1uTzVTNuznyjvjSgPfZ7DwrTo/ S8JES0+rT3Cu+vMS3EElhDPl2hUPbcjSx4O+TRhPRJrGQALQQkmVuehaNL7bUJbD+s04 uPhl01w0/LujZdsO6xCDQGORb0fp4v3fN//ctnlLUNNyQlOjI+DszHCirA0wAdmXIZTc 9lXA== 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=+Q2vCiaUVYv7qx21WRcj+zGwqFC7nuztLAx3xESNH+w=; b=BO8ZypxTybioz1sIEOKFMwKPyqfTY5CCATclylfUlDKJSNVEvQpKT4Hu9faRwjYOAn wjtgd6rKLuqTlsv1Xgq6ecP4LiydDSVjjVvNJD2FXpjKLbMNnufXgRwEPCjevTPOMIiL 8r5noxPv6zV3iEto+H3sBq41CcMuGNYQHc1LO5flglUhQTINQ+Lzw+soMPqeFpAI8c7b U/ENhtcNjgSHA0ChdpCwlXiD+0dY4XywCroS5JCY8M2FwxF5NYJsDEnvBBHxcCrHwLpz 82VQVWr7GVz9vn1OgeUvRhxVyW8ofbq+KM56lk29lwWME8DXt09z/cNZqw7VKIUhdjGb ZlIg== X-Gm-Message-State: AOAM533WItisEs1nIOmzdPT7P5zDLOkcJ6eV+CZ/BWZszBd6EUwG3ZSM Fw6gp2qhPGgWjGYwmy/dPahzCzTST3lvjOQzZww= X-Google-Smtp-Source: ABdhPJzWso8Lm/ShMVq+Lb2U4U6dlzwzN0D0xK/00QXeOWZVDlp4L/X+mFbjE0ksRfDwClWlfCK1RBsZQeMwLjiFUuY= X-Received: by 2002:a5d:4410:: with SMTP id z16mr5530319wrq.173.1627572851497; Thu, 29 Jul 2021 08:34:11 -0700 (PDT) MIME-Version: 1.0 References: <87o8b45gze.fsf@gmail.com> <87pmv1i9ve.fsf@nicolasgoaziou.fr> In-Reply-To: <87pmv1i9ve.fsf@nicolasgoaziou.fr> From: John Kitchin Date: Thu, 29 Jul 2021 11:34:00 -0400 Message-ID: Subject: Re: [BUG] Citations in tables are not exported To: Nicolas Goaziou Content-Type: multipart/alternative; boundary="000000000000a8dd2d05c844d55b" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 , Timothy 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=1627572883; 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=+Q2vCiaUVYv7qx21WRcj+zGwqFC7nuztLAx3xESNH+w=; b=Xm6JjfEmRVzALfCDgJu3k3DnShH5U8CKt1QybLD5MYkKxjKe1bHzk48DCEJ+OJRLtml2bG EW5+g5UIuM652CBSmymAvMmopyhAvqkBJlwxub0L4NLq3uwE/bDF01aJrgxnwB8U65A8kZ wJXE4SVjxx0B99yTyYd40CO7pugPQRCEA3hYPcKOzjHooRcQzvGpG9xi+1reKaSprgHG8j ot2Sj8zDiY8GPO7HdCW9TNCRGG9QECiOlk6QNPa5D2U/MzOs9UneS2RXwRnyPMHm9ufHP6 OGtj+dNQ4ZiByGnBFd/Dgb00PhPd0tDkLEBYvGyM8eDqYhf2ZO4MOEYvSga5xw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627572883; a=rsa-sha256; cv=none; b=kguXexhzPhE7iGYLSsX0dQiED1cKsJZ1MECByeC5uI2Zwc6OYKcd+mxdeGwM/dGJYynMNR 1s3L1DNu6C9nsuf04ExRWRN59UHuLEZ03iTuz2oIcG87sS3345lTnq2AOGgZnyTTNUe67t dlkDCbmIxjE204YKTfBbYq1bzlMd04KSdzuQBR/y2opRszT86crRZoOmprZj20P1ddLiV4 BBx7BlbONlcPb5T8so6zfw2m12m3ciUJ+z+6Tee1LUHZZFOpjc8zQoAKJa3ApAo4LaprEd nMmzvNIxjteFsKUU/C1+wsMmjlFuooBk4O4210LzZR/IcOV13MIn9lTMBiZ8Bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=0DLD87fX; 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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=0DLD87fX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (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: 0CF981E63B X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9Jn/hrnc38ZK --000000000000a8dd2d05c844d55b Content-Type: text/plain; charset="UTF-8" It is partially fixed for me. I can put a citation in all these places in a cell (and in a caption), | x | ^^^ but not here | x | ^ In case this doesn't render quite right, the cell has two spaces after x, and I can insert a citation on the first space, but not the second one (or subsequent ones if they exist). It still looks like the citation in a table doesn't export, e.g. in #+caption: in a caption [cite/t:@lin-2021-exper-theor] | X [cite/t:@lin-2021-exper-theor] | test | the citation in the caption is exported (in latex), but not the one in the cell. John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Jul 29, 2021 at 8:26 AM Nicolas Goaziou wrote: > Hello, > > John Kitchin writes: > > > I also see this behavior. I think this should be considered a bug, it is > > pretty common to see citations in a table cell. > > > > Additionally, I cannot insert a citation in a caption that is above a > > table (or a figure), I get > > "user-error: Cannot insert a citation here". That should be considered a > > bug in org-cite--allowed-p I think. It fails because in the caption the > > context is a table, and it has :post-affiliated item which causes > > org-cite--allowed-p to return nil. > > > > If I put a citation in the caption anyway, it does seem to get exported > > correctly. > > Fixed. Thank you. > > Regards, > -- > Nicolas Goaziou > --000000000000a8dd2d05c844d55b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It is partially fixed for me. I can put a citation in all = these places in a cell (and in a caption),

| x =C2=A0|=C2=A0^^^=C2=A0 =C2=A0

but not here

=
| x =C2=A0|
=C2=A0 =C2=A0 ^

In case = this doesn't render quite right, the cell has two spaces after x, and I= can insert a citation on the first space, but not the second one (or subse= quent ones if they exist).

It still looks like the= citation in a table doesn't export, e.g.=C2=A0
in
=
#+caption: in a caption [cite/t:@lin-2021-exper-theor]
| = X [cite/t:@lin-2021-exper-theor] | test =C2=A0|


the citation in the caption is exported (in latex), but not the one i= n the cell.




John

------= -----------------------------
Professor John Kitchin (he/him/his)
Doh= erty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Un= iversity
Pittsburgh, PA 15213
412-268-7803


On Thu, Jul 29, 2021 at 8:26 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> I also see this behavior. I think this should be considered a bug, it = is
> pretty common to see citations in a table cell.
>
> Additionally, I cannot insert a citation in a caption that is above a<= br> > table (or a figure), I get
> "user-error: Cannot insert a citation here". That should be = considered a
> bug in org-cite--allowed-p=C2=A0 I think. It fails because in the capt= ion the
> context is a table, and it has :post-affiliated item which causes
> org-cite--allowed-p=C2=A0 to return nil.
>
> If I put a citation in the caption anyway, it does seem to get exporte= d
> correctly.

Fixed. Thank you.

Regards,
--
Nicolas Goaziou
--000000000000a8dd2d05c844d55b--