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

2015-03-10 Thread Richard Lawrence
Hi Rasmus, Thanks, your post was very informative. Rasmus writes: > ... >> Can you turn off the automatic addition of commas in BibLaTeX by setting >> something in the preamble? > > Preamble or using \AtNextCite > >> If so, would that be the right solution here? It might be easier to >> remove

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

2015-03-10 Thread Richard Lawrence
Eric S Fraga writes: > On Tuesday, 10 Mar 2015 at 09:50, Rasmus wrote: >> Nicolas Goaziou writes: >>> Since this one is not much more intrusive than the previous one, we >>> could as well drop @key in favor of @{key}. >> >> It seems like a moderately dear price to pay for everyone with "normal"

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

2015-03-10 Thread Matt Price
On Tue, Mar 10, 2015 at 6:18 AM, Eric S Fraga wrote: > On Tuesday, 10 Mar 2015 at 09:50, Rasmus wrote: > > Nicolas Goaziou writes: > >> Since this one is not much more intrusive than the previous one, we > >> could as well drop @key in favor of @{key}. > > > > It seems like a moderately dear pri

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

2015-03-10 Thread Eric S Fraga
On Tuesday, 10 Mar 2015 at 09:50, Rasmus wrote: > Nicolas Goaziou writes: >> Since this one is not much more intrusive than the previous one, we >> could as well drop @key in favor of @{key}. > > It seems like a moderately dear price to pay for everyone with "normal" > citation keys... It's bette

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

2015-03-10 Thread Rasmus
Nicolas Goaziou writes: > I'd rather have a single syntax for keys. Me to. > Since this one is not much more intrusive than the previous one, we > could as well drop @key in favor of @{key}. It seems like a moderately dear price to pay for everyone with "normal" citation keys... It's better t

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

2015-03-10 Thread Nicolas Goaziou
Eric S Fraga writes: >> We keep the existing syntax for keys, which disallows key-ending >> punctuation, but we also allow a second style of key, in which curly >> braces surround the key name proper, like: >> >> @{Doe1999} > > I like this much better. I'd rather have a single syntax for keys.

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

2015-03-10 Thread Eric S Fraga
On Monday, 9 Mar 2015 at 17:36, Richard Lawrence wrote: [...] > I feel the same as you do about this, so here's one more thought for the > thread. How about this alternative? > > We keep the existing syntax for keys, which disallows key-ending > punctuation, but we also allow a second style of

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

2015-03-09 Thread Richard Lawrence
Hi Eric and all, Eric S Fraga writes: > On Monday, 9 Mar 2015 at 09:05, Richard Lawrence wrote: > >> Another option would be to allow clause-ending punctuation in all keys, >> but introduce some kind of optional syntax to express `this key ends > > No, please no! I would say that the majority

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

2015-03-09 Thread Rasmus
Richard Lawrence writes: > Oh dear, you're right. Where do that initial comma and space come from? > I guess BibLaTeX inserts them automatically? Does that happen in all > styles? The default value is determined by \postnotedelim. So assuming spaces not stripped \renewcommand{\postnotedelim}{

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

2015-03-09 Thread Richard Lawrence
Rasmus writes: > Richard Lawrence writes: > >> Suppose you often write citations like: >> >> [cite: See @Doe99, and references therein, for more.] >> >> [...] and rendered like: >> >> See Doe (1999), and references therein, for more. > > This is slightly OT, but it comes up frequently eno

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

2015-03-09 Thread Rasmus
Richard Lawrence writes: > Suppose you often write citations like: > > [cite: See @Doe99, and references therein, for more.] > > [...] and rendered like: > > See Doe (1999), and references therein, for more. This is slightly OT, but it comes up frequently enough that it's worth pointing ou

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

2015-03-09 Thread Eric S Fraga
On Monday, 9 Mar 2015 at 08:44, Thomas S. Dye wrote: [...] > No, you have it right and clearly have a use for shortcuts. If you want > to type shortcut citations yourself, then the choice is either to accept > some kind of terminator, e.g. {}, or a restriction that citation keys > not end in pu

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

2015-03-09 Thread Richard Lawrence
Hi Tom and all, "Thomas S. Dye" writes: > The problem is limited to the shortcut citations and doesn't affect the > [cite: ...] form, which can be expected to work without modification > wherever it is placed IIUC. Actually, it occurs to me now that this might even affect the [cite: ...] form,

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

2015-03-09 Thread Thomas S. Dye
Eric S Fraga writes: > On Monday, 9 Mar 2015 at 07:49, Thomas S. Dye wrote: > > [...] > >> Do you have a use for the shortcuts? I doubt I'd use them. > > Wouldn't the shortcut be the most attractive to use generally unless you > have need for the extra capability of the full [cite:] syntax? > >

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

2015-03-09 Thread Eric S Fraga
On Monday, 9 Mar 2015 at 07:49, Thomas S. Dye wrote: [...] > Do you have a use for the shortcuts? I doubt I'd use them. Wouldn't the shortcut be the most attractive to use generally unless you have need for the extra capability of the full [cite:] syntax? The vast majority of my citations, e.

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

2015-03-09 Thread Thomas S. Dye
Aloha Eric, Eric S Fraga writes: > On Monday, 9 Mar 2015 at 09:05, Richard Lawrence wrote: > > [...] > >> Another option would be to allow clause-ending punctuation in all keys, >> but introduce some kind of optional syntax to express `this key ends > > No, please no! I would say that the majo

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

