Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
On Mar 5, 2009, at 12:08 AM, William Henney wrote: On Tue, Mar 3, 2009 at 3:34 AM, Carsten Dominik domi...@science.uva.nl wrote: Now how do we want to do this with org-mode? 1) The user is responsible for creating a bib-file using whatever tools she prefers (e.g. bib2bib). 2) Add an option to just select the entries that are used in the org-file. Nothing fancy. I think (1) and (2) would be really nice. 3) Add a generic API to select+sort+format the entries. (3) seems to be indeed more than necessary. I for one would be perfectly happy if the entries would come out in the sequence of citation, which will likely be automatic? Agreed. Alphabetic sorting would be a nice optional extra, but just (1) and (2) would be great. In fact, implementing alphabetic sorting for names that actually will work is pretty much a nightmare :-) - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
On Tue, Mar 3, 2009 at 3:34 AM, Carsten Dominik domi...@science.uva.nl wrote: Now how do we want to do this with org-mode? 1) The user is responsible for creating a bib-file using whatever tools she prefers (e.g. bib2bib). 2) Add an option to just select the entries that are used in the org-file. Nothing fancy. I think (1) and (2) would be really nice. 3) Add a generic API to select+sort+format the entries. (3) seems to be indeed more than necessary. I for one would be perfectly happy if the entries would come out in the sequence of citation, which will likely be automatic? Agreed. Alphabetic sorting would be a nice optional extra, but just (1) and (2) would be great. Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
On Mar 3, 2009, at 7:33 AM, Taru Karttunen wrote: On 02.03 10:40, William Henney wrote: Selecting only some entries to display would be possible, but is it really necessary? In my use cases I just tend to have a per-article bib-file that contains the entries I wish to use. Making a rich enough API to sort, reformat and select a portion of a BibTeX file seems quite overblown for org. Personally, I use a single .bib file for everything, which is currently running at 12269 entries, so something like Carsten's suggestion would be necessary before org-exp-bibtex.el became useful to me :) Bibtex2html already comes with a separate tool bib2bib which seems to already do exactly what is needed. See http://www.lri.fr/~filliatr/bibtex2html/doc/#htoc12 Yes, it contains bib2bib and even the main bibtex2html contains functionality for this. Now how do we want to do this with org-mode? 1) The user is responsible for creating a bib-file using whatever tools she prefers (e.g. bib2bib). 2) Add an option to just select the entries that are used in the org-file. Nothing fancy. I think (1) and (2) would be really nice. 3) Add a generic API to select+sort+format the entries. (3) seems to be indeed more than necessary. I for one would be perfectly happy if the entries would come out in the sequence of citation, which will likely be automatic? Both 1 and 2 are easy to do. I can create a patch that adds support for this later this week. Are there any other features that you would need? For consistency with other HTML in Org's output, I think it would be good if the div around the bibliography would be div id=bibliography instead of class. - Carsten - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
On 02.03 10:40, William Henney wrote: Selecting only some entries to display would be possible, but is it really necessary? In my use cases I just tend to have a per-article bib-file that contains the entries I wish to use. Making a rich enough API to sort, reformat and select a portion of a BibTeX file seems quite overblown for org. Personally, I use a single .bib file for everything, which is currently running at 12269 entries, so something like Carsten's suggestion would be necessary before org-exp-bibtex.el became useful to me :) Bibtex2html already comes with a separate tool bib2bib which seems to already do exactly what is needed. See http://www.lri.fr/~filliatr/bibtex2html/doc/#htoc12 Yes, it contains bib2bib and even the main bibtex2html contains functionality for this. Now how do we want to do this with org-mode? 1) The user is responsible for creating a bib-file using whatever tools she prefers (e.g. bib2bib). 2) Add an option to just select the entries that are used in the org-file. Nothing fancy. 3) Add a generic API to select+sort+format the entries. Both 1 and 2 are easy to do. I can create a patch that adds support for this later this week. Are there any other features that you would need? - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
On 27.02 17:19, Carsten Dominik wrote: can I add your code to the contrib directory in Org? Yes, feel free to. Do you need some copyright stuff or is that not needed with contrib? I will probably have some wibbles to it in the next few months, but those can be added in the Git repository. Selecting only some entries to display would be possible, but is it really necessary? In my use cases I just tend to have a per-article bib-file that contains the entries I wish to use. Making a rich enough API to sort, reformat and select a portion of a BibTeX file seems quite overblown for org. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
Hi Taru, if I understand correctly, if I have a large BibTeX database, the entire database file will be included into the HTML file. A possible extension for your program would be to select only the references actually used in the exported file. - Carsten On Feb 22, 2009, at 1:05 PM, Taru Karttunen wrote: Hello Motivated by the discussion on exporting BibTeX to html and LaTeX when using org-mode I created an extension that does this. The html export uses bibtex2html from http://www.lri.fr/~filliatr/bibtex2html/ also packaged in e.g. Debian. This works by a #+BIBLIOGRAPHY: bibfilebasename stylename e.g. given foo.bib and using style plain: #+BIBLIOGRAPHY: foo plain For LaTeX export this simply inserts the lines \bibliographystyle{plain} \bibliography{foo} into the tex-file when exporting. For Html export it: 1) converts all \cite{bar} to links to the bibliography 2) creates a foo.html and foo_bib.html 3) includes the contents of foo.html in the exported html file Code attached. - Taru Karttunen org-exp-bibtex.elmime-attachment.txt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
Has anyone tested this? Taru, do you agree that I should add it to the contrib directory? - Carsten On Feb 22, 2009, at 1:05 PM, Taru Karttunen wrote: Hello Motivated by the discussion on exporting BibTeX to html and LaTeX when using org-mode I created an extension that does this. The html export uses bibtex2html from http://www.lri.fr/~filliatr/bibtex2html/ also packaged in e.g. Debian. This works by a #+BIBLIOGRAPHY: bibfilebasename stylename e.g. given foo.bib and using style plain: #+BIBLIOGRAPHY: foo plain For LaTeX export this simply inserts the lines \bibliographystyle{plain} \bibliography{foo} into the tex-file when exporting. For Html export it: 1) converts all \cite{bar} to links to the bibliography 2) creates a foo.html and foo_bib.html 3) includes the contents of foo.html in the exported html file Code attached. - Taru Karttunen org-exp-bibtex.elmime-attachment.txt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
Hi Taru, are there changes to the XHTML structure imposed by using this extension? Or does it simply add a section with the usual containers and ID's? Since I know many people will use an extension like this, I'd like to support that in org-info.js, that's why I ask. Best, Sebastian Taru Karttunen tar...@taruti.net writes: Hello Motivated by the discussion on exporting BibTeX to html and LaTeX when using org-mode I created an extension that does this. The html export uses bibtex2html from http://www.lri.fr/~filliatr/bibtex2html/ also packaged in e.g. Debian. This works by a #+BIBLIOGRAPHY: bibfilebasename stylename e.g. given foo.bib and using style plain: #+BIBLIOGRAPHY: foo plain For LaTeX export this simply inserts the lines \bibliographystyle{plain} \bibliography{foo} into the tex-file when exporting. For Html export it: 1) converts all \cite{bar} to links to the bibliography 2) creates a foo.html and foo_bib.html 3) includes the contents of foo.html in the exported html file Code attached. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.r...@emma-stil.de, sebastian_r...@gmx.de Http: www.emma-stil.de ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports
This is going to be fantastically useful. Thanks. - Carsten On Feb 22, 2009, at 1:05 PM, Taru Karttunen wrote: Hello Motivated by the discussion on exporting BibTeX to html and LaTeX when using org-mode I created an extension that does this. The html export uses bibtex2html from http://www.lri.fr/~filliatr/bibtex2html/ also packaged in e.g. Debian. This works by a #+BIBLIOGRAPHY: bibfilebasename stylename e.g. given foo.bib and using style plain: #+BIBLIOGRAPHY: foo plain For LaTeX export this simply inserts the lines \bibliographystyle{plain} \bibliography{foo} into the tex-file when exporting. For Html export it: 1) converts all \cite{bar} to links to the bibliography 2) creates a foo.html and foo_bib.html 3) includes the contents of foo.html in the exported html file Code attached. - Taru Karttunen org-exp-bibtex.elmime-attachment.txt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode