Last active
December 28, 2015 06:59
-
-
Save sglyon/7461215 to your computer and use it in GitHub Desktop.
PythonTex inputpygments bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\relax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.7.29) 13 NOV 2013 23:12 | |
entering extended mode | |
\write18 enabled. | |
%&-line parsing enabled. | |
**main.tex | |
(./main.tex | |
LaTeX2e <2011/06/27> | |
Babel <3.9f> and hyphenation patterns for 78 languages loaded. | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls | |
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo | |
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) | |
) | |
\c@part=\count79 | |
\c@section=\count80 | |
\c@subsection=\count81 | |
\c@subsubsection=\count82 | |
\c@paragraph=\count83 | |
\c@subparagraph=\count84 | |
\c@figure=\count85 | |
\c@table=\count86 | |
\abovecaptionskip=\skip41 | |
\belowcaptionskip=\skip42 | |
\bibindent=\dimen102 | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/pythontex/pythontex.sty | |
Package: pythontex 2013/06/24 Version\protect \unhbox \voidb@x \penalty \@M \ { | |
}0.12beta | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty | |
Package: fancyvrb 2008/02/07 | |
Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix | |
<2008/02/07> (tvz) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty | |
Package: keyval 1999/03/16 v1.13 key=value parser (DPC) | |
\KV@toks@=\toks14 | |
) | |
\FV@CodeLineNo=\count87 | |
\FV@InFile=\read1 | |
\FV@TabBox=\box26 | |
\c@FancyVerbLine=\count88 | |
\FV@StepNumber=\count89 | |
\FV@OutFile=\write3 | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty | |
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB) | |
\et@xins=\count90 | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/etoolbox/etoolbox.sty | |
Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX | |
\etb@tempcnta=\count91 | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/xstring/xstring.sty | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/xstring/xstring.tex | |
\@xs@message=\write4 | |
\integerpart=\count92 | |
\decimalpart=\count93 | |
) | |
Package: xstring 2013/2/28 v1.7a String manipulations (C Tellechea) | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/pgfopts/pgfopts.sty | |
Package: pgfopts 2011/06/02 v2.1 LaTeX package options with pgfkeys | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex | |
\pgfkeys@pathtoks=\toks15 | |
\pgfkeys@temptoks=\toks16 | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c | |
ode.tex | |
\pgfkeys@tmptoks=\toks17 | |
))) | |
\pgfopts@list@add@a@toks=\toks18 | |
\pgfopts@list@add@b@toks=\toks19 | |
) (/usr/local/texlive/2013/texmf-dist/tex/latex/caption/newfloat.sty | |
Package: newfloat 2013/05/11 v1.1-91 Defining new floating environments (AR) | |
) (/usr/local/texlive/2013/texmf-dist/tex/latex/upquote/upquote.sty | |
Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba | |
tim | |
) | |
\pytx@codefile=\write5 | |
\openout5 = `main.pytxcode'. | |
\c@pytx@FancyVerbLineTemp=\count94 | |
) | |
(./main.aux) | |
\openout1 = `main.aux'. | |
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6. | |
LaTeX Font Info: ... okay on input line 6. | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty | |
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK) | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg | |
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive | |
) | |
Package xcolor Info: Driver file: pdftex.def on input line 225. | |
(/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def | |
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty | |
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) | |
) | |
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty | |
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) | |
) | |
\Gread@gobject=\count95 | |
(/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii | |
[Loading MPS to PDF converter (version 2006.09.02).] | |
\scratchcounter=\count96 | |
\scratchdimen=\dimen103 | |
\scratchbox=\box27 | |
\nofMPsegments=\count97 | |
\nofMParguments=\count98 | |
\everyMPshowfont=\toks20 | |
\MPscratchCnt=\count99 | |
\MPscratchDim=\dimen104 | |
\MPnumerator=\count100 | |
\makeMPintoPDFobject=\count101 | |
\everyMPtoPDFconversion=\toks21 | |
)) | |
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337. | |
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341. | |
Package xcolor Info: Model `RGB' extended on input line 1353. | |
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355. | |
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356. | |
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357. | |
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358. | |
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359. | |
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360. | |
) | |
Package newfloat Info: New float `listing' with options `fileext=lopytx' on inp | |
ut line 6. | |
\c@listing=\count102 | |
\newfloat@ftype=\count103 | |
Package newfloat Info: float type `listing'=8 on input line 6. | |
! Undefined control sequence. | |
<write> ...ytx@context \pytx@delimchar \pytx@args | |
\pytx@delimchar \the \inpu... | |
l.8 \inputpygments{python}{temp.py} | |
? | |
! Emergency stop. | |
<write> ...ytx@context \pytx@delimchar \pytx@args | |
\pytx@delimchar \the \inpu... | |
l.8 \inputpygments{python}{temp.py} | |
End of file on the terminal! | |
Here is how much of TeX's memory you used: | |
3372 strings out of 493311 | |
54482 string characters out of 6137850 | |
131215 words of memory out of 5000000 | |
6842 multiletter control sequences out of 15000+600000 | |
3640 words of font info for 14 fonts, out of 8000000 for 9000 | |
957 hyphenation exceptions out of 8191 | |
48i,0n,53p,820b,37s stack positions out of 5000i,500n,10000p,200000b,80000s | |
! ==> Fatal error occurred, no output PDF file produced! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{pythontex} | |
\setpythontexworkingdir{.} | |
\begin{document} | |
\inputpygments{python}{temp.py} | |
\begin{pygments}{python} | |
a = 1 | |
\end{pygments} | |
how about \pygment{python}{a = 1} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
y = np.arange(4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment