Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What's the command for displaying <receive>, <reply> and so on as appearing in the following picture?

enter image description here

share|improve this question
1  
\texttt{<receive>} –  egreg Jul 26 '12 at 9:48
1  
perhaps \verb|...| is better if say _ occurs in the text –  daleif Jul 26 '12 at 9:55
7  
Why close votes as "too localized"? This question sure is extremely basic of nature and should be covered in about every introduction to LaTeX, but it's not too localized -- it rather is extremely widely applicable. –  doncherry Jul 26 '12 at 13:03
    
@doncherry: I'm not for closing, but downvoting: The question shows no research effort: Reading any introduction to LaTeX would answer it. –  Martin Schröder Sep 9 '12 at 21:44
add comment

1 Answer

up vote 9 down vote accepted

The "typewriter type" font is obtained by

\texttt{<receive>}

In case your input contains special characters, such as % or _, you can use

\verb|abc%def_ghi|

where the two bars can be any other non special character that doesn't appear in the string.

Every good introduction to LaTeX covers the topic.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.