From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Bruce D'Arcus" <bdarcus@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>,
Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: A minor suggestion about formatting citations
Date: Mon, 11 Oct 2021 10:28:39 -0400 [thread overview]
Message-ID: <CAJ51EToyrhHQuHfn17m7Z8N8ANTnTGboFovnHMfgu=DKmPVsUQ@mail.gmail.com> (raw)
In-Reply-To: <CAF-FPGNbtRheA4BzcReScUQMMnhb=HtRgzfkd9Y+FxtS=6Kh5A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]
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
@johnkitchin
http://kitchingroup.cheme.cmu.edu
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
>
>
[-- Attachment #2: Type: text/html, Size: 2727 bytes --]
next prev parent reply other threads:[~2021-10-11 14:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 23:09 A minor suggestion about formatting citations Vikas Rawal
2021-10-11 7:38 ` Eric S Fraga
2021-10-11 9:40 ` Nicolas Goaziou
2021-10-11 13:38 ` Bruce D'Arcus
2021-10-11 14:28 ` John Kitchin [this message]
2021-10-11 14:54 ` Bruce D'Arcus
2021-10-11 15:54 ` Nicolas Goaziou
2021-10-11 16:55 ` Bruce D'Arcus
2021-10-13 12:51 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51EToyrhHQuHfn17m7Z8N8ANTnTGboFovnHMfgu=DKmPVsUQ@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=bdarcus@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).