\texttt is a LaTeX command that makes its argument appear in teletypefont family (this is a fixed-width or monospace font.)
Questions tagged [texttt]
3 questions
37
votes
2 answers
Preventing \texttt LaTeX tag from letting its content passing over the margin
In my report, I'm writing some class names or variable names inside of a paragraph, and I want these names to be rendered in a monospace font.
Example:
This is my class name: \texttt{baseAdminConfiguration}.
Sometimes when the single word inside of…

jersub
- 472
- 1
- 4
- 7
17
votes
3 answers
How to represent class names in LaTeX?
what do you see as best way of presenting class names in LaTeX documents (writing about a piece of software).
I'm currently using \texttt (monospaced typewrite font) which otherwise works fine but my class names end up goind "over" the margins.
So,…

Touko
- 11,359
- 16
- 75
- 105
6
votes
0 answers
How to properly re-format spaces in inline monospace?
I don't want the whitespaces in inline monospaced text to be monospaced. They should have the width of the normal font. The \intexttt (as in the example below) does this but it seems to be unnecessarily complicated.
\documentclass[a4paper]{article} …

ober.licht
- 63
- 2