it seems like there were always whitespace added to a listing in a PDF.
Is there a setting or parameter to remove them?
I read many posts about this problem, but found no solution.
In this post the first two pictures, also show the inserted whitespace (eg. import pl . edu . ju . spring):
http://www.latex-community.org/forum/vi ... =46&t=9390
In the minimal example, there were no whitespace added for the text outside the listing. Any suggestions?
Minimal Example:
Code: Select all
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{listings}
\usepackage{babel}
\begin{document}
\begin{lstlisting}[language=Java]
package com.example.hello;
\end{lstlisting}
package com.example.hello;
\end{document}