[Tex/LaTex] Vertical line spanning fraction

equationsmath-mode

I would like to write the following equation:

enter image description here

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

Best Answer

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