I have a problem using the sourcecodepro and listings. I want to suppress ligatures and bold (Java) keywords. I already tried using the literate-option but it doesn't work as expected. That's my current code:
Code:
\documentclass{minimal}
\usepackage[default]{sourcecodepro}
\usepackage{listings}
\lstset{%
language=Java,
keywordstyle=\bfseries,
literate={fl}{f{}l}{2},
morekeywords={float}
}
\begin{document}
\begin{lstlisting}
float f;
int i;
\end{lstlisting}
\end{document}




sourcecodepropackage. On the other hand, I only get the ligature outside listings (using noliterateoption inlstlisting). – egreg Jan 04 '18 at 19:07