theochem / horton

HORTON: Helpful Open-source Research TOol for N-fermion systems
http://theochem.github.io/horton/
GNU General Public License v3.0
94 stars 40 forks source link

Bibliography Data in new formats #243

Open matt-chan opened 7 years ago

matt-chan commented 7 years ago

The bibliography data should be changed so that objects being created assign a biblio list attribute which stores the data for citing the method. As functions are called, they should modify the biblio attribute and append new citation data to it in the form of a string (much like how the current logger's biblio is implemented).

We also need an inspection object (for use at the glue-code level) to recurse over all the objects in locals() or globals() and collate all the biblio attributes into one and then print out citation data.

PaulWAyers commented 7 years ago

We were talking about this (I forget if it was Stijn & Farnaz or Derrick & Carlos). We think it should be possible to not only dump a "user-readable" annotated bibiliography, but a bibtex and other (e.g., something that can be used by Endnote, Reference Manager, Papers, Mendeley, etc.) That makes it not only easy to find the right reference, but easy to insert it into the paper....

matt-chan commented 7 years ago

Good point. The fastest way to do this is to keep a second property biblio_bibtex or something like that in the object and append a second string but in bibtex format.

On Tue, 27 Jun 2017 at 02:49 Paul W. Ayers notifications@github.com wrote:

We were talking about this (I forget if it was Stijn & Farnaz or Derrick & Carlos). We think it should be possible to not only dump a "user-readable" annotated bibiliography, but a bibtex and other (e.g., something that can be used by Endnote, Reference Manager, Papers, Mendeley, etc.) That makes it not only easy to find the right reference, but easy to insert it into the paper....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/theochem/horton/issues/243#issuecomment-311221304, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_-NTAb0o9Ug520JHenQbGeKmjs-OnTks5sIFGCgaJpZM4OF4LW .

-- Matt

Sent from my phone

tovrstra commented 7 years ago

I would just stick to one variable to store the references, e.g. using one dictionary per reference. This way you can easily derive bibtex, formatted citation or anything else if needed, without duplication of data.