From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.devel Subject: Re: [jochen@fhi-berlin.mpg.de: bibtex-generate-url-list enhancement] Date: Wed, 30 Mar 2005 15:24:12 +0200 Message-ID: <16970.43132.964999.977099@tfkp12.physik.uni-erlangen.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112189208 2159 80.91.229.2 (30 Mar 2005 13:26:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 13:26:48 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 15:26:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGdCr-0004zW-Ne for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2005 15:26:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGdTM-0007b7-CJ for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2005 08:43:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGdSr-0007Su-Vz for emacs-devel@gnu.org; Wed, 30 Mar 2005 08:42:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGdSh-0007NV-JC for emacs-devel@gnu.org; Wed, 30 Mar 2005 08:42:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGdSh-0007Mk-9H for emacs-devel@gnu.org; Wed, 30 Mar 2005 08:42:23 -0500 Original-Received: from [131.188.3.181] (helo=max71.rrze.uni-erlangen.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGdBJ-0006cR-L2 for emacs-devel@gnu.org; Wed, 30 Mar 2005 08:24:26 -0500 Original-Received: from localhost ([131.188.3.181] [131.188.3.181]) by max71.rrze.uni-erlangen.de with ESMTP for emacs-devel@gnu.org; Wed, 30 Mar 2005 15:24:15 +0200 Original-Received: from max71.rrze.uni-erlangen.de ([131.188.3.181]) by localhost (max71 [131.188.2.91]) (amavisd-new, port 10025) with ESMTP id 04067-01-2277 for ; Wed, 30 Mar 2005 15:24:15 +0200 (MEST) Original-Received: from tfkp12.physik.uni-erlangen.de (tfkp12.physik.uni-erlangen.de [131.188.164.212]) by max71.rrze.uni-erlangen.de with ESMTP for emacs-devel@gnu.org; Wed, 30 Mar 2005 15:24:15 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: X-Mailer: VM 7.19 under Emacs 21.3.50.2 X-Virus-Scanned: by amavisd-new-20030616 (RRZE) on max71.rrze.uni-erlangen.de X-Spam-PYZOR: Reported 0 times. X-Spam-DCC: rrze-dcc:boeck1 1202; Body=2 Fuz1=2 Fuz2=2 X-Spam-RBL: X-Spam-Eval: ham X-Spam-RRZE-Info: Diese Mail wurde einer automatischen Spam-Analyse unterzogen, siehe: http://www.rrze.uni-erlangen.de/dienste/e-mail/spam-analyse/ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35359 > Maybe the following enhanced definition can be put into emacs' > bibtex.el: > ,---- > | bibtex-generate-url-list '((("doi" . "") > | "http://dx.doi.org/" > | ("doi" ".*" 0)) > | (("url" . ".*:.*")) > | (("journal" . "\\<\\(PR[ABCDEL]?\\|RMP\\)\\>") > | "http://link.aps.org/abstract/" > | ("journal" ".*" downcase) > | "/v" ("volume" ".*" 0) > | "/p" ("pages" "\\`\\([0-9]+\\)" 1)) > | (("journal" . "\\<\\(APL\\|JAP\\|JCP\\|JMP\\|JPCRD\\|RSI\\)\\>") > | "http://link.aip.org/link/?" > | ("journal" ".*" upcase) > | "/" ("volume" ".*" 0) > | "/" ("pages" "\\`\\([0-9]+\\)" 1) > | "/" "1")) > `---- > It adds support for journal from one additional publisher (AIP) and > also the more general case of using a DOI [1], which are really what > should be used today in a database to refer to online content. > > It would also be nice to have DOI in bibtex-entry-field-alist (as > optional entry for all entry types) and to have the field buttonized > if available (just like url or journal (if prl/jcp/or such). Hi Jochen Thanks a lot for these suggestions. However, I hesitate to put these changes into bibtex.el. It appears to me that the above value for bibtex-generate-url-list reflect your personal preferences so that they should go into the personal .emacs: - The default values for user variables in bibtex.el reflect the usage of BibTeX as a bibliography database for LaTeX documents. To the best of my knowledge, neither URLs nor DOIs are required for LaTeX documents. The default value for bibtex-generate-url-list is an example for how to use this variable. - The buttons for URLs in BibTeX files are inserted via font-lock. The algorithm is fairly complicated. I expect that a long list of schemes in bibtex-generate-url-list can make font-locking rather slow if one has a slow computer and/or a large BibTeX file. (Comments welcome! I can't check that on my computer, it's pretty fast.) On the other hand, the algorithm is fully customizable. If the journals you work with support DOIs, you can add a DOI field to bibtex-user-optional-fields. And the above value for bibtex-generate-url-list will generate buttons for these fields. Let me know if there is anything that cannot be done by appropriate values for bibtex-user-optional-fields and bibtex-generate-url-list. - It seems to me that your choice of journals from AIP reflects your personal preferences. See http://link.aip.org/jhtml/rre_list.jsp for a more complete list of AIP journals. However, this rather long list of journal names would make font-locking even slower. (The British IOP and the European EPS use similar schemes for their journals.) In my .emacs, I have pretty much the same value for bibtex-generate-url-list you suggest. (I expect that you are a physicist like me. You are interested in the same journals.) Roland