Re: [sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-27 Thread Andrea Cortis
Excellent, it now works fine !

For some reason, mac ports is not able to install the 1.1 sphinx
version because of a openjdk6 error, but installing it from the tar
ball worked like a charm.

Thanks again

Andrea

On Tue, Sep 25, 2012 at 6:43 AM, sffjunkie sffjun...@gmail.com wrote:
 On Thursday, 20 September 2012 19:38:55 UTC+1, Andrea wrote:

 thanks guys, but I am experiencing a problem with the bibtex package at

 http://sphinxcontrib-bibtex.readthedocs.org/

 What I get is:
 -
 acortis02-d:doc acortis$ make html
 sphinx-build -b html -d build/doctrees   source build/html
 Running Sphinx v1.0.7
 loading pickled environment... done
 building [html]: targets for 0 source files that are out of date
 updating environment: [extensions changed] 3 added, 0 changed, 0 removed
 reading sources... [ 33%] index
 Exception occurred:
   File
 /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/sphinxcontrib_bibtex-0.2.4-py2.7.egg/sphinxcontrib/bibtex/directives.py,
 line 103, in run
 bibfile = os.path.normpath(env.relfn2path(bibfile.strip())[1])
 AttributeError: BuildEnvironment instance has no attribute 'relfn2path'
 The full traceback has been saved in
 /var/folders/w9/01c_hht14g31d8r_fjh0hxs400017v/T/sphinx-err-XAtCKk.log,
 if you want to report the issue to the developers.
 Please also report this if it was a user error, so that a better error
 message can be provided next time.
 Either send bugs to the mailing list at
 http://groups.google.com/group/sphinx-dev/,
 or report them in the tracker at
 http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
 make: *** [html] Error 1
 -

 Can you help me start figuring out what is this error message?

 Thanks

 Andrea


 Andrea,

 It appears the function `relfn2path`, which is where it was failing, was
 only added at version 1.1 of Sphinx. You will need to upgrade to the latest
 version of Sphinx to get it to work


 --
 You received this message because you are subscribed to the Google Groups
 sphinx-dev group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/sphinx-dev/-/5m_uR-p9fyUJ.

 To post to this group, send email to sphinx-dev@googlegroups.com.
 To unsubscribe from this group, send email to
 sphinx-dev+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/sphinx-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-25 Thread sffjunkie
On Thursday, 20 September 2012 19:38:55 UTC+1, Andrea wrote:

 thanks guys, but I am experiencing a problem with the bibtex package at 

 http://sphinxcontrib-bibtex.readthedocs.org/ 

 What I get is: 
 - 
 acortis02-d:doc acortis$ make html 
 sphinx-build -b html -d build/doctrees   source build/html 
 Running Sphinx v1.0.7 
 loading pickled environment... done 
 building [html]: targets for 0 source files that are out of date 
 updating environment: [extensions changed] 3 added, 0 changed, 0 removed 
 reading sources... [ 33%] index 
 Exception occurred: 
   File 
 /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/sphinxcontrib_bibtex-0.2.4-py2.7.egg/sphinxcontrib/bibtex/directives.py,
  

 line 103, in run 
 bibfile = os.path.normpath(env.relfn2path(bibfile.strip())[1]) 
 AttributeError: BuildEnvironment instance has no attribute 'relfn2path' 
 The full traceback has been saved in 
 /var/folders/w9/01c_hht14g31d8r_fjh0hxs400017v/T/sphinx-err-XAtCKk.log, 
 if you want to report the issue to the developers. 
 Please also report this if it was a user error, so that a better error 
 message can be provided next time. 
 Either send bugs to the mailing list at 
 http://groups.google.com/group/sphinx-dev/, 
 or report them in the tracker at 
 http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks! 
 make: *** [html] Error 1 
 - 

 Can you help me start figuring out what is this error message? 

 Thanks 

 Andrea 


Andrea,

It appears the function `relfn2path`, which is where it was failing, was 
only added at version 1.1 of Sphinx. You will need to upgrade to the latest 
version of Sphinx to get it to work
 

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/5m_uR-p9fyUJ.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



[sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-14 Thread Ramon
Just found and tried this -- works like a charm as long as your
references are in bibtex format:

http://sphinxcontrib-bibtex.readthedocs.org/

Ramon

On Sep 13, 1:06 pm, Ramon felci...@gmail.com wrote:
 Same here -- any update on this?

 Ramon

 On Aug 25, 2:50 pm, Andrea andrea.cor...@gmail.com wrote:







  Hello everybody,

  Sorry for plugging in on an old conversation.

  I have been looking now a while on google for a way to solve this problem,
  i.e., how to include bibtex references in sphinx, and I am not still clear
  on how to do it. Could you please advise if there is now a standard way to
  address this need?

  Thanks

  Andrea

  On Monday, May 31, 2010 5:37:52 AM UTC-5, andreash wrote:

   Hi,

   thanks for pointing me towards that. From a first glance, bibstuff
   looks pretty promising. I'll look around docutils-dev to get going ...

   Cheers,

   Andreas.

   On May 31, 8:09 am, Guenter Milde mi...@users.berlios.de wrote:
On 2010-05-30, andreash wrote:
 Hi there,
 I am using Zotero (http://www.zotero.org) to manage my bibliography
 database. Is there any way how I can include this bibliography into
 Sphinx? Especially in the HTML output ... I'm not necessarily looking
 for a way to actually use these items (although it would be nice); it
 would rather be sufficient to generate the bibliography, if possible
 with the BibTeX style of my choice ...
 If this is not possible, what would be the best way to implement this?

The fastest way would be to export from the BibTeX database to HTML (see
below for tools able to do this) and include (or link to) the resulting
file.

 I'd really be interested in implementing this ...

There is a TODO item for Docutils regarding citations:

  Citations:
    Collect citations that are referenced ...

    Citations can be:

    a) defined in the document as citation elements

    b) auto-generated from entries in a bibliographic database.

       + based on bibstuff_?
       + also have a look at

         * CrossTeX_, a backwards-compatible, improved bibtex
           re-implementation in Python (including HTML export).
           (development stalled since 2 years)

         * Pybtex_,a drop-in replacement for BibTeX written in Python.

           * BibTeX styles  (experimental) pythonic style API.
           * Database in BibTeX, BibTeXML and YAML formats.
           * full Unicode support.
           * Write to TeX, HTML and plain text.

    * Automatically insert a References heading?

.. _bibstuff:http://code.google.com/p/bibstuff/
.. _CrossTeX:http://www.cs.cornell.edu/people/egs/crosstex/
.. _Pybtex:  http://pybtex.sourceforge.net/

Once this is solved in the Docutils core, it will be available for
   Sphinx
too.

Günter

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-14 Thread Adam Hughes
Pimp.
On Sep 14, 2012 6:30 PM, Ramon felci...@gmail.com wrote:

 Just found and tried this -- works like a charm as long as your
 references are in bibtex format:

 http://sphinxcontrib-bibtex.readthedocs.org/

 Ramon

 On Sep 13, 1:06 pm, Ramon felci...@gmail.com wrote:
  Same here -- any update on this?
 
  Ramon
 
  On Aug 25, 2:50 pm, Andrea andrea.cor...@gmail.com wrote:
 
 
 
 
 
 
 
   Hello everybody,
 
   Sorry for plugging in on an old conversation.
 
   I have been looking now a while on google for a way to solve this
 problem,
   i.e., how to include bibtex references in sphinx, and I am not still
 clear
   on how to do it. Could you please advise if there is now a standard
 way to
   address this need?
 
   Thanks
 
   Andrea
 
   On Monday, May 31, 2010 5:37:52 AM UTC-5, andreash wrote:
 
Hi,
 
thanks for pointing me towards that. From a first glance, bibstuff
looks pretty promising. I'll look around docutils-dev to get going
 ...
 
Cheers,
 
Andreas.
 
On May 31, 8:09 am, Guenter Milde mi...@users.berlios.de wrote:
 On 2010-05-30, andreash wrote:
  Hi there,
  I am using Zotero (http://www.zotero.org) to manage my
 bibliography
  database. Is there any way how I can include this bibliography
 into
  Sphinx? Especially in the HTML output ... I'm not necessarily
 looking
  for a way to actually use these items (although it would be
 nice); it
  would rather be sufficient to generate the bibliography, if
 possible
  with the BibTeX style of my choice ...
  If this is not possible, what would be the best way to implement
 this?
 
 The fastest way would be to export from the BibTeX database to
 HTML (see
 below for tools able to do this) and include (or link to) the
 resulting
 file.
 
  I'd really be interested in implementing this ...
 
 There is a TODO item for Docutils regarding citations:
 
   Citations:
 Collect citations that are referenced ...
 
 Citations can be:
 
 a) defined in the document as citation elements
 
 b) auto-generated from entries in a bibliographic database.
 
