Send Ebib-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/ebib-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ebib-users digest..."
Today's Topics:
1. Re: mastersthesis (Thomas S. Dye)
2. Re: mastersthesis (Joost Kremers)
3. Re: mastersthesis (Thomas S. Dye)
4. Re: mastersthesis (Joost Kremers)
5. Re: mastersthesis (Thomas S. Dye)
6. Re: mastersthesis (Joost Kremers)
----------------------------------------------------------------------
Message: 1
Date: Tue, 13 Sep 2011 09:41:39 -1000
From: [email protected] (Thomas S. Dye)
Subject: Re: [Ebib-users] mastersthesis
To: "Discussion of issues relating to Ebib."
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Joost Kremers <[email protected]> writes:
> On Mon, Sep 12, 2011 at 06:19:41AM -1000, Thomas S. Dye wrote:
>> Joost Kremers <[email protected]> writes:
>> Eric Schulte added this functionality to org-bibtex a while back. I
>> think this might be the appropriate part of org-bibtex.el:
>>
>> (require 'bibtex)
>> (eval-when-compile
>> (require 'cl))
>>
>> (defvar description nil) ; dynamically scoped from org.el
>> (defvar org-id-locations)
>>
>> (declare-function bibtex-beginning-of-entry "bibtex" ())
>> (declare-function bibtex-generate-autokey "bibtex" ())
>
> Hmmm... I see, thanks. So how is your colleague's workflow exactly, if I may
> ask? bibtex-generate-autokey reads a bibtex entry from a buffer and then
> generates a key. But that seems to imply that there is already a properly
> formatted bibtex entry, that is, one with a key. Do you provide temporary
> keys,
> which are then replaced as the fields are filled?
>
> That wouldn't be difficult to duplicate in Ebib, I think. Instead of having to
> type a key, Ebib would provide a temporary key, which is then replaced with an
> autogenerated key when the fields are filled in.
Hi Joost,
At the moment, I'm the only one using ebib and org-mode. My colleagues
all work in emacs with the standard LaTeX helper modes--AucTeX, reftex,
bibtex. We share a master bibliography file that is updated and
distributed periodically. A typical project uses the master
bibliography file and a separate local bibliography file, which is
merged with the master file at the end of the project, after the editor
has had a chance to make sure it is clean. We rely on key
autogeneration to reduce the number of duplicate entries in the master
file. Before we agreed to use autogenerated keys we found the master
file often contained several versions of the same reference, each with a
different key, and often with some slight differences in content.
I'm finding ebib very useful for projects that are designed to be
distributed outside of my circle of colleagues as reproducible
research. These projects require a bib file that includes just the
references cited by the project. ebib makes it very easy to accomplish
this. Still, I want to contribute to our master bibliography file and
comply with our agreement to use autogenerated keys.
As for the mechanics of how Eric S. accomplished this in org-bibtex, I
need to refer you to the org-bibtex.el source, which I presume has the
answer. From the org-bibtex user's perspective, fields are filled out
in response to queries and when this is done the bibtex information is
placed in an Org-mode property drawer with the autogenerated key.
All the best,
Tom
--
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com
------------------------------
Message: 2
Date: Wed, 14 Sep 2011 12:02:55 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] mastersthesis
To: "Discussion of issues relating to Ebib."
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Hi Tom,
On Tue, Sep 13, 2011 at 09:41:39AM -1000, Thomas S. Dye wrote:
> I'm finding ebib very useful for projects that are designed to be
> distributed outside of my circle of colleagues as reproducible
> research. These projects require a bib file that includes just the
> references cited by the project. ebib makes it very easy to accomplish
> this. Still, I want to contribute to our master bibliography file and
> comply with our agreement to use autogenerated keys.
I've added a function to Ebib that will automatically generate a (new) key for
the current entry, using bibtex-generate-autokey. This means that all the
customisation options for that function are available and you should be able to
autogenerate keys that match the keys generated by your colleagues.
What I haven't done (yet) is to allow a workflow where the keys are generated
for you. Instead, you have to first provide a temporary key and fill in the
field values. When you're done, return to the index buffer and hit 'K' (capital
K, that is). That will then replace the temp key with an autogenerated key.
If I have some more time, I will add an option to have Ebib create a temp key
and automatically replace it with an autogenerated key when leaving the entry
buffer (or something to that effect: let me know if you have any wishes/ideas on
that). That way you can simply enter field values without having enter a key
name at all.
Hope this works for you. Do let me know if you find any bugs!
Joost
--
Joost Kremers
Life has its moments
------------------------------
Message: 3
Date: Wed, 14 Sep 2011 06:10:03 -1000
From: [email protected] (Thomas S. Dye)
Subject: Re: [Ebib-users] mastersthesis
To: "Discussion of issues relating to Ebib."
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Joost,
Joost Kremers <[email protected]> writes:
> Hi Tom,
>
> On Tue, Sep 13, 2011 at 09:41:39AM -1000, Thomas S. Dye wrote:
>> I'm finding ebib very useful for projects that are designed to be
>> distributed outside of my circle of colleagues as reproducible
>> research. These projects require a bib file that includes just the
>> references cited by the project. ebib makes it very easy to accomplish
>> this. Still, I want to contribute to our master bibliography file and
>> comply with our agreement to use autogenerated keys.
>
> I've added a function to Ebib that will automatically generate a (new) key for
> the current entry, using bibtex-generate-autokey. This means that all the
> customisation options for that function are available and you should be able
> to
> autogenerate keys that match the keys generated by your colleagues.
>
> What I haven't done (yet) is to allow a workflow where the keys are generated
> for you. Instead, you have to first provide a temporary key and fill in the
> field values. When you're done, return to the index buffer and hit 'K'
> (capital
> K, that is). That will then replace the temp key with an autogenerated key.
This doesn't work for me. I pulled from git, removed the old ebib.elc,
started ebib, added a new entry, returned to the Ebib-index buffer with
point at the temporary key, and hit 'K'. The key did not change. In
Emacs 23 two white bars, one at the top and the other at the bottom,
flashed briefly. In Emacs 24, which I don't use regularly, a white
rectangle flashed briefly and a message appeared: Wrong type argument:
stringp, nil.
>
> If I have some more time, I will add an option to have Ebib create a temp key
> and automatically replace it with an autogenerated key when leaving the entry
> buffer (or something to that effect: let me know if you have any wishes/ideas
> on
> that). That way you can simply enter field values without having enter a key
> name at all.
>
That sounds great. The 'K' option would work nicely for me, though.
Tom
> Hope this works for you. Do let me know if you find any bugs!
>
> Joost
--
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com
------------------------------
Message: 4
Date: Wed, 14 Sep 2011 20:19:41 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] mastersthesis
To: [email protected]
Message-ID: <20110914181941.GA8259@darkstar>
Content-Type: text/plain; charset=utf-8
Hi Tom,
I forgot to add a (require 'bibtex) to Ebib, which I've now fixed. If bibtex.el
isn't loaded, autogenerating keys won't work. However...
On Wed, Sep 14, 2011 at 06:10:03AM -1000, Thomas S. Dye wrote:
> This doesn't work for me. I pulled from git, removed the old ebib.elc,
> started ebib, added a new entry, returned to the Ebib-index buffer with
> point at the temporary key, and hit 'K'. The key did not change. In
> Emacs 23 two white bars, one at the top and the other at the bottom,
> flashed briefly. In Emacs 24, which I don't use regularly, a white
> rectangle flashed briefly and a message appeared: Wrong type argument:
> stringp, nil.
... that is not the error one would expect. (It would say 'Symbol's function
definition is void: bibtex-generate-autokey'.)
I'm using Emacs 23.2.1 and it works fine. (I haven't tested on Emacs 24, which I
don't have installed).
Could you replace the definition of ebib-generate-autokey with the following:
====================
(defun ebib-generate-autokey ()
"Automatically generate a key for the current entry.
This function uses the function BIBTEX-GENERATE-AUTOKEY to
generate the key, see that function's documentation for details."
(interactive)
(ebib-execute-when
((real-db entries)
(let ((new-key
(with-temp-buffer
(ebib-format-entry (ebib-cur-entry-key) ebib-cur-db nil)
(goto-char (point-min))
(bibtex-generate-autokey))))
(message "New key: %s" new-key)
(if (member new-key (edb-keys-list ebib-cur-db))
(error (format "Key `%s' already exists" new-key))
(ebib-update-keyname new-key))))
((default)
(beep))))
====================
(Just copy&paste into the *scratch* buffer, position the cursor after the last
parenthesis and do C-x C-e. That'll load the new function definition, there's no
need to edit ebib.el.)
That should output the new key in the minibuffer when you hit 'K'. That should
at least make clear whether bibtex-generate-autokey has done its work...
Joost
--
Joost Kremers
Life has its moments
------------------------------
Message: 5
Date: Wed, 14 Sep 2011 09:18:16 -1000
From: [email protected] (Thomas S. Dye)
Subject: Re: [Ebib-users] mastersthesis
To: "Discussion of issues relating to Ebib."
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Hi Joost,
Joost Kremers <[email protected]> writes:
> Hi Tom,
>
> I forgot to add a (require 'bibtex) to Ebib, which I've now fixed. If
> bibtex.el
> isn't loaded, autogenerating keys won't work. However...
Yes, this fixed the problem on emacs 23.1.95. I pulled the latest ebib,
compiled ebib.elc, restarted emacs, opened my test bibliography, hit 'K'
in the index and the key changed to one formatted as I expected.
Emacs 24 doesn't work for me, though. It still throws the stringp, nil
error. I don't consider this much of a test, though. I don't compile
emacs 24 here, but occasionally download a nightly build from a web site
that offers emacs for OS X. I typically find that a few things I use
regularly don't work, so I give up and go back to emacs 23.
Thanks very much for adding this functionality. I'm eager to explore
the possibility of integrating ebib into the regular workflow of my
colleagues.
All the best,
Tom
>
> On Wed, Sep 14, 2011 at 06:10:03AM -1000, Thomas S. Dye wrote:
>> This doesn't work for me. I pulled from git, removed the old ebib.elc,
>> started ebib, added a new entry, returned to the Ebib-index buffer with
>> point at the temporary key, and hit 'K'. The key did not change. In
>> Emacs 23 two white bars, one at the top and the other at the bottom,
>> flashed briefly. In Emacs 24, which I don't use regularly, a white
>> rectangle flashed briefly and a message appeared: Wrong type argument:
>> stringp, nil.
>
> ... that is not the error one would expect. (It would say 'Symbol's function
> definition is void: bibtex-generate-autokey'.)
>
> I'm using Emacs 23.2.1 and it works fine. (I haven't tested on Emacs 24,
> which I
> don't have installed).
>
> Could you replace the definition of ebib-generate-autokey with the following:
>
> ====================
>
> (defun ebib-generate-autokey ()
> "Automatically generate a key for the current entry.
> This function uses the function BIBTEX-GENERATE-AUTOKEY to
> generate the key, see that function's documentation for details."
> (interactive)
> (ebib-execute-when
> ((real-db entries)
> (let ((new-key
> (with-temp-buffer
> (ebib-format-entry (ebib-cur-entry-key) ebib-cur-db nil)
> (goto-char (point-min))
> (bibtex-generate-autokey))))
> (message "New key: %s" new-key)
> (if (member new-key (edb-keys-list ebib-cur-db))
> (error (format "Key `%s' already exists" new-key))
> (ebib-update-keyname new-key))))
> ((default)
> (beep))))
>
> ====================
>
> (Just copy&paste into the *scratch* buffer, position the cursor after the last
> parenthesis and do C-x C-e. That'll load the new function definition, there's
> no
> need to edit ebib.el.)
>
> That should output the new key in the minibuffer when you hit 'K'. That should
> at least make clear whether bibtex-generate-autokey has done its work...
>
> Joost
--
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com
------------------------------
Message: 6
Date: Wed, 14 Sep 2011 22:32:36 +0200
From: Joost Kremers <[email protected]>
Subject: Re: [Ebib-users] mastersthesis
To: "Discussion of issues relating to Ebib."
<[email protected]>
Message-ID: <20110914203236.GB8259@darkstar>
Content-Type: text/plain; charset=utf-8
On Wed, Sep 14, 2011 at 09:18:16AM -1000, Thomas S. Dye wrote:
> Joost Kremers <[email protected]> writes:
> > I forgot to add a (require 'bibtex) to Ebib, which I've now fixed. If
> > bibtex.el
> > isn't loaded, autogenerating keys won't work. However...
>
> Yes, this fixed the problem on emacs 23.1.95. I pulled the latest ebib,
> compiled ebib.elc, restarted emacs, opened my test bibliography, hit 'K'
> in the index and the key changed to one formatted as I expected.
<whew> ;-) Glad it works.
> Emacs 24 doesn't work for me, though. It still throws the stringp, nil
> error. I don't consider this much of a test, though. I don't compile
> emacs 24 here, but occasionally download a nightly build from a web site
> that offers emacs for OS X. I typically find that a few things I use
> regularly don't work, so I give up and go back to emacs 23.
I guess that means it's also not a big deal for you if it doesn't work in Emacs
24? Then I won't have to worry about it. ;-)
> Thanks very much for adding this functionality. I'm eager to explore
> the possibility of integrating ebib into the regular workflow of my
> colleagues.
Glad I could help. I'm beginning to like this functionality myself too, BTW. I
just customized a bunch of bibtex-* variables so that bibtex-generate-autokey
generates keys according to the system I use and it's working quite nicely.
Best,
Joost
--
Joost Kremers
Life has its moments
------------------------------
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
------------------------------
_______________________________________________
Ebib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebib-users
End of Ebib-users Digest, Vol 16, Issue 4
*****************************************