2

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?

4
  • 1
    There's no such thing as a “verbatim font”. What do you mean? Commented 19 hours ago
  • i mean if you use \verb the font has extra characters Commented 19 hours ago
  • 1
    there can be no secrets in a system like latex that has been open source for decades. what is your actual question here? standard tex fonts in OT1 encoding do not have < and > symbols but tt does so that verb works. So they are not extra characters, just the characters you would expect Commented 18 hours ago
  • they aren't extra. just in knuth's original OT1 encodings, there are differences because each encoding can contain at most 128 characters and that is not really enough. Commented 16 hours ago

1 Answer 1

4

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

cmtt10

Font table for ectt1000

ectt1000

2
  • the encodings are slightly different than normal fonts. Commented 17 hours ago
  • @GrzegorzBrzczyszczykiewicz Yes, in OT1. But you cannot access the up and down arrows using \verb, for instance. Commented 17 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.