\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1,T2A]{fontenc}
\usepackage{listings}
\usepackage{dejavu}
\usepackage{upquote}
\lstset{
basicstyle=\ttfamily\footnotesize
}
\begin{document}
\lstinline|4 `div` 2|
\end{document}
shows 4 div 2
without the backticks. No errors or warnings in the log. Adding textcomp
and using upquote
in lstset
instead of the separate package didn't help.
Can anyone reproduce it (since search doesn't find anything and it would be weird if I was the first who needed this character)?
And is there a workaround?
\textasciigrave
used by upquote. There is a grave in the font so one could add it, but this means that someone would have to recreate the tfm/enc etc. You could tryliterate={`}{\`{}}2
instead.