# Is it possible to add more than one listing code to my frame?

Here's my (it's not working) code:

      \documentclass{beamer}
\usetheme[faculty=ped]{fibeamer}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}
\usepackage[main=english,portuges]{babel}
\usepackage{ragged2e}
\usepackage{tikz}
\usetikzlibrary{calc, shapes, backgrounds}
\usepackage{listings}
\frenchspacing
\makeatletter
\renewcommand\fibeamer@includeLogo[1][]{}
\makeatother
\begin{document}
\begin{darkframes}

\begin{frame}[fragile]{Variáveis}{Alguns Tipos de Variáveis}
\item int

\begin{lstlisting}[language=Python,tabsize=2]
code1
\end{lstlisting}

\item float

\begin{lstlisting}[language=Python,tabsize=2]
code2
\end{lstlisting}

\item bool

\end{frame}

\end{darkframes}

\end{document}


I get the error:

Runaway argument? Paragraph ended before \lst@next was complete. \par l.123 \end{frame}

• This is now your 7th question on the site, and none of them have included a Minimal Working Example document to show people what you are doing. Please don't do this. Include your code fragments into a complete compilable document that shows the problem. Aug 19 '17 at 19:41
• Should it be like this? Aug 19 '17 at 19:57
• Well that's compilable but not really minimal. It includes other code that isn't necessary to reproduce the problem. So eliminate any unneeded packages and code until you have a document that compiles (even with an error) to show the problem. Aug 19 '17 at 19:59
• Well, I think it should be correct now, but there are some files within the project. What is the best thing to do in this case? Aug 19 '17 at 20:24
• You should change the language options of babel to the language you actually use, see tex.stackexchange.com/a/386998/36296 Aug 19 '17 at 20:41

\begin{itemize}...\end{itemize} is missing

\documentclass{beamer}
\usepackage{listings}

\begin{document}

\begin{frame}[fragile]{Variáveis}{Alguns Tipos de Variáveis}

\begin{itemize}
\item int

\begin{lstlisting}[language=Python,tabsize=2]
code1
\end{lstlisting}

\item float

\begin{lstlisting}[language=Python,tabsize=2]
code2
\end{lstlisting}

\item bool
\end{itemize}

\end{frame}

\end{document}

\begin{frame}[fragile]{Variáveis}{Alguns Tipos de Variáveis}


and use lstlisting without itemize:

\begin{frame}[fragile]{Variáveis}{Alguns Tipos de Variáveis}
\textbullet\ int

\begin{lstlisting}[language=Python,tabsize=2]
code1
\end{lstlisting}

\textbullet\ float

\begin{lstlisting}[language=Python,tabsize=2]
code2
\end{lstlisting}

\textbullet\ bool

\end{frame}

• Now the error message changed: (no line number): Runaway argument? ! File ended while scanning use of \next. <inserted text> \par <*> ped-pdflatex.tex Aug 19 '17 at 19:59