[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A minor suggestion about formatting citations
From: |
Nicolas Goaziou |
Subject: |
Re: A minor suggestion about formatting citations |
Date: |
Mon, 11 Oct 2021 17:54:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
"Bruce D'Arcus" <bdarcus@gmail.com> writes:
> On Mon, Oct 11, 2021 at 10:28 AM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
>>
>> you should probably trim each key, and re-add spaces where you want them in
>> the function that does these kinds of things.
>
> I realize that's an option, but something about that feels wrong to me.
>
> We're adding a single space as prefix, not because it's meaningful for
> citation purposes (there actually is no prefix, though org-cite
> interprets it as " "), but only so buffer formatting works correctly.
I don't think that's totally true. The additional space makes sense
typographically, in particular when some suffix is associated to the
key.
> And then presumably code needs to be added to the export machinery to
> strip those empty affixes?
I think they are ignored already. I didn't check though.
> Am not saying the latter goal isn't important; just seems like the
> side effect isn't ideal.
>
>> Maybe that should even be controlled by a defcustom that allows 0-1 spaces.
>
> You mean in org-cite? I think that'd be my preference, unless there's
> a better solution to this issue.
Org Cite is unrelated to this. One could as well have inserted spaces
manually, i.e., without calling `org-cite-insert' at all. The functions
responsible for swapping citations ought to cope with this situation
too.
Regards,
--
Nicolas Goaziou