From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IK2wIjO59GCEfwAAgWs5BA (envelope-from ) for ; Mon, 19 Jul 2021 01:28:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YC/9HTO59GA3UQAAB5/wlQ (envelope-from ) for ; Sun, 18 Jul 2021 23:28:51 +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 D48B12E221 for ; Mon, 19 Jul 2021 01:28:50 +0200 (CEST) Received: from localhost ([::1]:59938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5GDJ-00021c-H9 for larch@yhetil.org; Sun, 18 Jul 2021 19:28:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5GCx-00021U-78 for emacs-orgmode@gnu.org; Sun, 18 Jul 2021 19:28:27 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:44962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5GCu-0005zv-UV for emacs-orgmode@gnu.org; Sun, 18 Jul 2021 19:28:26 -0400 Received: by mail-qk1-x735.google.com with SMTP id a80so3660443qkg.11 for ; Sun, 18 Jul 2021 16:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version:content-transfer-encoding; bh=DQURvbJIeKlZ+0d3VNCnl8QBMKcTUF8TtSJ8G0+pIhc=; b=bHG7ffYzu20pnT7r2GilYYpYPPigB5SF3aeR28CgCT2ZSMhYylhi1hYZLxQah0vzZJ VduPuA2hznT0b154915Rfubm8XmCAXFDak0XNA1XnVFv+R9r/4AemiAl/zKioTGluu6i i27H8Yx2A/fSXvGPHoTCKdhW347YMPWOip9rsQAMfASEt/8BJMpLB4VPMDYWMLmPYQjX h/4CPJcO6uc9z7jEzYwerdimi09OgOoQacr1EqhGDMj2B3kpqQenlxcncQ5O+BS21reV q7mW4tzZyiffUWLLE5eaNApGoyZpCG08FDNE6+agrvaLUgHUremiKpbSPaEpyRf0JAiI A69g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=DQURvbJIeKlZ+0d3VNCnl8QBMKcTUF8TtSJ8G0+pIhc=; b=N2GKZb0iJtB6dz5CwT23/cOyB3sRIW7M6dkU6/2aXz1XB7KM0LkXSKCQ81/cN5DC3P E+THO0EHz7YbQj3N11nevWLIoBzfpUte3XzQJexaj3oIjJoWzLGAIvM0HLQPSBg9EEfo qkgPUBFw/zAMqND90U/NzMWutt/+J4BoKW4YEWkNBuHsXWvFgTM33kiZPhQuKGxx2wSG d2ZWuX9nMEq3ndU+Wfh8ihOmzpX+/D/XSv410QUoZ1QQgnZnZlbEofWrop7g910idVhD nU+s+Lhu/U0l/sFGqyM5R+65IO5/iaHJ96lezy11Bgfggn43ODNv2nH7KlPdFlQJTOXY Nedw== X-Gm-Message-State: AOAM530CX4AZg4632+TiWEDDAfbu2j6NaYSannMYxtRk2gblO9cjrxOC 745w13tVqz4GeA1MsltgeQNwFHVu0fYroA== X-Google-Smtp-Source: ABdhPJxcOYuKSrLKfNVzOKGk4E+BeQDHNcg5a2lzu4c0a5qz4hr528ZoIbivQU2h0+7Q/KKXqyN7lw== X-Received: by 2002:a05:620a:4051:: with SMTP id i17mr4892229qko.226.1626650903146; Sun, 18 Jul 2021 16:28:23 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:e508:711d:710b:6ffe]) by smtp.gmail.com with ESMTPSA id d63sm3863531qkf.65.2021.07.18.16.28.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Jul 2021 16:28:22 -0700 (PDT) References: <87o8b45gze.fsf@gmail.com> User-agent: mu4e 1.4.15; emacs 27.2 From: John Kitchin To: Timothy Subject: Re: [BUG] Citations in tables are not exported In-reply-to: <87o8b45gze.fsf@gmail.com> Message-ID: Date: Sun, 18 Jul 2021 19:28:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=johnrkitchin@gmail.com; helo=mail-qk1-x735.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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: emacs-orgmode@gnu.org 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=1626650930; 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=DQURvbJIeKlZ+0d3VNCnl8QBMKcTUF8TtSJ8G0+pIhc=; b=mNOkE9NFFA1XZLaeombkKvd21Q4djxczO14lp+DDn8ykpaQVUGY9Oh9GxtNPpoD2MJXeev HOLJZyijHNZIFUlQBbDsHkVf8CnZb3Yrk1kPg/i7ncySySYFWd0G+78ki17UVPqUVvy9HV rtM2HomOuGc4nT3hEC/puyxRfQabAhP5U1X4u8tp83J3wxS5bb1hECZWuea91urbiXocit /bfLaM4PNjnAco4R67VOLUv3/7XvRW5rhA3fZNCOSU1bkfopVCfAlD5h28cOtdVUfFPfYN gjoGP0fhNLOuIXbhB7zpExr1N0hv6RlTI3IIcq3C9Il2jQ7R9HcZobUdbgluaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626650930; a=rsa-sha256; cv=none; b=pufedaKnJ5zdFXQ6709drTWOS5QQC3Cq81tmAsCSbXFFNBr9Ho4QcH+Y+AhFNJW1HvN6Z5 HA81Rm/1mrLazKrCk47wtTIVN5vk8O27s3HPuJbMCeUNcJvjXIIUr5LK28n70ws9ZveONt uX6gVVndSpkM1QOxth5xWMHuGSXj/scbzK+AYzguYbrJxoUzTX7FhNjfeXOu88Sdr8Z8TV ZTGZKVJrp8llXDdKnuN9MEmYPnBorLqeW9xUe+wVAW4+nX/EvsAwQ3UXeG2ESFKJLHF7jl YUMXUhtSZzmRbldaNth0snzZqfV3CQ5oyJ5ze0Tgg66DMgHqxcMt7rj1WPywHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=bHG7ffYz; 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=gmail.com header.s=20161025 header.b=bHG7ffYz; 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: D48B12E221 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: W/hUotoMg7Yh 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. I am not sure why the cites don't export inside the table cell though. Thanks, Timothy writes: > Hi, > > I've just started playing with citations, but it seems that I've > stumbled across a bug where if the citation is in a table cell it will > be left "raw". See the following example > > #+begin_org > ,#+begin_src bibtex :tangle activedoc.bib > @article{SchulteActiveOrg, > author=3D{Schulte, Eric and Davison, Dan}, > journal=3D{Computing in Science Engineering}, > title=3D{Active Documents with Org-Mode}, > year=3D{2011}, > volume=3D{13}, > number=3D{3}, > pages=3D{66-73}, > doi=3D{10.1109/MCSE.2011.41}} > ,#+end_src > > ,#+bibliography: activedoc.bib > ,#+print_bibliography: > > [cite/a:@SchulteActiveOrg] > > | [cite/a:@SchulteActiveOrg] | > #+end_org > > When exporting to ASCII, I see this: > > #+begin_example > Schulte, Eric, and Dan Davison. 2011. =E2=80=9CActive Documents with Org-= Mode.=E2=80=9D > /Computing in Science Engineering/ 13 (3):66=E2=80=9373. > > (Schulte and Davison 2011) > > =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94= =81=E2=94=81=E2=94=81=E2=94=81 > [cite/a:@SchulteActiveOrg] > =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81= =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94= =81=E2=94=81=E2=94=81=E2=94=81 > #+end_example > > I hope that's enough to go off. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his