diff --git a/IPython/nbconvert/post_processors/pdf.py b/IPython/nbconvert/post_processors/pdf.py index 14f2967..1140436 100644 --- a/IPython/nbconvert/post_processors/pdf.py +++ b/IPython/nbconvert/post_processors/pdf.py @@ -30,7 +30,7 @@ class PDFPostProcessor(PostProcessorBase): How many times pdflatex will be called. """) - command = List(["pdflatex", "{filename}"], config=True, help=""" + command = List(["pdflatex", "--interaction=batchmode", "{filename}"], config=True, help=""" Shell command used to compile PDF.""") verbose = Bool(False, config=True, help=""" diff --git a/IPython/nbconvert/transformers/sphinx.py b/IPython/nbconvert/transformers/sphinx.py index 8c4fa7c..6d16f61 100755 --- a/IPython/nbconvert/transformers/sphinx.py +++ b/IPython/nbconvert/transformers/sphinx.py @@ -168,7 +168,7 @@ class SphinxTransformer(Transformer): resources["sphinx"]["header"] = self.use_headers # Find and pass in the path to the Sphinx dependencies. - resources["sphinx"]["texinputs"] = os.path.realpath(os.path.join(sphinx.__file__, "..", "texinputs")) + resources["sphinx"]["texinputs"] = os.path.realpath(os.path.join(sphinx.package_dir, "texinputs")) # Generate Pygments definitions for Latex resources["sphinx"]["pygment_definitions"] = self._generate_pygments_latex_def()