Since years I use for my book Garamond for normal text and Beramono as typewriter style. On my new laptop, new Cygwin with pdfTeX 3.14159265-2.6-1.40.17
, these fonts give a conflict. Keywords in the listings aren't bold any more. If I skip Garamond, the keywords are bold, but then I have the wrong font for text.
\documentclass[]{article}
\usepackage[dutch]{babel}
\usepackage[urw-garamond,ttscaled=false]{mathdesign}
\usepackage[T1]{fontenc}
\usepackage[scaled=0.77]{beramono}
\usepackage[]{listings}
\lstset{
language=C,
basicstyle={\ttfamily\small},
keywordstyle={\bfseries},
commentstyle={\itshape},
showstringspaces=false
}
\begin{document}
This is normal text.
\begin{lstlisting}[]
#include <stdio.h>
int main(void)
{
printf("Hello World\n);
return 0;
}
\end{lstlisting}
This is normal text.
\end{document}
The words int
, #include
and void
should be bold, but they are not.
I hope someone knows what is wrong.
\usepackage[urw-garamond,ttscaled=false]{mathdesign}
with\usepackage{ebgaramond}
. Can you try that?