So, I'm using beamer and I wanted to make a cute little ASCII rooted tree. Something like this:
~~~~~~52\\
~~~~/~~~~\textbackslash\\
~~26~~~~~26\\
~~/\textbackslash~~~~~/\textbackslash\\
13 13 13 13
At first, I intended to use the typewriter font (\tt), but apparently the typewriter font doesn't have a backslash, even though it does have a forward slash. LaTeX, in valiant attempt to display something, decided to substitute a backslash from the serif variant of Computer Modern (I think). The result was that the two slashes looked very different, which is ugly. I can live with ugly, but this is so ugly that it's distracting, and I can't live with distracting. So I figured, fine, let's stick with the default font, which in beamer is the sans-serif variant of Computer Modern. This looks much better. Unfortunately, it still produces the warning about undefined symbols, and I try to have things compile without warnings. Should I just use the serif variant for my tree? Or maybe the entire presentation? Or is there some way to suppress this warning? Or perhaps some even nicer idea?
For completeness, the warning is:
LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined
(Font) using `OMS/cmsy/m/n' instead
(Font) for symbol `textbackslash' on input line 101.

\usepackage[T1]{fontenc}perhaps? Please don't use the old style font switches such as\tt-- they are deprecated for almost 25 years by now – Apr 10 '17 at 07:29\ttlike crossing a road when the traffic light is red. This time you may arrive fine on the other site of the road (next time may be different), but it is really a bad example for the school kids standing next to you. – samcarter_is_at_topanswers.xyz Apr 10 '17 at 08:23\ttand therefore don't know that they need to hit the undo button. – samcarter_is_at_topanswers.xyz Apr 10 '17 at 08:39\texttt, but i don't know if it's accessed by\textbackslash. what i use is not easy to represent in the markup system available here, so here it is partly in words: "\charbacktick double backslash". the backtick and first backslash "escape" the last character in the string, here another backslash. i usually make a definition of this, calling it\bsfor ease of use. – barbara beeton Apr 10 '17 at 20:33