Consider the following code:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage{beramono}
\begin{document}
This is some regular text
\texttt{This is some monospace text}
\end{document}
If I compile this with pdflatex
then the result is as expected: the regular text is in the Libertine font, and the monospace text is in the Bera Mono font.
If I compile this with lualatex
then the monospace text is in the default (Computer Modern?) font. I expected it to be the same as pdflatex's output.
I have tried passing [mono=false]
option to the libertine package, but it makes no difference.
How do I fix this?
\setmonofont{DejaVu Sans Mono}
to setup the mono font, see e.g. tex.stackexchange.com/a/443235/2388