I would like to know if there is any elegant way to treat specific words as symbols, and automatically wrap them with a \texttt command. This would come handy with API names for instance, so \texttt doesn't have to be added manually to every mention of the API.
Asked
Active
Viewed 184 times
1
Joseph Wright
- 259,911
- 34
- 706
- 1,036
blahblahblahdev
- 589
\newcommand{\MyMapApp}{\texttt{My\-Map\-App}}that explicitly states the hyphenation for each API name. – Werner Apr 13 '12 at 18:21