2015-03-09 Thread Eric S Fraga
On Monday, 9 Mar 2015 at 09:05, Richard Lawrence wrote: [...] > Another option would be to allow clause-ending punctuation in all keys, > but introduce some kind of optional syntax to express `this key ends No, please no! I would say that the majority of my citations are at the end of sentence

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

2015-03-09 Thread Thomas S. Dye
Richard Lawrence writes: > Hi Tom and all, > > "Thomas S. Dye" writes: > >> Richard Lawrence writes: >> >>> But my opinion probably shouldn't count for much on this >>> point, because I don't use a citation manager myself (I use org-bibtex), >>> and I write my own keys. >> >> Oh my. This is a

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

2015-03-09 Thread Richard Lawrence
Hi Tom and all, "Thomas S. Dye" writes: > Richard Lawrence writes: > >> But my opinion probably shouldn't count for much on this >> point, because I don't use a citation manager myself (I use org-bibtex), >> and I write my own keys. > > Oh my. This is a lot to keep in your head as a bibliogra

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

2015-03-09 Thread Stefan Nobis
Vaidheeswaran C writes: > By saying "bibtex is not a requirement", I said "exporting to bibtex". You talked about Zotero but showed a bibtex entry. Therefore exporting from Zotero to bibtex may not be a requirement, there may be a direct interface to Zotero, eventually. We are at the start of t

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

2015-03-09 Thread Rasmus
Vaidheeswaran C writes: > Believe me, if I had quick access to pandoc-hs, there would be a > ox-pandoc-citeproc already in the tree by now. My opinion would be to perhaps not put too much energy into anything Haskell. It's extremely annoying when you don't have the luxury of prebuild packages.

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

2015-03-09 Thread Vaidheeswaran C
On Monday 09 March 2015 03:19 PM, Stefan Nobis wrote: > Vaidheeswaran C writes: > >> On Monday 09 March 2015 02:27 PM, Stefan Nobis wrote: > >>> IMHO keys with lots of ??? in them are a sign of a data problem. >>> Therefore the author should solve the root cause. > >> Not in the specific case t

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

2015-03-09 Thread Stefan Nobis
Vaidheeswaran C writes: > On Monday 09 March 2015 02:27 PM, Stefan Nobis wrote: >> IMHO keys with lots of ??? in them are a sign of a data problem. >> Therefore the author should solve the root cause. > Not in the specific case that I cited. The Bib entry is a pointer to > a website. I would s

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

2015-03-09 Thread Vaidheeswaran C
On Monday 09 March 2015 02:27 PM, Stefan Nobis wrote: > IMHO keys with lots of ??? in them are a sign of a data problem. > Therefore the author should solve the root cause. @misc{center_for_history_and_new_media_zotero_, title = {Zotero {Quick} {Start} {Guide}}, url = {http://

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

2015-03-09 Thread Stefan Nobis
t...@tsdye.com (Thomas S. Dye) writes: > It strikes me that basing core features of the citation syntax on > the software users happen to be using today is a bit like this--at > some point the design of the system will prove unprepared for new > developments. I don't think this is a big problem.

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

2015-03-08 Thread Thomas S. Dye
Aloha Richard, Richard Lawrence writes: > Hi Tom and all, > > t...@tsdye.com (Thomas S. Dye) writes: > >> As I see it, the choice boils down to the relative benefit of citation >> shortcuts vs. the limitation of requiring authors to configure the >> citation manager so it doesn't produce a key e

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

2015-03-08 Thread Richard Lawrence
Hi Tom and all, t...@tsdye.com (Thomas S. Dye) writes: > As I see it, the choice boils down to the relative benefit of citation > shortcuts vs. the limitation of requiring authors to configure the > citation manager so it doesn't produce a key ending in punctuation (or > your solution that uses d

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

2015-03-08 Thread Rasmus
t...@tsdye.com (Thomas S. Dye) writes: Bibtex.el is not that hard to configure. I think I have something like this to configure FIRSTAUTHOR-YY (without the hyphen): (setq bibtex-autokey-titlewords 0 bibtex-autokey-titlewords-stretch 0 bibtex-autokey-titleword-length 0 b

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

2015-03-08 Thread Thomas S. Dye
Aloha Rasmus, Rasmus writes: > t...@tsdye.com (Thomas S. Dye) writes: > >> Rasmus writes: >> >>> Nicolas Goaziou writes: >>> > I'm asking because I haven't fully grasped uses for the shorthand. What > is the use case? More readable, I guess. >>> >>> I agree. In time, "org-r

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

2015-03-08 Thread Rasmus
t...@tsdye.com (Thomas S. Dye) writes: > Rasmus writes: > >> Nicolas Goaziou writes: >> I'm asking because I haven't fully grasped uses for the shorthand. What is the use case? >>> >>> More readable, I guess. >> >> I agree. In time, "org-reftex" would insert @key if no notes are >> r

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

2015-03-08 Thread Stefan Nobis
Richard Lawrence writes: > Like I said, this seems like an edge case, and I don't see that it > is necessarily Org's responsibility to accommodate the keys produced > by Zotero in such edge cases. And there is a significant benefit to > *not* accommodating such keys: namely, you can use in-text c

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

2015-03-07 Thread Thomas S. Dye
Rasmus writes: > Nicolas Goaziou writes: > >>> I'm asking because I haven't fully grasped uses for the shorthand. What >>> is the use case? >> >> More readable, I guess. > > I agree. In time, "org-reftex" would insert @key if no notes are > requested at the time of insertion. I think the OP h

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

2015-03-07 Thread Rasmus
Nicolas Goaziou writes: >> I'm asking because I haven't fully grasped uses for the shorthand. What >> is the use case? > > More readable, I guess. I agree. In time, "org-reftex" would insert @key if no notes are requested at the time of insertion. —Rasmus -- Dung makes an excellent fertiliz

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

2015-03-07 Thread Nicolas Goaziou
Hello, t...@tsdye.com (Thomas S. Dye) writes: > Am I right that key-ending punctuation is a potential problem for the > shorthand part of the syntax and not for the full [cite: ...] syntax? Exactly. If key-ending punctuation is required, we might have to drop shortcuts (i.e. [@key] and @key). A

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

2015-03-07 Thread Vaidheeswaran C
On Saturday 07 March 2015 10:39 PM, Richard Lawrence wrote: > So what if Zotero > sometimes produces keys like this? So what if a LaTeX document will > compile with such keys? Is it your position that that means Org keys > must allow punctuation at the end? Yes. Nicolas is implementing the pars

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

2015-03-07 Thread Thomas S. Dye
Aloha all, Vaidheeswaran C writes: >> If key-ending punctuation turns out to be common, I would revise >> this opinion, but at the moment I don't see the need. > > I am not imagining things. I am pointing out how existing tools > behave. Am I right that key-ending punctuation is a potential pr

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

2015-03-07 Thread Richard Lawrence
Vaidheeswaran C writes: > On Friday 06 March 2015 11:39 PM, Richard Lawrence wrote: >> Hi Vaidheeswaran, >> >> Vaidheeswaran C writes: >> >>> The following combination works when passed through the LaTeX/PDF >>> exporter. It doesn't work when the cite syntax is switched to the new >>> one. >>

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

2015-03-06 Thread Vaidheeswaran C
On Friday 06 March 2015 11:39 PM, Richard Lawrence wrote: > Hi Vaidheeswaran, > > Vaidheeswaran C writes: > >> The following combination works when passed through the LaTeX/PDF >> exporter. It doesn't work when the cite syntax is switched to the new >> one. >> >> \cite{center_for_history_and_ne

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

2015-03-06 Thread Eric S Fraga
On Friday, 6 Mar 2015 at 18:55, Rasmus wrote: > My gut feeling tells me that scripts are "more important" than citations. My gut agrees with yours on this. However, the precedence for citations is only for words starting with @ so this should not pose a problem generally. I cannot remember ever

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

2015-03-06 Thread Richard Lawrence
Hi Vaidheeswaran, Vaidheeswaran C writes: > The following combination works when passed through the LaTeX/PDF > exporter. It doesn't work when the cite syntax is switched to the new > one. > > \cite{center_for_history_and_new_media_zotero_} Is that a realistic example of a key? What progr

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

2015-03-06 Thread Rasmus
Nicolas Goaziou writes: > While we're at it, as you noticed already, bare citation keys take > precedence over subscript. So, basically, one can never add subscript to > a word starting with "@". > > At the bare minimum, we should introduce an entity to generate "@" > (e.g. "\At") so one can alwa

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

2015-03-06 Thread Nicolas Goaziou
Rasmus writes: > This is also not captured: [cite:@Röntgen]. Why limit > org-element--citation-key-re to a-z? Done in 8c941008e0aaf958bdc6ae2cc7dfcbe3fd967b92. While we're at it, as you noticed already, bare citation keys take precedence over subscript. So, basically, one can never add subscri

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

2015-03-06 Thread Vaidheeswaran C
On Friday 06 March 2015 04:19 PM, Nicolas Goaziou wrote: > Richard Lawrence writes: > >> 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 charac

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

2015-03-06 Thread Rasmus
Nicolas Goaziou writes: > Richard Lawrence writes: > >> 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). > > Done in a

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

2015-03-06 Thread Nicolas Goaziou
Richard Lawrence writes: > 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). Done in ab7ff4034e8cd67ae5b5e2cfddfee87082228

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

2015-03-04 Thread Richard Lawrence
Hi Rasmus and all, Rasmus writes: > Vaidheeswaran C 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 thi

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

2015-03-04 Thread Christian Moe
Also, Zotero items are typically identified by [library-ID]_[item-key] hashes with an underscore separator. Christian Rasmus writes: > Vaidheeswaran C writes: > >> I am complaining about how org-element.el behaves. >> >> This [cite:@adler_how_1972] becomes this: > > Oh, you are right. _ is on

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

2015-03-04 Thread Vaidheeswaran C
On Thursday 05 March 2015 12:31 AM, Rasmus wrote: > Vaidheeswaran C writes: > >> I am complaining about how org-element.el behaves. >> >> This [cite:@adler_how_1972] becomes this: > > Oh, you are right. _ is only allowed as the first character, as you > probably saw. See http://permalink.gmane

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

2015-03-04 Thread Rasmus
Vaidheeswaran C writes: > I am complaining about how org-element.el behaves. > > This [cite:@adler_how_1972] becomes this: 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

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

2015-03-04 Thread Vaidheeswaran C
On Thursday 05 March 2015 12:00 AM, Rasmus wrote: > Hi, > > Vaidheeswaran C writes: > >> 1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095 >> 2. Add it to Zotero. >> 3. Export My Library to BibTeX format. >> 4. The attached file -- My Library 1.bib -- is what I get. >> >>

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

2015-03-04 Thread Rasmus
Hi, Vaidheeswaran C writes: > 1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095 > 2. Add it to Zotero. > 3. Export My Library to BibTeX format. > 4. The attached file -- My Library 1.bib -- is what I get. > > When I import the above .bib file to JabRef GUI, the keys that

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

2015-03-04 Thread Vaidheeswaran C
1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095 2. Add it to Zotero. 3. Export My Library to BibTeX format. 4. The attached file -- My Library 1.bib -- is what I get. When I import the above .bib file to JabRef GUI, the keys that are reported are \cite{adler_how_1972}, \c

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

2015-03-04 Thread Vaidheeswaran C
1. Visit http://www.amazon.in/How-Read-Book-Touchstone-book/dp/0671212095 2. Add it to Zotero. 3. Export My Library to BibTeX format. 4. The attached file -- My Library 1.bib -- is what I get. When I import the above .bib file to JabRef GUI, the keys that are reported are \cite{adler_how_1972}, \c