unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Roland Winkler <roland.winkler@physik.uni-erlangen.de>
Subject: Re: [jochen@fhi-berlin.mpg.de: bibtex-generate-url-list enhancement]
Date: Wed, 30 Mar 2005 15:24:12 +0200	[thread overview]
Message-ID: <16970.43132.964999.977099@tfkp12.physik.uni-erlangen.de> (raw)
In-Reply-To: <E1DDqF9-0000nR-Kv@fencepost.gnu.org>


> 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

       reply	other threads:[~2005-03-30 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1DDqF9-0000nR-Kv@fencepost.gnu.org>
2005-03-30 13:24 ` Roland Winkler [this message]
     [not found] ` <16970.37875.452394.32109@tfkp12.physik.uni-erlangen.de>
     [not found]   ` <16970.37875.452394.32109-iRV971lXqr8zLOUDZFttzH20dTPRyWU8FLXUG6abMr4@public.gmane.org>
2005-03-30 18:16     ` [jochen-+It19tn3Rl9sbm7dSapR3bNAH6kLmebB@public.gmane.org: bibtex-generate-url-list enhancement] Jochen Küpper
2005-03-30 19:41       ` [jochen@fhi-berlin.mpg.de: " Roland Winkler
     [not found]         ` <16971.242.974710.569348-iRV971lXqr8zLOUDZFttzH20dTPRyWU8FLXUG6abMr4@public.gmane.org>
2005-03-30 21:43           ` [jochen-+It19tn3Rl9sbm7dSapR3bNAH6kLmebB@public.gmane.org: " Jochen Küpper
     [not found]             ` <m3zmwkollx.fsf-X+QEHg5KIgm/8B4OpmtwqPxnRIzENc/G@public.gmane.org>
2005-04-01 12:51               ` bibtex-generate-url-list Jochen Küpper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16970.43132.964999.977099@tfkp12.physik.uni-erlangen.de \
    --to=roland.winkler@physik.uni-erlangen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).