New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TeX produced cannot be converted to PDF #4946
Comments
For me, this notebook compiles fine with ipython 1.1.0. The given error does not appear for both versions. |
Tried it again, IPython V. 1.1.0. Windows 7 64-bit. Python 2.7. |
@yoavram which pandoc version do you use? Can you provide the .tex file as well? |
Pandoc:
Here's the text file |
I've just run into a similar problem. For Markdown cells, NBConvert/Pandoc appears to insert newlines into the TEX output depending on where breaks occur in the rendered cell. However, the newlines do not take into account what is going on in the TEX output. So, for cells that have an HTML link which spans lines, the TEX output contains (an example from when I hit the error):
LaTeX does not allow a line break within this tag, and produces this error:
Similar errors seem to appear all over the place, within \paragraph and \subsection tags as well. |
Hi @RobertCoop I'm unable to reproduce the newline problem, that sounds like something which was fixed a couple months ago in master. Please try with the latest IPython master and a copy Pandoc version 1.12 or later (I think 1.12 is the latest). I used this gist, maybe it's missing something: https://gist.github.com/jdfreder/9606024 @yoavram I can't get the same error, but I'm getting an error:
Which I tracked down as a minimum failing latex example: \documentclass{article}
\usepackage{fancyvrb} % verbatim replacement that allows latex
% commands and environments needed by pandoc snippets
% extracted from the output of `pandoc -s`
\DefineShortVerb[commandchars=\\\{\}]{\|}
% Document parameters
\title{recitation4}
\begin{document}
$$
|f(x)| \le M|g(x)| \; \forall x>x_{0}
$$
\end{document}
|
Same error as jgm/pandoc#469 , maybe we can just remove that |
The only error I was able to reproduce while trying to convert the linked notebook is solved by #5380 . |
This issue needs to be verified as fixed before it can be closed. See the notebook provided below.
Migrated from https://github.com/ipython/nbconvert/issues/118
Original author @yoavram
I either convert ipynb to tex file and try to convert it to PDF with pandoc or TeXworks, or I try to convert ipynb directly to pdf, I always get this error:
Runaway argument?
{Extended Introduction to Computer Science with Python,
! Paragraph ended before @SecT was complete.
\par
l.129 Tel-Aviv University, Spring 2013}
for this input https://raw.github.com/yoavram/CS1001.py/master/recitation4.ipynb.
I'm using the latest nbconvert (I do git pull before running) - commit 670c867.
Thanks
The text was updated successfully, but these errors were encountered: