[IPython-dev] High-quality pdf output (pdflatex) directly from notebooks

Damián Avila damianavila at gmail.com
Sat May 12 20:21:14 EDT 2012


El 12/05/12 21:07, Massimo Di Stefano escribió:
> Thankjs Fernando!
> it give me the right nbserver,
>
> Tring it, latex is correctly detected as output format, but i still have the error below :
>
> No such file or directory: 'preamble.tex'
>
>
>
> (process:8259): Gtk-WARNING **: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> Setting Language: .UTF-8
>
> (process:8300): Gtk-WARNING **: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> Setting Language: .UTF-8
>
> (process:8343): Gtk-WARNING **: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> Traceback (most recent call last):
>    File "nbconvert.py", line 712, in<module>
>      main(infile=args.infile[0], format=args.format)
>    File "nbconvert.py", line 690, in main
>      latexfname = converter.render()
>    File "nbconvert.py", line 149, in render
>      self.output = self.convert()
>    File "nbconvert.py", line 514, in convert
>      with open(os.path.join(os.path.dirname(myfile), 'preamble.tex')) as f:
> IOError: [Errno 2] No such file or directory: 'preamble.tex'
> MacBook-Pro-di-Massimo:nbconvert epifanio$
>
>
> Il giorno May 12, 2012, alle ore 8:02 PM, Fernando Perez ha scritto:
>
>> On Sat, May 12, 2012 at 4:08 PM, Massimo Di Stefano
>> <massimodisasha at gmail.com>  wrote:
>>> git clone https://github.com/fperez/nbconvert.git
>>>
>>> gived me an  nbconvert without latex  support
>>> … i had to manually copy and past the one from git browser :/
>> No, as I indicated above, the code is in the latex-conv branch, not in
>> master.  You need to check out that branch first if you want to use
>> it:
>>
>> git checkout latex-conv
>>
>> Cheers,
>>
>> f
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Are you sure you are in the right branch?

Delete your cloned repository and start again:

|$ git clone https://github.com/fperez/nbconvert.git
$ cd nbconvert||
|$ git checkout -b latex-conv origin/latex-conv
$ git branch|
* latex-conv
   master
$ git pull
|

And let us know...

Regards.

Damián.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120512/236b4780/attachment.html>


More information about the IPython-dev mailing list