What is wrong with this code please? When I delete second, third and forth mylisting it works fine.
Error:
! Incomplete \iffalse; all text was ignored after line 18.\fi<> ./xxxxx1.texThe file ended while I was skipping conditional text.This kind of error happens when you say
\if...' and forgetthe matching\fi'. I've inserted a `\fi'; this might work.! Emergency stop.<> ./xxxxx1.tex (job aborted, no legal \end found)Here is how much of TeX's memory you used:15397 strings out of 492970288300 string characters out of 3135863541153 words of memory out of 300000019012 multiletter control sequences out of 15000+2000006105 words of font info for 19 fonts, out of 3000000 for 90001141 hyphenation exceptions out of 819154i,5n,80p,836b,2515s stack positions out of 5000i,500n,10000p,200000b,50000s! ==> Fatal error occurred, no output PDF file produced!
Here is the code:
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[czech]{babel}
\usepackage{listings}
\usepackage{natbib}
\renewcommand{\lstlistingname}{Soubor}
\newcommand{\listingsfont}{\ttfamily}
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\tcbuselibrary{listings}
\newtcbinputlisting[auto counter]{\mylisting}[2][]{listing file={#2},title=Listing,colback=red!5!white,colframe=gray!75!black,,fonttitle=\bfseries,listing only,breakable,title=Soubor \thetcbcounter: #1}
\begin{document}
\mylisting[\textbf{A \texttt{B}}, label=A]{file0.txt}
\mylisting[\textbf{C \texttt{D} \texttt{E} }, label=F]{file1.txt}
\mylisting[\textbf{G}, label=H]{file2.txt}
\mylisting[\textbf{I}, label=J]{file3.txt}
\end{document}
One of not working file:
57297.54820 4271.0000 1.010 0.753 16384
1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001
1.00001 1.00001 1.00001 1.00001 1.00001 1.00000 1.00000 1.00000
1.00000 1.00000 1.00000 0.99999 0.99999 0.99999 0.99999 0.99998
0.99998 0.99998 0.99998 0.99997 0.99997 0.99997 0.99997 0.99996
0.99996 0.99996 0.99995 0.99995 0.99995 0.99995 0.99994 0.99994
0.99994 0.99993 0.99993 0.99993 0.99992 0.99992 0.99992 0.99991
file0.txt, ...,file3.txtthis code works fine for me. I suspect that you have an error in one the text files. – May 10 '19 at 03:48babelline? Smells like some active character gone awry... – Rmano May 10 '19 at 07:10-(hyphen) in its name. The error disappears as soon as I remove the hyphen from the file name. Is that the case in your framework? – egreg May 10 '19 at 07:30-in the name of file. – Lukáš Altman May 10 '19 at 19:30