[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Citations in tables are not exported

From: John Kitchin
Subject: Re: [BUG] Citations in tables are not exported
Date: Sun, 18 Jul 2021 19:28:21 -0400
User-agent: mu4e 1.4.15; emacs 27.2

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

I am not sure why the cites don't export inside the table cell though.


Timothy <tecosaur@gmail.com> 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={Schulte, Eric and Davison, Dan},
>          journal={Computing in Science Engineering},
>          title={Active Documents with Org-Mode},
>          year={2011},
>          volume={13},
>          number={3},
>          pages={66-73},
>          doi={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. “Active Documents with Org-Mode.”
> /Computing in Science Engineering/ 13 (3):66–73.
> (Schulte and Davison 2011)
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>  [cite/a:@SchulteActiveOrg]
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> #+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
Pronouns: he/him/his

reply via email to

[Prev in Thread] Current Thread [Next in Thread]