# Conflict between listings and gb4e?

this code doesn't compile for me. Could it be a bug or is something wrong with my LaTex installation?

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{gb4e}
\usepackage{listings}
\begin{document}
\begin{exe}
\ex
\gll Isso é um exemplo.\\
This is an example\\
\trans This is an example.'
\end{exe}
\begin{lstlisting}
source code
\end{lstlisting}
\end{document}


My goal: have glossed examples AND indented source code (the verbatim environment did not indent the code).

-
Because gb4e messes with catcodes, it's best to load it last or almost last in your list of packages. –  Alan Munn Jan 1 '13 at 22:14

\usepackage{listings}

but remember that listings cannot handle UTF-8 characters when using pdflatex`