how could I reduce interline space in lstlisting?
\begin{lstlisting}[basicstyle=\linespread{0.8}\listingsfont]
Does not work for me and it says:
Fatal fontspec error: "cannot-use-pdftex" The fontspec package requires either XeTeX or LuaTeX. You must change your typesetting engine to, e.g., "xelatex" or "lualatex"instead of plain "latex" or "pdflatex". For immediate help type H .
But I am not sure I want to change that. Are there other ways?
Best Answer
I solved putting before and after the listing