I am using minted
to display my source code and the Inconsolata package to set the output font. Unfortunately, this produces the following ugly result (note the direction of the quote marks:
Figuring this was a bad attempt on LaTeX's part to use smart quotes, I tried using the upquote
package. This produced the following:
Using this MWE:
\documentclass{article}
\usepackage{minted}
\usepackage{inconsolata}
\usepackage{upquote}
\begin{document}
\begin{minted}{matlab}
disp('This string should have straight quotes!');
\end{minted}
\end{document}
Removing the Inconsolata package produces a typographically-acceptable result, but, alas, not in the Inconsolata font:
I'm not sure what's going on.
Why can't I have the font I want AND the appropriate quotes? Any thoughts?
:(
Missing character: There is no ' in font ts1-inconsolata!
.droidmono
package) which has straight quotes and looks somewhat similar.