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.

The variance of the signal sig3 is 43.2.

How should I typeset the above in LaTeX?

share|improve this question
2  
Are the four characters in sig3 all supposed to be on one line, or is 3 to be typeset as a subscript to sig? And, is sig a (mathematical, physical, engineering) variable? –  Mico Nov 29 '11 at 15:16
    
@Micro: They are supposed to be on one line. sig3 a MATLAB variable. –  Anders Nov 29 '11 at 15:19
    
In that case the answer provided by @LeoLiu should fully meet your needs. :-) –  Mico Nov 29 '11 at 16:12
add comment

1 Answer

up vote 3 down vote accepted

\verb|sig3| or \texttt{sig3} if no special characters included.

share|improve this answer
2  
Since this is LaTeX which emphasizes semantic markup, providing a command such as \newcommand{\code}[1]{\texttt{#1}} would be a good idea so that you can easily change the appearance of all code bits in the future. –  mforbes Feb 14 '12 at 19:13
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.