I heard verbatim fonts have extra characters for stuff you can type on a keyboard. How are they stored internally? Is it a secret? Is it hacked?
1 Answer
When you do \verb, the font used is \verbatim@font, which is, by default, \normalfont\ttfamily. In turn \ttfamily will choose the font family defined by \ttdefault which, no font package being loaded, corresponds to cmtt.
At 10pt size, this will use cmtt10 for OT1 encoding or ectt1000 with T1 encoding.
I see no “secret” character.
Font table for cmtt10
Font table for ectt1000
-
the encodings are slightly different than normal fonts.Grzegorz Brzczyszczykiewicz– Grzegorz Brzczyszczykiewicz2025-12-06 16:55:54 +00:00Commented 17 hours ago
-
@GrzegorzBrzczyszczykiewicz Yes, in OT1. But you cannot access the up and down arrows using
\verb, for instance.egreg– egreg2025-12-06 17:03:39 +00:00Commented 17 hours ago


<and>symbols butttdoes so that verb works. So they are not extra characters, just the characters you would expect