[Tex/LaTex] How to typeset a set with multiple conditions
amsmathmath-mode
I would like to learn as how to typeset for such a expression in latex.
Thank you
Best Answer
Assuming amsmath here is one method (only the brace part, the rest is up to you)
I agree with Andrew, we don't really like questions of the sort: "please make this for me", there should some effort.
Here I've just given the foundation (memoir is irrelevant, just my default class)
\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\left\{
(D_1,D_2,D_0):
\begin{aligned}
& A \\ & B \\ & C \\ & D \\ & E \\ & F
\end{aligned}
\right\}
\end{equation*}
\end{document}
Addition: If you have several set definitions in your doc, it might be an idea to make a syntax for it. This is an adaption of an example in the mathtools manual:
\documentclass[a4paper]{memoir}
\usepackage{amsmath,mathtools}
\providecommand\given{}
\newcommand\SetSymbol[1][]{:}
% see the mathtools manual for a definition of \SetSymbol that works
% with |
\DeclarePairedDelimiterX\Set[1]\{\}{
\renewcommand\given{\SetSymbol[\delimsize]}
#1
}
\begin{document}
\begin{equation*}
\Set*{
(D_1,D_2,D_0)
\given
\begin{aligned}
& A \\ & B \\ & C \\ & D \\ & E \\ & F
\end{aligned}
}
\end{equation*}
\end{document}
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\[
\max_{0 \leq x \leq 1} f(x)
\]
\[
\max_{\substack{0 \leq x \leq 1 \\ a \geq y \geq b}} f(x)
\]
\end{document}
It works similar to an array where multiple lines are separated using \\. Another alternative would be to use the \mathop - it produces the same result as above:
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\[
\mathop{\max_{0 \leq x \leq 1}}_{a \geq y \geq b} f(x)
\]
\end{document}
\mathop makes it's argument an operator, which allows for the traditional limit placement using _ and/or ^ which adds it below/above the operator.
Best Answer
Assuming
amsmath
here is one method (only the brace part, the rest is up to you)I agree with Andrew, we don't really like questions of the sort: "please make this for me", there should some effort.
Here I've just given the foundation (
memoir
is irrelevant, just my default class)Addition: If you have several set definitions in your doc, it might be an idea to make a syntax for it. This is an adaption of an example in the
mathtools
manual: