In latex, you can type \verb|{| and get the real bracket in the typewriter font. But if you type {\tt \{ } , you will get a sans-serif replacement. In code:
\verb|{| % nice, real brace. {\tt \{ } % hideous fake brace. LaTeX Font Warning: Font shape `OMS/lmtt/m/n' undefined (Font) using `OMS/cmsy/m/n' instead (Font) for symbol `textbraceleft' on input line 3.
How do you get a real, monospaced figure in tt environment? (I can't just nest verb because I need to change its color as well.)
latex
Peter
source share