+ based on bibstuff_?
+ also have a look at
 
  * CrossTeX_, a backwards-compatible, improved bibtex
re-implementation in Python (including HTML export).
(development stalled since 2 years)
 
  * Pybtex_,a drop-in replacement for BibTeX written in
 Python.
 
* BibTeX styles  (experimental) pythonic style API.
* Database in BibTeX, BibTeXML and YAML formats.
* full Unicode support.
* Write to TeX, HTML and plain text.
 
 * Automatically insert a References heading?
 
 .. _bibstuff:http://code.google.com/p/bibstuff/
 .. _CrossTeX:http://www.cs.cornell.edu/people/egs/crosstex/
 .. _Pybtex:  http://pybtex.sourceforge.net/
 
 Once this is solved in the Docutils core, it will be available for
Sphinx
 too.
 
 Günter

 --
 You received this message because you are subscribed to the Google Groups
 sphinx-dev group.
 To post to this group, send email to sphinx-dev@googlegroups.com.
 To unsubscribe from this group, send email to
 sphinx-dev+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/sphinx-dev?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



[sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-13 Thread Ramon
Same here -- any update on this?

Ramon

On Aug 25, 2:50 pm, Andrea andrea.cor...@gmail.com wrote:
 Hello everybody,

 Sorry for plugging in on an old conversation.

 I have been looking now a while on google for a way to solve this problem,
 i.e., how to include bibtex references in sphinx, and I am not still clear
 on how to do it. Could you please advise if there is now a standard way to
 address this need?

 Thanks

 Andrea







 On Monday, May 31, 2010 5:37:52 AM UTC-5, andreash wrote:

  Hi,

  thanks for pointing me towards that. From a first glance, bibstuff
  looks pretty promising. I'll look around docutils-dev to get going ...

  Cheers,

  Andreas.

  On May 31, 8:09 am, Guenter Milde mi...@users.berlios.de wrote:
   On 2010-05-30, andreash wrote:
Hi there,
I am using Zotero (http://www.zotero.org) to manage my bibliography
database. Is there any way how I can include this bibliography into
Sphinx? Especially in the HTML output ... I'm not necessarily looking
for a way to actually use these items (although it would be nice); it
would rather be sufficient to generate the bibliography, if possible
with the BibTeX style of my choice ...
If this is not possible, what would be the best way to implement this?

   The fastest way would be to export from the BibTeX database to HTML (see
   below for tools able to do this) and include (or link to) the resulting
   file.

I'd really be interested in implementing this ...

   There is a TODO item for Docutils regarding citations:

     Citations:
       Collect citations that are referenced ...

       Citations can be:

       a) defined in the document as citation elements

       b) auto-generated from entries in a bibliographic database.

          + based on bibstuff_?
          + also have a look at

            * CrossTeX_, a backwards-compatible, improved bibtex
              re-implementation in Python (including HTML export).
              (development stalled since 2 years)

            * Pybtex_,a drop-in replacement for BibTeX written in Python.

              * BibTeX styles  (experimental) pythonic style API.
              * Database in BibTeX, BibTeXML and YAML formats.
              * full Unicode support.
              * Write to TeX, HTML and plain text.

       * Automatically insert a References heading?

   .. _bibstuff:http://code.google.com/p/bibstuff/
   .. _CrossTeX:http://www.cs.cornell.edu/people/egs/crosstex/
   .. _Pybtex:  http://pybtex.sourceforge.net/

   Once this is solved in the Docutils core, it will be available for
  Sphinx
   too.

   Günter

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



