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.

I would like to write the following equation:

enter image description here

How do I produce the vertical line and the subscript 'iso-effect'?

share|improve this question
add comment

1 Answer 1

up vote 10 down vote accepted

Try

\documentclass[preview]{standalone}

\usepackage{amsmath}

\begin{document}
\begin{equation*}
\textrm{RBE}=\left.\frac{D_{\textrm{photon}}}{D_{\textrm{test}}}\right\rvert_{\textrm{iso-effect}}
\end{equation*}
\end{document}

enter image description here

share|improve this answer
4  
The - in “iso-effect” is probably not a minus sign, but an ordinary hyphen, thus \textrm is the better choice (the same applies for “photon” and “test” as well). I would also move \left. to the left of \frac (it doesn’t change the output but is probably semantically correct). –  Qrrbrbirlbel Jan 12 '13 at 13:56
1  
Changed. Thanks. –  hpesoj626 Jan 12 '13 at 13:59
    
looks to me like the "RBE" should also be \textrm. –  barbara beeton Jan 12 '13 at 17:29
    
@barbarabeeton Looking at the provided figure, I think you are right. Edited. –  hpesoj626 Jan 12 '13 at 17:34
    
Yes, RBE is not a variable. –  biologue Jan 13 '13 at 10:37
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.