emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?


From: Richard Lawrence
Subject: Re: [O] Citation syntax: Underscore MUST(?) be allowed in cite keys?
Date: Wed, 04 Mar 2015 21:00:34 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hi Rasmus and all,

Rasmus <address@hidden> writes:

> Vaidheeswaran C <address@hidden> writes:
>
>> I am complaining about how org-element.el behaves.

> Oh, you are right.  _ is only allowed as the first character, as you
> probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
> I would tend to agree that this is problematic, but _ is itself
> problematic since it's the subscription character...  From
> http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
> support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
> of the key cf. http://pandoc.org/README.html#citations.

Yep, that's my bad, sorry.

Pandoc says: "The citation key must begin with a letter or _, and may
contain alphanumerics, _, and internal punctuation characters
(:.#$%&-+?<>~/)."

I dropped the second underscore when I was writing the grammar.  Thanks,
Vaisheeswaran, for noticing.  Nicolas, IMO we should update the parser
to allow underscores in keys (including at the final character, I
guess).

Best,
Richard




reply via email to

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