From: "Jochen Küpper" <jochen-+It19tn3Rl9sbm7dSapR3bNAH6kLmebB@public.gmane.org>
Cc: emacs-devel-mXXj517/zsQ@public.gmane.org
Subject: bibtex-generate-url-list
Date: Fri, 01 Apr 2005 14:51:10 +0200 [thread overview]
Message-ID: <9eoecywthd.fsf_-_@gowron.rz-berlin.mpg.de> (raw)
In-Reply-To: <m3zmwkollx.fsf-X+QEHg5KIgm/8B4OpmtwqPxnRIzENc/G@public.gmane.org> (Jochen Küpper's message of "Wed, 30 Mar 2005 23:43:54 +0200")
Ok, so lets assume I have the following setting
,----
| bibtex-generate-url-list '((("=key=" . ".*")
| ("=key=" ".*" jk/bibtex-pdf-name))
| (("doi" . "10\\..*/.*")
| "http://dx.doi.org/"
| ("doi" ".*" 0))
| (("url" . ".*:.*")))
`----
and
,----
| (defvar jk/bibtex-pdf-location (concat jk/home-dir "/PDF") "Location of PDF archive")
| (defun jk/bibtex-pdf-name (key)
| "Determine filename in PDF databse from bibtex key.
|
| This function determines the filename corresponding to the current entry.
| "
| (progn
| (subst-char-in-string (string-to-char ":") (string-to-char "_") key t)
| (concat jk/bibtex-pdf-location "/" (substring key 0 1) "/" key ".pdf")))
`----
This will, obviously, always try to open a file in my local archive
and never use the doi or url fields. What I actually want is that the
file from the archive is used *if* available, the doi/url otherwise.
I can supply a function to check for the availability in the archive,
but is there any way to have bibtex-url go back and use the next entry
if the file is not available?
If not, I guess I can write a function around bibtex-url that checks
for the availability of the local file and opens it if its there, but
use bibtex-url without the local source otherwise... Doesn't sound
like the cleanest approach, though.
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
prev parent reply other threads:[~2005-04-01 12:51 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 ` [jochen@fhi-berlin.mpg.de: bibtex-generate-url-list enhancement] Roland Winkler
[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: " 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 ` Jochen Küpper [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9eoecywthd.fsf_-_@gowron.rz-berlin.mpg.de \
--to=jochen-+it19tn3rl9sbm7dsapr3bnah6klmebb@public.gmane.org \
--cc=emacs-devel-mXXj517/zsQ@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.