We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
results='tex'
Consider the following file input.texw:
input.texw
\documentclass{standalone} \begin{document} <<results='tex', echo=False>>= print(1) @ \end{document}
Running pweave -f tex input.texw creates the following input.tex:
pweave -f tex input.texw
input.tex
\documentclass{standalone} \begin{document} 1 \end{document}
This creates problems when the user wants to print python-results inline in tex files. Example:
\documentclass{standalone} \usepackage{siunitx} \begin{document} \SI{% <<results='tex', echo=False>>= print(1) @ }{\meter} \end{document}
This compiles to
\documentclass{standalone} \usepackage{siunitx} \begin{document} \SI{% 1 }{\meter} \end{document}
which cannot be processed by pdflatex input.tex:
pdflatex input.tex
Runaway argument? { ! Paragraph ended before \SI was complete. <to be read again> \par l.5 ! ==> Fatal error occurred, no output PDF file produced!
The expected input.tex file would have been this:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following file
input.texw
:Running
pweave -f tex input.texw
creates the followinginput.tex
:This creates problems when the user wants to print python-results inline in tex files. Example:
This compiles to
which cannot be processed by
pdflatex input.tex
:The expected
input.tex
file would have been this:The text was updated successfully, but these errors were encountered: