From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vaidheeswaran C Subject: Re: Citation syntax: Underscore MUST(?) be allowed in cite keys? Date: Thu, 05 Mar 2015 00:12:42 +0530 Message-ID: <54F75222.8030805@gmail.com> References: <874mq0399a.fsf@gmx.us> Reply-To: vaidheeswaran.chinnaraju@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEDt-00064A-1c for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 13:40:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTEDp-0006lz-Lq for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 13:40:44 -0500 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:35375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEDp-0006lp-Ce for emacs-orgmode@gnu.org; Wed, 04 Mar 2015 13:40:41 -0500 Received: by pdbfp1 with SMTP id fp1so8465071pdb.2 for ; Wed, 04 Mar 2015 10:40:40 -0800 (PST) In-Reply-To: <874mq0399a.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org 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. >> >> When I import the above .bib file to JabRef GUI, the keys that are >> reported are \cite{adler_how_1972}, >> \cite{center_for_history_and_new_media_zotero_????}. >> >> I am a novice comes to citation. I had a vague impression by that `_' >> is not allowed in cite keys. If we go this way, then the above >> workflow will be a nightmare. > > Underscore is fine. Here's the regexp that bibtex.el uses for keys: > > \\([][[:alnum:].:;?!`'/*@+|()<>&_^$-]+\\) > > See bibtex-entry-head. I am complaining about how org-element.el behaves. This [cite:@adler_how_1972] becomes this: (citation (:key #("adler" 0 5 (keymap (keymap (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . org-open-at-mouse)) face org-link mouse-face highlight htmlize-link (:uri "cite:@adler_how_1972") fontified t)) :parentheticalp nil :begin 192 :post-blank 0 :end 214 :suffix (#4=(underline (:begin 204 :end 209 :contents-begin 205 :contents-end 208 :post-blank 0 :parent #3#) #("how" 0 3 (:parent #4#))) #("1972" 0 4 (:parent #3#))) :parent #5#)) > Jabref is pretty solid (though I'm not at fan of how handles encoding) and > will not produce wrong keys. > > Cheers, > Rasmus >