Re: [BUG] Citations in tables are not exported

2021-07-29 Thread Nicolas Goaziou
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

Re: [BUG] Citations in tables are not exported

2021-07-29 Thread Nicolas Goaziou
Hello, Matt Price writes: > No doubt this is a bit too broad, though I am not entirely clear on why > there are any restrictions at all on inserting cites. There are locations which can break the structure of the document. Obviously, we can let users shoot themselves in the foot, but, OTOH, a d

Re: bug processing non emacs-lisp blocks

2021-07-29 Thread Maxim Nikulin
On 29/07/2021 11:13, Tim Cross wrote: dmg writes: org-babel-load-file will try to tangle any source block that contains the substring emacs-lisp or elisp in their language. For example, the following code block will be tangled: #+begin_src emacs-lispDONOT (use-package "org-sidebar") #+end_src

Re: [BUG] Citations in tables are not exported

2021-07-29 Thread John Kitchin
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 subsequ

Re: [BUG] Citations in tables are not exported

2021-07-29 Thread Nicolas Goaziou
Hello, John Kitchin writes: > 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 o

Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE?

2021-07-29 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > But to do that best and most consistently (next step is CSL, for > example), I need the citation accessible from there, so I can run the > export processors to generate the previews. > > Could we possibly tweak SELECT-STYLE to take one argument: citation? When y

[BUG] Indentation broken after double quote

2021-07-29 Thread Ivan Sokolov
How to reproduce: 1. open org file 2. set org-adapt-indentation to t 3. insert headline, text after headline should be automatically indented 4. insert double quote (") 5. org-return won't indent after double quote Tested versions: Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp

Re: [BUG] Citations in tables are not exported

2021-07-29 Thread John Kitchin
It all looks good now! Thanks for the quick fix. 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

Re: [BUG] Citations in tables are not exported

2021-07-29 Thread Matt Price
On Thu., Jul. 29, 2021, 8:30 a.m. Nicolas Goaziou, wrote: > Hello, > > Matt Price writes: > > > No doubt this is a bit too broad, though I am not entirely clear on why > > there are any restrictions at all on inserting cites. > > There are locations which can break the structure of the document.

Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE?

2021-07-29 Thread Bruce D'Arcus
Hi Nicolas, On Thu, Jul 29, 2021 at 3:28 PM Nicolas Goaziou wrote: > > Hello, > > "Bruce D'Arcus" writes: > > > But to do that best and most consistently (next step is CSL, for > > example), I need the citation accessible from there, so I can run the > > export processors to generate the preview

Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE?

2021-07-29 Thread John Kitchin
my solution to this (which I think worked well) is to select the keys, and insert a default style, and then you run a command that updates the style. that way you can get the keys that are in the citation easily from org-element-context, and then I can make a preview for each style that is consiste