Re: [sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-13 Thread Erik Hetzner
At Thu, 13 Sep 2012 13:06:56 -0700 (PDT),
Ramon wrote:
 
 Same here -- any update on this?

It needs work, but if you use zotero you can use zot4rst,

  https://bitbucket.org/egh/zot4rst

I hope to have some time to decouple this from zotero soon.

best, Erik
Sent from my free software system http://fsf.org/.
-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



[sphinx-dev] Re: How to include bibliography from BibTeX

2012-09-01 Thread Andrea
Hello everybody,

Sorry for plugging in on an old conversation.

I have been looking now a while on google for a way to solve this problem, 
i.e., how to include bibtex references in sphinx, and I am not still clear 
on how to do it. Could you please advise if there is now a standard way to 
address this need?

Thanks

Andrea

On Monday, May 31, 2010 5:37:52 AM UTC-5, andreash wrote:

 Hi, 

 thanks for pointing me towards that. From a first glance, bibstuff 
 looks pretty promising. I'll look around docutils-dev to get going ... 

 Cheers, 

 Andreas. 

 On May 31, 8:09 am, Guenter Milde mi...@users.berlios.de wrote: 
  On 2010-05-30, andreash wrote: 
   Hi there, 
   I am using Zotero (http://www.zotero.org) to manage my bibliography 
   database. Is there any way how I can include this bibliography into 
   Sphinx? Especially in the HTML output ... I'm not necessarily looking 
   for a way to actually use these items (although it would be nice); it 
   would rather be sufficient to generate the bibliography, if possible 
   with the BibTeX style of my choice ... 
   If this is not possible, what would be the best way to implement this? 
  
  The fastest way would be to export from the BibTeX database to HTML (see 
  below for tools able to do this) and include (or link to) the resulting 
  file. 
  
   I'd really be interested in implementing this ... 
  
  There is a TODO item for Docutils regarding citations: 
  
Citations: 
  Collect citations that are referenced ... 
  
  Citations can be: 
  
  a) defined in the document as citation elements 
  
  b) auto-generated from entries in a bibliographic database. 
  
 + based on bibstuff_? 
 + also have a look at 
  
   * CrossTeX_, a backwards-compatible, improved bibtex 
 re-implementation in Python (including HTML export). 
 (development stalled since 2 years) 
  
   * Pybtex_,a drop-in replacement for BibTeX written in Python. 
  
 * BibTeX styles  (experimental) pythonic style API. 
 * Database in BibTeX, BibTeXML and YAML formats. 
 * full Unicode support. 
 * Write to TeX, HTML and plain text. 
  
  * Automatically insert a References heading? 
  
  .. _bibstuff:http://code.google.com/p/bibstuff/ 
  .. _CrossTeX:http://www.cs.cornell.edu/people/egs/crosstex/ 
  .. _Pybtex:  http://pybtex.sourceforge.net/ 
  
  Once this is solved in the Docutils core, it will be available for 
 Sphinx 
  too. 
  
  Günter

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/GilKMjiDKQYJ.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.



