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 <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> John Kitchin <jkitc...@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
> > 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
>

Reply via email to