If I want to typeset a word in a typewriter family font, I sometime use
\verb or \texttt. Which one should I use? Is one better than the other? (I am
just asking about non-TeX text for which \verb does not necessarily need to be
used.)
Also, is there any support for line breaks when using the typewriter
family fonts? Now I am rewording my sentences when words spill into the
margin. This is not a very elequent solution. Any suggestions?
Thanks,
Ron
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
If it contains no LaTeX control characters, use \texttt.
> Also, is there any support for line breaks when using the typewriter
>family fonts?
Yes, but hyphenation is turned off.
>Now I am rewording my sentences when words spill into the
>margin. This is not a very elequent solution. Any suggestions?
The "teletype" spaced have fixed width so the line can't adjust to
line up at the margin. The lack of hyphenation makes it worse.
Use \raggedright
Or, if you have strings of tt text in a regular paragraph with
flush margins, allow the space to stretch, allow hyphenation.
\newcommand\kw[1]{% keywords
\texttt{\spaceskip .5em plus .3em minus .3em
\hyphenchar\font=`\-\relax #1}}
(Note other postings on a similar thread)
Donald Arseneau as...@triumf.ca