emacs-orgmode
[Top][All Lists]
Advanced

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

Re: A minor suggestion about formatting citations


From: John Kitchin
Subject: Re: A minor suggestion about formatting citations
Date: Mon, 11 Oct 2021 10:28:39 -0400

you should probably trim each key, and re-add spaces where you want them in the function that does these kinds of things. Maybe that should even be controlled by a defcustom that allows 0-1 spaces.

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803


On Mon, Oct 11, 2021 at 9:38 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
On Mon, Oct 11, 2021 at 5:40 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Vikas Rawal <vikasrawal@gmail.com> writes:
>
> > I find it works better for me if I insert spaces between multiple
> > citations. For example: [cite: @john56; @john35; @bruce2021] rather
> > than [cite:@john56;@john35;@bruce2021].
> >
> > The of advantage is that if I am citing many references in one place,
> > and use fill-paragraph/auto-fill, they wrap nicely. As far as I can
> > see, having spaces in between works just fine.
> >
> > If this does not break anything, should this be the recommended
> > practice for the org-cite-insert-processors?
>
> Done, at least for insert processors relying on
> `org-cite-make-insert-processor'. Thank you.

There is one little issue I see.

Org-ref, and in turn org-ref-cite, have functions, attached via keymap
on the citation face, that allow one to shift the citation-references
within a citation.

I've borrowed some of that for oc-bibtex-actions as well.

So if I insert a citation using org-cite-insert, I get this:

[cite:@samers2002; @kohn2005]

If I then shift the right one left, I get this, which seems less than ideal:

[cite: @kohn2005;@samers2002;]

WDYT?

Bruce


reply via email to

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