[sphinx-dev] Re: How to include bibliography from BibTeX

2010-05-31 Thread andreash
Hi,

thanks for pointing me towards that. From a first glance, bibstuff
looks pretty promising. I'll look around docutils-dev to get going ...

Cheers,

Andreas.

On May 31, 8:09 am, Guenter Milde mi...@users.berlios.de wrote:
 On 2010-05-30, andreash wrote:
  Hi there,
  I am using Zotero (http://www.zotero.org) to manage my bibliography
  database. Is there any way how I can include this bibliography into
  Sphinx? Especially in the HTML output ... I'm not necessarily looking
  for a way to actually use these items (although it would be nice); it
  would rather be sufficient to generate the bibliography, if possible
  with the BibTeX style of my choice ...
  If this is not possible, what would be the best way to implement this?

 The fastest way would be to export from the BibTeX database to HTML (see
 below for tools able to do this) and include (or link to) the resulting
 file.

  I'd really be interested in implementing this ...

 There is a TODO item for Docutils regarding citations:

   Citations:
     Collect citations that are referenced ...

     Citations can be:

     a) defined in the document as citation elements

     b) auto-generated from entries in a bibliographic database.

        + based on bibstuff_?
        + also have a look at

          * CrossTeX_, a backwards-compatible, improved bibtex
            re-implementation in Python (including HTML export).
            (development stalled since 2 years)

          * Pybtex_,a drop-in replacement for BibTeX written in Python.

            * BibTeX styles  (experimental) pythonic style API.
            * Database in BibTeX, BibTeXML and YAML formats.
            * full Unicode support.
            * Write to TeX, HTML and plain text.

     * Automatically insert a References heading?

 .. _bibstuff:http://code.google.com/p/bibstuff/
 .. _CrossTeX:http://www.cs.cornell.edu/people/egs/crosstex/
 .. _Pybtex:  http://pybtex.sourceforge.net/

 Once this is solved in the Docutils core, it will be available for Sphinx
 too.

 Günter

-- 
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.