From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sIIJLRpLZGFyLQAAgWs5BA (envelope-from ) for ; Mon, 11 Oct 2021 16:32:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +EasKBpLZGEeJAAAB5/wlQ (envelope-from ) for ; Mon, 11 Oct 2021 14:32:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A2F676C6D for ; Mon, 11 Oct 2021 16:32:57 +0200 (CEST) Received: from localhost ([::1]:59070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZwMK-0003mP-Mg for larch@yhetil.org; Mon, 11 Oct 2021 10:32:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZwIR-0000eu-TE for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 10:28:56 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:45813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZwIO-0000Su-TM for emacs-orgmode@gnu.org; Mon, 11 Oct 2021 10:28:55 -0400 Received: by mail-wr1-x42c.google.com with SMTP id r10so56912222wra.12 for ; Mon, 11 Oct 2021 07:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3FcYjnGooyvul4yspkL3IYCYzzP7u70q0TWyoMlUhY0=; b=AGgsgsO2DaEjsERIPYyPgXHC3a4uARE59QoO2Bqb6cy166L+aK+Rv0pTyomyBehAlF EdR1ToLVaR7nw50ISrGGjxA1I1K//+LxtXtKY5Moo8qbI/ZG3oxsc2FYLKZIlOa2q8+M zTbrAABuv7iYOSN5AywzJgg81JI495OrwLfULZDPnth7lASxAMSv9xINgHVqv3P3BL17 845IxErczZZ/lKtsk4fC8WTtl7lnYt8ioTc5E5DW3fvDC2QK+maxjjwp9ay/OIftpIva /7UDGEdmYQ24JxwTwh/uyhPPYX6ja1qG86fPfzdllwQLsuWCPwwtfEde/MC7JVNNJm09 yRzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3FcYjnGooyvul4yspkL3IYCYzzP7u70q0TWyoMlUhY0=; b=SZq6rixGjlkJkPKUAijlMh0HC2LVUn7vcVGuFlA3HXsE+aZj2U1uFRn5fbrsgp9yyz yOKndGtetEYe3c+cyAlSOPL5GfqNndCyOkrrQyBaIfsrOdrgko0XvoEJsJjSDSHtfqHy 9x3Cm5mUak2Pvu1fqkFuob7Vq0Kf/S4nvSgqvAA8+F7B4vSn54k5t+6mGP+PhCFvC5k4 HKG8//miFrhuF/siiK/mX10K01vAyDyTF7wXXmle55WvVV6g2BvgYQ78AAPp7ledkn5p OXXzFhTC9cSz2cTF8vmyGK3PVhOnCygp8EIOrGz6/EuDD8MCVkYV5bIW8ZF36MByndl/ mYRg== X-Gm-Message-State: AOAM532g3ABk9jX3W40/nVsZwzLvbBiJqNMdlopmIUFYOY9ZJ2dUQPkA U8aamDWIX8jhbmtpz/fK2E5xVf7qc4Pt9BgGow+Ppssze6g= X-Google-Smtp-Source: ABdhPJz2NC0cWc99wOSOOq+s4VX/j2lqh+PIROq9eJENmhdsGRwEsTUUU/TFyhs+PqT5eOYHmWP2ccXlAUToCPxi89I= X-Received: by 2002:a5d:6d86:: with SMTP id l6mr25423139wrs.293.1633962530310; Mon, 11 Oct 2021 07:28:50 -0700 (PDT) MIME-Version: 1.0 References: <20211010230903.t7phnpribyvohlja@dalkati> <87wnmjgarm.fsf@nicolasgoaziou.fr> In-Reply-To: From: John Kitchin Date: Mon, 11 Oct 2021 10:28:39 -0400 Message-ID: Subject: Re: A minor suggestion about formatting citations To: "Bruce D'Arcus" Content-Type: multipart/alternative; boundary="00000000000032165b05ce148c35" Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode mailing list , Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633962777; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3FcYjnGooyvul4yspkL3IYCYzzP7u70q0TWyoMlUhY0=; b=kToV8KZzfv0dlz3fKfgjI+J6czT8CuKe2f6/2l4VaLTjQQoA8K4RnhMTG8XGU4ULs1Z7/i NmCTLdyaRT8fCYIAJjvA+kw5/lrqEcNJg+p/RFpc4jyo2Pb71lMzgoJBnU2cLoRmdwU0q3 3THm7g5ZZQlZKh/JNMYjzJ8l4qJWKIQpQS/hjDMz/LXwNuX3YOA4FtsISZYjEWX4wdhm6D avI3+HY6CFFIJVpexPbKy8Kq0EfavsvmIZKSJ6+JF3ZV7la+1mwnhdhLSuP8JgCaCmlraG UuL3wr3qblRUoS9y/Iv9hLd6Wlf2y9qvoxWHBXrpd8I1NPxHZuE6Nwe3cDOw+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633962777; a=rsa-sha256; cv=none; b=obpAV9v2fZlhl0LbhiVi+HB4HQYKhCuCzVdSoH/MWBo5FizQ16kn/X7QCywZf6Pa//5/eD 8SZrTVuCgUleOvBN0yJr2lXfwfPh5vI9jyWGMkj3rsfmG8rWgrQYYimrLwJ0mEcdERF5M+ eG/xztgaA8A3uQHu4zMpytacfvYuMbTeLl/rkkJcvVgvbrZviWnS2u9miSet3nvrW5PYaI AMJPcJGC92IVp7a/v0l6+mNzWSIQUDDmQwLAuQGHfx3i2ZRfUyobYFaFLs/b8jpIfK85fO qyPs1QW/5XPGD7TQQ4/DtdazCi3UQheziJEbAb7PdbYd8KrY2IsFAK2/Exx63w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20210112.gappssmtp.com header.s=20210112 header.b=AGgsgsO2; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20210112.gappssmtp.com header.s=20210112 header.b=AGgsgsO2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A2F676C6D X-Spam-Score: -1.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: teQrmu0v+d4p --00000000000032165b05ce148c35 Content-Type: text/plain; charset="UTF-8" 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 wrote: > On Mon, Oct 11, 2021 at 5:40 AM Nicolas Goaziou > wrote: > > > > Hello, > > > > Vikas Rawal 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 > > --00000000000032165b05ce148c35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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=C2=A0allows 0-1 spaces.
<= br clear=3D"all">
John
-----------------------------------
Professor John Kitchin (he/him/his)=
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Me= llon 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] rath= er
> > than [cite:@john56;@john35;@bruce2021].
> >
> > The of advantage is that if I am citing many references in one pl= ace,
> > and use fill-paragraph/auto-fill, they wrap nicely. As far as I c= an
> > 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

--00000000000032165b05ce148c35--