Closed RealInfinity closed 4 years ago
Can you provide a complete example file, with the complete command you are running to compile it?
Works ok if I provide a dummy cronJob.py
.
@RealInfinity Have you installed python library pgfments
? (Edit: text should be pygments
, attached link is correct)
hmmm...
I don't think so.
Or do you mean pygments?
Sorry, I mean pygments
.
If the problem is reproducible on your side even with pygments
installed, and Missing Pygments output; \inputminted wasor may be using frozencache with a missing file.
is the first error, then you may need to upload a complete example (containing the included .py
file). You can reduce the contents of .py
file to remove sensitive info, as long as the problem is still reproducible.
yes, it's the only error.
previous errors were fixed by adding pygmentize.zip in C:\Windows and adding the --shell-escape in LaTeX.
I also added in the (not sure how to translate that) advanced system options in Windows' environment variable (user variable) Path. But I'm not sure if that was necessary to fix the previous error.
I think the error does not depend on the content.. I just tried it with the following cronJob.py: cronJob.zip
It seems pygmentize
is not on your Path. You can test it by running pygmentize -h
in cmd.exe
. (I'm not familiar with either Windows or Acaconda
.)
mhmm... it says:
This is a windows + python problem, not related to latex nor minted
. I tried to search for error message non-utf-8 code starting with x90
and get many related results. Since I don't use Windows, I cannot test it for you and provide direct help, sorry.
hmm.. I've already tried to re-install pygments...
In the "Errors and Warnings" tab of TeXstudio I found this addidional info...
[1{C:/Users/User1/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
No file Masterarbeit.bbl.
(_minted-Masterarbeit/default-pyg-prefix.pygstyle)
(_minted-Masterarbeit/default.pygstyle)
runsystem(pygmentize -l python -f latex -P commandprefix=PYG -F tokenmerge -o _
minted-Masterarbeit/FC454F190090B461895C5C9213C2E259.pygtex cronJob.py)...execu
ted.
! Package minted Error: Missing Pygments output; \inputminted was
probably given a file that does not exist--otherwise, you may need
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.
See the minted package documentation for explanation.
Type H <return> for immediate help.
...
l.128 \inputminted{python}{cronJob.py}
This could be caused by using -output-directory or -aux-directory
without setting minted's outputdir, or by using a build tool that
changes paths in ways minted cannot detect,
or using frozencache with a missing file.
[2
]
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 139.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 139.
(Masterarbeit.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 139.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 139.
Package rerunfilecheck Info: File `Masterarbeit.out' has not changed.
(rerunfilecheck) Checksum: 0194FC436A1E32878C51CE0006377A47;93.
)
Here is how much of TeX's memory you used:
25896 strings out of 492895
479831 string characters out of 3133479
628240 words of memory out of 3000000
29246 multiletter control sequences out of 15000+200000
12316 words of font info for 21 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
62i,6n,92p,803b,428s stack positions out of 5000i,500n,10000p,200000b,50000s
{C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/base/8r.enc}<C:/Users/User1/AppD
ata/Roaming/MiKTeX/2.9/fonts/type1/bitstrea/charter/bchb8a.pfb><C:/Users/User1/
AppData/Roaming/MiKTeX/2.9/fonts/type1/bitstrea/charter/bchr8a.pfb>
Output written on Masterarbeit.pdf (3 pages, 23605 bytes).
PDF statistics:
64 PDF objects out of 1000 (max. 8388607)
6 named destinations out of 1000 (max. 500000)
125 words of extra memory for PDF output out of 10000 (max. 10000000)
After doing some re-installing the output of pygmentize -h looks different:
btw. the "log" in the first tab of TeXstudio...
(might be just the summary of the core error?)
The output of pygmentize -h
now looks ok. You can use the following simple example to test if minted
can work:
% store as minted-test.tex
\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{python}
print("Hello")
\end{minted}
\end{document}
A successful compilation would generate files with directory structure
.
├── _minted-minted-test
│ ├── <long filename in hex numbers>.pygtex
│ ├── default-pyg-prefix.pygstyle
│ └── default.pygstyle
├── minted-test.aux
├── minted-test.log
├── minted-test.pdf
└── minted-test.tex
If compiling raises the same error, can you check which part or file of the above directory structure is missing?
Okay, something is strange. I first removed all content from my file and added your content which lead to errors -->
But then I closed the test file to rename it, and after reopening the compilation was succesful. So I tried closing and reopening the actual file but there the same errors occur as above... (or at least very similiar) -->
Extract of the Errors and Warnings log:
) [86] (_minted-Masterarbeit/default-pyg-prefix.pygstyle) (_minted-Masterarbeit/default.pygstyle) (_minted-Masterarbeit/28F35476AF08BA7D170529EC46484B98FC454F190090B461895C5C921 3C2E259.pygtex ! Undefined control sequence. \PYG #1#2->\FV@PYG {#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop } l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g.,
\hobx'), type
I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.! Undefined control sequence. \PYG #1#2->\FV@PYG {#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop } l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g.,
\hobx'), type
I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.! Undefined control sequence. \PYG #1#2->\FV@PYG {#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop } l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g.,
\hobx'), type
I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.! Undefined control sequence.
\PYGZdq {}Hello\PYGZdq {} l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. \PYGZdq {}Hello\PYGZdq {} l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. \PYG #1#2->\FV@PYG {#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop } l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
I'm not very experienced but I think that error usually occurs if one has forgotton to include a package... might there be a conflict of a package with the minted package? :/
my packages:
\documentclass[
a4paper,
12pt,
final, % vor Abgabe aktivieren -> deaktiviert ToDo Liste
parskip,
bibtotoc,
liststotoc
]{article}
% Festlegung der Dokumentenklasse, zahlreiche Vereinbarungen über Layout, Gliederungsstrukturen,
% bsp. article -> section, subsection..., book -> chapter, section...
% parskip = Abstand zwischen Absätzen, Veränderung durch \setlength
%\usepackage{url}
\usepackage[ngerman]{babel} %Neue deutsche Rechtschreibung, Umlaute können geschrieben werden
\usepackage[utf8]{inputenc} %direkte Angabe von Umlauten
\usepackage[T1]{fontenc} %Silbentrennung bei Sonderzeichen
\usepackage{setspace} %für Zeilenabstand
\usepackage[notindex,nottoc]{tocbibind} %Inhaltsverzeichnisse erstellen
\usepackage{mathptmx,charter,courier} % Für schöne Schriften
\usepackage[scaled]{helvet} %Serifenlose Schrift wird in Helvetica geschrieben
\usepackage{calligra} %Calligra Schriftart
\usepackage{eufrak} %mathematische Symbole
%zusätzliche benötigte Pakete
\usepackage{natbib} %Zitate
\usepackage{graphicx} % Graphik
\usepackage[usenames,dvipsnames]{xcolor} % Farben
\usepackage{amsmath} % Mathematik
\usepackage{marvosym} % enthält Symbole wie das Eurozeichen
\usepackage{eurosym}
\usepackage[autostyle=true,german=quotes]{csquotes} % für Anführungsstriche
\usepackage{hyperref} % für URLs
\usepackage{textcomp}
\usepackage{multirow} % Verbinden von Zeilen in Tabellen
\usepackage{pdfpages}
%#########################################
\usepackage{tabularx}
%\usepackage{algorithmicx}
%\usepackage{algorithm}
%\usepackage[noend]{algpseudocode}
\usepackage{eucal}
\usepackage[german]{algorithm2e}
%\usepackage{listings}
\usepackage{minted}
But then I closed the test file to rename it, and after reopening the compilation was succesful.
To help you double check the result, you should see no errors in log and in the output pdf.
I'm not very experienced but I think that error usually occurs if one has forgotton to include a package... might there be a conflict of a package with the minted package? :/
You can add \listfiles
before \begin{document}
, compile, then provide the .log
file. The \listfiles
makes LaTeX write easy-to-read package version info near the end of .log
.
PS: Have you tried to delete every aux files produced by compiling Masterarbeit.tex
?
PS 2: \FV@PYG
is defined in fvextra
package, which is one of the packages minted
auto-loads.
To help you double check the result, you should see no errors in log and print("Hello") in the output pdf.
Yep, that's exactly what I got :)
Have you tried to delete every aux files produced by compiling Masterarbeit.tex?
Have tried it now, same errors... :/
\FV@PYG is defined in fvextra package, which is one of the packages minted auto-loads.
ah okay.
You can add \listfiles before \begin{document}, compile, then provide the .log file. The \listfiles makes LaTeX write easy-to-read package version info near the end of .log.
ah, I see..
*File List*
article.cls 2018/09/03 v1.4i Standard LaTeX document class
size12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
babel.sty 2019/05/04 3.31 The Babel package
bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of b
abel
ngerman.ldf 2018/12/08 v2.11 German support for babel (post-1996 orthograph
y)
inputenc.sty 2018/08/11 v1.3c Input encoding file
fontenc.sty
t1enc.def 2018/08/11 v2.0j Standard LaTeX file
setspace.sty 2011/12/19 v6.7a set line spacing
tocbibind.sty 2010/10/13 v1.5k extra ToC listings
mathptmx.sty 2005/04/12 PSNFSS-v9.2a Times w/ Math, improved (SPQR, WaS)
charter.sty 2005/04/12 PSNFSS-v9.2a (P.Dyballa)
courier.sty 2005/04/12 PSNFSS-v9.2a (WaS)
helvet.sty 2005/04/12 PSNFSS-v9.2a (WaS)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
calligra.sty 2012/04/10 v1.9 LaTeX package calligra
eufrak.sty 2009/06/22 v3.00 Euler Fraktur fonts
natbib.sty 2010/09/13 8.31b (PWD, AO)
graphicx.sty 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
color.cfg 2016/01/02 v1.6 sample color configuration
dvipsnam.def 2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)
amsmath.sty 2018/12/01 v2.17b AMS math features
amstext.sty 2000/06/29 v2.01 AMS text
amsgen.sty 1999/11/30 v2.0 generic functions
amsbsy.sty 1999/11/29 v1.2d Bold Symbols
amsopn.sty 2016/03/08 v2.02 operator names
marvosym.sty 2011/07/20 v2.2 Martin Vogel's Symbols font definitions
eurosym.sty 1998/08/06 v1.1 European currency symbol ``Euro''
csquotes.sty 2019-12-06 v5.2j context-sensitive quotations (JAW)
etoolbox.sty 2020/07/15 v2.5i e-TeX tools for LaTeX (JAW)
csquotes.def 2019-12-06 v5.2j csquotes generic definitions (JAW)
csquotes.cfg
hyperref.sty 2018/11/30 v6.88e Hypertext links for LaTeX
hobsub-hyperref.sty 2019-11-14
ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
ifvtex.sty 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
pdftexcmds.sty 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
ifpdf.sty 2018/09/07 v3.3 Provides the ifpdf switch
kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
pdfescape.sty 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
hycolor.sty 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
xcolor-patch.sty 2016/05/16 xcolor patch
hopatch.sty 2016/05/16 v1.3 Wrapper for package hooks (HO)
letltxmacro.sty 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
auxhook.sty 2016/05/16 v1.4 Hooks for auxiliary files (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
pd1enc.def 2018/11/30 v6.88e Hyperref: PDFDocEncoding definition (HO)
intcalc.sty 2016/05/16 v1.2 Expandable calculations with integers (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
bitset.sty 2016/05/16 v1.2 Handle bit-vector datatype (HO)
bigintcalc.sty 2016/05/16 v1.4 Expandable calculations on big integers (HO)
atbegshi.sty 2016/06/09 v1.18 At begin shipout hook (HO)
hpdftex.def 2018/11/30 v6.88e Hyperref driver for pdfTeX
atveryend.sty 2016/05/16 v1.9 Hooks at the very end of document (HO)
rerunfilecheck.sty 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
uniquecounter.sty 2016/05/16 v1.3 Provide unlimited unique counter (HO)
textcomp.sty 2018/08/11 v2.0j Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
ts1enc.dfu 2018/10/05 v1.2f UTF-8 support for inputenc
multirow.sty 2019/01/01 v2.4 Span multiple rows of a table
pdfpages.sty 2020/01/28 v0.5q Insert pages of external PDF documents (AM)
ifthen.sty 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
calc.sty 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
eso-pic.sty 2018/04/12 v2.0h eso-pic (RN)
pppdftex.def 2020/01/28 v0.5q Pdfpages driver for pdfTeX (AM)
tabularx.sty 2016/02/03 v2.11b `tabularx' package (DPC)
array.sty 2018/12/30 v2.4k Tabular extension package (FMi)
eucal.sty 2009/06/22 v3.00 Euler Script fonts
algorithm2e.sty 2017/07/18 v5.2 algorithms environments
ifoddpage.sty 2016/04/23 v1.1 Conditionals for odd/even page detection
xspace.sty 2014/10/28 v1.13 Space after command names (DPC,MH)
relsize.sty 2013/03/29 ver 4.1
minted.sty 2017/07/19 v2.5 Yet another Pygments shim for LaTeX
fvextra.sty 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb
fancyvrb.sty 2020/05/03 v3.6 verbatim text (tvz,hv)
upquote.sty 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verbat
im
lineno.sty 2005/11/02 line numbers on paragraphs v4.41
shellesc.sty 2016/06/07 v0.02a unified shell escape interface for LaTeX
ifplatform.sty 2017/10/13 v0.4a Testing for the operating system
catchfile.sty 2016/05/16 v1.7 Catch the contents of a file (HO)
xstring.sty 2019/02/06 v1.83 String manipulations (CT)
framed.sty 2011/10/22 v 0.96: framed or shaded text with page breaks
float.sty 2001/11/08 v1.3d Float enhancements (AL)
todonotes.sty 2018/11/22
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
tikz.sty 2020/01/08 v3.1.5b (3.1.5b)
pgf.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfrcs.sty 2020/01/08 v3.1.5b (3.1.5b)
everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
pgfrcs.code.tex
pgfcore.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfsys.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfsys.code.tex
pgfsyssoftpath.code.tex 2020/01/08 v3.1.5b (3.1.5b)
pgfsysprotocol.code.tex 2020/01/08 v3.1.5b (3.1.5b)
pgfcore.code.tex
pgfcomp-version-0-65.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfcomp-version-1-18.sty 2020/01/08 v3.1.5b (3.1.5b)
pgffor.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfkeys.sty
pgfkeys.code.tex
pgfmath.sty
pgfmath.code.tex
pgffor.code.tex
tikz.code.tex
selinput.sty 2016/05/17 v1.4 Semi-automatic input encoding detection (HO)
stringenc.sty 2016/05/16 v1.11 Convert strings between diff. encodings (HO)
mdwlist.sty 1996/05/02 1.1 Various list-related things
caption.sty 2020/05/30 v3.4k Customizing captions (AR)
caption3.sty 2020/07/20 v1.12b caption3 kernel (AR)
geometry.sty 2018/04/16 v5.8 Page Geometry
geometry.cfg
ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
t1bch.fd 2004/10/18 font definitions for T1/bch.
supp-pdf.mkii
epstopdf-base.sty 2016/05/15 v2.6 Base part for package epstopdf
grfext.sty 2016/05/16 v1.2 Manage graphics extensions (HO)
nameref.sty 2016/05/21 v2.44 Cross-referencing by name of section
refcount.sty 2016/05/16 v3.5 Data extraction from label references (HO)
gettitlestring.sty 2016/05/16 v1.5 Cleanup title references (HO)
Masterarbeit.out
Masterarbeit.out
pdflscape.sty 2016/05/14 v0.11 Display of landscape pages in PDF (HO)
lscape.sty 2000/10/22 v3.01 Landscape Pages (DPC)
ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm.
omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm.
omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm.
omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm.
ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
ts1bch.fd 2004/10/18 font definitions for TS1/bch
Btw. thank you so much for your effort!!!
Some of your packages are latest, for example
caption.sty 2020/05/30 v3.4k Customizing captions (AR)
caption3.sty 2020/07/20 v1.12b caption3 kernel (AR)
but some are not, for example
shellesc.sty 2016/06/07 v0.02a unified shell escape interface for LaTeX
while the latest version of shellesc
is 2019/11/08 v1.0c
.
Update MiKTeX, then compile again.
hmm.. seems like my updating process miss some updates. I've run it again.. now all packages should be latest... but still the same errors :/
) [86] (_minted-Masterarbeit/default-pyg-prefix.pygstyle)
(_minted-Masterarbeit/default.pygstyle)
(_minted-Masterarbeit/28F35476AF08BA7D170529EC46484B98FC454F190090B461895C5C921
3C2E259.pygtex
! Undefined control sequence.
\PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop }
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop }
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop }
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> \PYGZdq
{}Hello\PYGZdq {}
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> \PYGZdq {}Hello\PYGZdq
{}
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop }
l.2 ...{l+s+s2}{\PYGZdq{}Hello\PYGZdq{}}\PYG{p}{)}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
*File List*
article.cls 2019/12/20 v1.4l Standard LaTeX document class
size12.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
babel.sty 2020/07/13 3.47 The Babel package
bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of b
abel
ngerman.ldf 2018/12/08 v2.11 German support for babel (post-1996 orthograph
y)
inputenc.sty 2018/08/11 v1.3c Input encoding file
fontenc.sty
setspace.sty 2011/12/19 v6.7a set line spacing
tocbibind.sty 2010/10/13 v1.5k extra ToC listings
mathptmx.sty 2020/03/25 PSNFSS-v9.3 Times w/ Math, improved (SPQR, WaS)
charter.sty 2020/03/25 PSNFSS-v9.3 (P.Dyballa)
courier.sty 2020/03/25 PSNFSS-v9.3 (WaS)
helvet.sty 2020/03/25 PSNFSS-v9.3 (WaS)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
calligra.sty 2012/04/10 v1.9 LaTeX package calligra
eufrak.sty 2009/06/22 v3.00 Euler Fraktur fonts
natbib.sty 2010/09/13 8.31b (PWD, AO)
graphicx.sty 2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
color.cfg 2016/01/02 v1.6 sample color configuration
dvipsnam.def 2016/06/17 v3.0m Driver-dependent file (DPC,SPQR)
amsmath.sty 2020/01/20 v2.17e AMS math features
amstext.sty 2000/06/29 v2.01 AMS text
amsgen.sty 1999/11/30 v2.0 generic functions
amsbsy.sty 1999/11/29 v1.2d Bold Symbols
amsopn.sty 2016/03/08 v2.02 operator names
marvosym.sty 2011/07/20 v2.2 Martin Vogel's Symbols font definitions
eurosym.sty 1998/08/06 v1.1 European currency symbol ``Euro''
csquotes.sty 2019-12-06 v5.2j context-sensitive quotations (JAW)
etoolbox.sty 2020/07/15 v2.5i e-TeX tools for LaTeX (JAW)
csquotes.def 2019-12-06 v5.2j csquotes generic definitions (JAW)
csquotes.cfg
hyperref.sty 2020-05-15 v7.00e Hypertext links for LaTeX
ltxcmds.sty 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)
iftex.sty 2020/03/06 v1.0d TeX engine tests
pdftexcmds.sty 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty 2019/12/03 v1.5 Providing info/warning/error messages (HO)
kvsetkeys.sty 2019/12/15 v1.18 Key value parser (HO)
kvdefinekeys.sty 2019-12-19 v1.6 Define keys (HO)
pdfescape.sty 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
hycolor.sty 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
letltxmacro.sty 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
auxhook.sty 2019-12-17 v1.6 Hooks for auxiliary files (HO)
kvoptions.sty 2019/11/29 v3.13 Key value format for package options (HO)
pd1enc.def 2020-05-15 v7.00e Hyperref: PDFDocEncoding definition (HO)
intcalc.sty 2019/12/15 v1.3 Expandable calculations with integers (HO)
etexcmds.sty 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
url.sty 2013/09/16 ver 3.4 Verb mode for urls, etc.
bitset.sty 2019/12/09 v1.3 Handle bit-vector datatype (HO)
bigintcalc.sty 2019/12/15 v1.5 Expandable calculations on big integers (HO)
atbegshi.sty 2019/12/05 v1.19 At begin shipout hook (HO)
hpdftex.def 2020-05-15 v7.00e Hyperref driver for pdfTeX
atveryend.sty 2019-12-11 v1.11 Hooks at the very end of document (HO)
rerunfilecheck.sty 2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
uniquecounter.sty 2019/12/15 v1.4 Provide unlimited unique counter (HO)
textcomp.sty 2020/02/02 v2.0n Standard LaTeX package
multirow.sty 2019/05/31 v2.5 Span multiple rows of a table
pdfpages.sty 2020/01/28 v0.5q Insert pages of external PDF documents (AM)
ifthen.sty 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
calc.sty 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
eso-pic.sty 2018/04/12 v2.0h eso-pic (RN)
pppdftex.def 2020/01/28 v0.5q Pdfpages driver for pdfTeX (AM)
tabularx.sty 2020/01/15 v2.11c `tabularx' package (DPC)
array.sty 2019/08/31 v2.4l Tabular extension package (FMi)
eucal.sty 2009/06/22 v3.00 Euler Script fonts
algorithm2e.sty 2017/07/18 v5.2 algorithms environments
ifoddpage.sty 2016/04/23 v1.1 Conditionals for odd/even page detection
xspace.sty 2014/10/28 v1.13 Space after command names (DPC,MH)
relsize.sty 2013/03/29 ver 4.1
minted.sty 2017/07/19 v2.5 Yet another Pygments shim for LaTeX
fvextra.sty 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb
fancyvrb.sty 2020/05/03 v3.6 verbatim text (tvz,hv)
upquote.sty 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verbat
im
lineno.sty 2005/11/02 line numbers on paragraphs v4.41
shellesc.sty 2019/11/08 v1.0c unified shell escape interface for LaTeX
ifplatform.sty 2017/10/13 v0.4a Testing for the operating system
catchfile.sty 2019/12/09 v1.8 Catch the contents of a file (HO)
ifluatex.sty 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
xstring.sty 2019/02/06 v1.83 String manipulations (CT)
framed.sty 2011/10/22 v 0.96: framed or shaded text with page breaks
float.sty 2001/11/08 v1.3d Float enhancements (AL)
todonotes.sty 2018/11/22
xkeyval.sty 2014/12/03 v2.7a package option processing (HA)
xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
tikz.sty 2020/01/08 v3.1.5b (3.1.5b)
pgf.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfrcs.sty 2020/01/08 v3.1.5b (3.1.5b)
everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
pgfrcs.code.tex
pgfcore.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfsys.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfsys.code.tex
pgfsyssoftpath.code.tex 2020/01/08 v3.1.5b (3.1.5b)
pgfsysprotocol.code.tex 2020/01/08 v3.1.5b (3.1.5b)
pgfcore.code.tex
pgfcomp-version-0-65.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfcomp-version-1-18.sty 2020/01/08 v3.1.5b (3.1.5b)
pgffor.sty 2020/01/08 v3.1.5b (3.1.5b)
pgfkeys.sty
pgfkeys.code.tex
pgfmath.sty
pgfmath.code.tex
pgffor.code.tex
tikz.code.tex
selinput.sty 2019-12-10 v1.6 Semi-automatic input encoding detection (HO)
stringenc.sty 2019/11/29 v1.12 Convert strings between diff. encodings (HO)
mdwlist.sty 1996/05/02 1.1 Various list-related things
caption.sty 2020/05/30 v3.4k Customizing captions (AR)
caption3.sty 2020/07/20 v1.12b caption3 kernel (AR)
geometry.sty 2020/01/02 v5.9 Page Geometry
ifvtex.sty 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
geometry.cfg
l3backend-pdfmode.def 2020-06-29 L3 backend support: PDF mode
t1bch.fd 2004/10/18 font definitions for T1/bch.
supp-pdf.mkii
epstopdf-base.sty 2020-01-24 v2.11 Base part for package epstopdf
nameref.sty 2019/09/16 v2.46 Cross-referencing by name of section
refcount.sty 2019/12/15 v3.6 Data extraction from label references (HO)
gettitlestring.sty 2019/12/15 v1.6 Cleanup title references (HO)
Masterarbeit.out
Masterarbeit.out
pdflscape.sty 2019/12/05 v0.12 Display of landscape pages in PDF (HO)
lscape.sty 2000/10/22 v3.01 Landscape Pages (DPC)
ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm.
omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm.
omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm.
omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm.
ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
ts1bch.fd 2004/10/18 font definitions for TS1/bch.
When I exchange the "Hello World" in the minted-test with the \includeminted it doesn't work neither.
Trying to print "Hello World" in the main file fails too.
Strange. Would you
Masterarbeit.tex
and cronJob.py
into it,Okay, when I copy the files in a new folder and run it there, then everything works fine. even the \inputminted (what is great) but wwwwhhhhyyy.
I mean, it's all the same files just in an other folder!? In the original folder it doesn't work even if I cut out all the Masterarbeit,xxx (but .tex) files...
In the original folder it doesn't work even if I cut out all the Masterarbeit,xxx (but .tex) files...
Try to delete the directory _minted-Masterarbeit
, then compile again.
ah, now it works... strange. anyways, thank you so much!
at least breaklines
& tabsize
I found myself :D
@muzimuzhi Thanks for helping with this issue!
@RealInfinity
In https://github.com/gpoore/minted/issues/272#issuecomment-665680698, your python raises error non-utf-8 code starting with \x90
. This might leave incomplete or wrong .pygstyle
files in _minted-Masterarbeit
directory. And in every latter compilation, since they are already existing, the complete and right .pygstyle
files are never written. I should have explicitly mention the _minted-Masterarbeit
directory in comment https://github.com/gpoore/minted/issues/272#issuecomment-665946168.
Anyway, congratulations!
@gpoore You're welcome. It's interesting to help solve a problem that I didn't encounter before and cannot reproduce on my side. And solving basic questions sometimes uncovers loopholes in one's knowledge.
Hello,
I tried to use Minted to include a .py file. After fixing some previous errors by Google (e.g. adding pygmentize.cmd in C:\Windows and adding --shell -escape in LaTeX) I still stuck.
My LaTeX Code looks like that:
The error message is:
I hope you can help me!