Skip to content

under Windows, "ipython3 nbconvert "C:/blabla/first_try.ipynb" --to latex" write "\" instead of "/" to reference file path in the .tex file #3885

@stonebig

Description

@stonebig

Hello,

I tried the new nbconvert feature of IPython1.0.0rc1 this morning on a Windows Vista PC.
The .TEX generated file is perfect EXCEPT the directory separator character, which is unfortunately written as "" instead of "/".

Example (abstract) :
**** instruction used to create the .TEX file ****
ipython3 nbconvert "C:/blabla/bla/first_try.ipynb" --to latex

gives (First 5 lines) :
**(begining of abstract) ***
% Header, overrides base
% Make sure that the sphinx doc style knows who it inherits from.
\def\sphinxdocclass{article}
% Declare the document class
\documentclass[letterpaper,10pt,english]{C:\blabla\winpython\WinPython-32bit-3.3.2.1rc1\python-3.3.2\lib\site-packages\sphinx\texinputs/sphinxhowto}
*** (..., then a reference to another document, also with a "" instead of a "/") ***
\begin{center}
\includegraphics[max size={\textwidth}{\textheight}]{first_try_files\first_try_3_0.png}
\par
\end{center}
*** (end of abstract) *****

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions