Math & Sciencehow to type this formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

how to type this formula

Post by drowsy »

Here: http://img231.imageshack.us/img231/7407/exampleyp8.jpg

If there is just one function I use cases, but with two ? It would be nice to center "and" in the middle between the two lines too.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

how to type this formula

Post by mas »

This worked for me.

Code: Select all

\documentclass{article}
%
\usepackage{amsmath,amssymb}

\begin{document}

\[
  f = \begin{cases}
         f_1 \text{ on } X_1 \\
         f_2 \text{ on } X_2
      \end{cases}
      \text{ and }
  g = \begin{cases}
         g_1 \text{ on } Y_1 \\
         g_2 \text{ on } Y_2
      \end{cases}
\]      

\end{document}
Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
drowsy
Posts: 44
Joined: Tue Dec 23, 2008 6:00 am

Re: how to type this formula

Post by drowsy »

Oops, thank you.

I just forgot that I did it like this long time ago and it worked :oops:
Post Reply