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 want to do something similar to this but do not know how:

Multi valued function

I do know how to write multi-valued functions by using cases or align or whatever but do not know how to achieve a text that is to the right and in the MIDDLE between two cases.

How can this be done?

share|improve this question
5  
If your write \[ \begin{cases} … \end{cases} \; k > \frac{B}{2}; \] you get what you want. But may be it's not the optimal way to do it. –  Manuel Jan 19 '13 at 13:11
    
Thanks alot guys –  Muaz Aljarhi Jan 19 '13 at 13:43
add comment

1 Answer

Although amsmath provides a cases environment, this isn’t a case for cases. The construct contains two (sub-)formulas. The aligned environment can be used here. The left brace \{ scales correctly with the height of the aligned environment when used with \left which needs a final \right..

I also took the liberty to use mathtools\mathclap to not create horizontal gaps around the \sum signs.

Code

\documentclass[varwidth]{standalone}
\usepackage{mathtools}
\begin{document}
\[
 \left\{
 \begin{aligned}
   x_{k+l} &= x_k - y_k \sum_{i=k}^{\mathclap{k+l-1}} r_i 2^{-i}, \\
   y_{k+l} &= y_k - x_k \sum_{i=k}^{\mathclap{k+l-1}} r_i 2^{-i}, \\
 \end{aligned}
 \right.
 k > \frac{B}{2};
\]
\end{document}

Output

enter image description here

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.