Skip to content

Commit

Permalink
Merge pull request ipython#3736 from ivanov/fix-3735
Browse files Browse the repository at this point in the history
Don't strip pdf extension from figure filenames

It seems to have been an erroneous assumption that this was necessary.

closes ipython#3735
  • Loading branch information
minrk committed Jul 25, 2013
2 parents 52b3428 + 05146a2 commit 01458c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IPython/nbconvert/templates/latex/base.tplx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ it introduces a new line

((*- block data_pdf -*))
\begin{center}
\includegraphics[width=0.7\textwidth]{(((output.pdf_filename[:-4])))}
\includegraphics[width=0.7\textwidth]{(((output.pdf_filename)))}
\par
\end{center}
((*- endblock -*))
Expand Down
2 changes: 1 addition & 1 deletion IPython/nbconvert/templates/latex/sphinx_base.tplx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Note: For best display, use latex syntax highlighting. =))
((*- endblock -*))

((*- block data_pdf -*))
((( conditionally_center_output(insert_graphics(output.pdf_filename[:-4])) )))
((( conditionally_center_output(insert_graphics(output.pdf_filename)) )))
((*- endblock -*))

((*- block data_latex *))
Expand Down

0 comments on commit 01458c0

Please sign in to comment.