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 am trying to place an equation ''inside'' itemize environment. Basically I would like to avoid using \begin{cases} and just represent the equation by using itemize (one bullet for each case) Moreover I think it might look better if the text after ''if'' would be aligned with one another. Does anyone know how to approach the problem?

$\begin{equation}
\begin{cases}
\bullet\Bigl\{1,\theta,\frac{\theta^2}{k}\Bigr\}\;\;\text{if}\;\;m^2\not\equiv 1 \pmod 9 \vspace{3mm}\\
\bullet\Bigl\{1,\theta,\frac{k^2\pm k^2 \theta+\theta^2}{3k}\Bigr\}\;\;\text{if}\;\;m\pm \equiv 1 \pmod 9
\end{cases}
\end{equation}$

and the output looks like this enter image description here

Thank you

share|improve this question

3 Answers 3

A possible solution is use of array

enter image description here

Code

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

\begin{document}
\begin{equation}
\left \{
\begin{array}{lll}
\bullet& \Bigl \{1,\theta,\frac{\theta^2}{k}\Bigr\}\;\;& \text{if}\;\;m^2\not\equiv 1 \pmod 9 \vspace{3mm}\\
\bullet& \Bigl \{1,\theta,\frac{k^2\pm k^2 \theta+\theta^2}{3k}\Bigr\}\;\;& \text{if}\;\;m\pm \equiv 1 \pmod 9
\end{array}
\right .
\end{equation}

\end{document}
share|improve this answer
    
thank you, it surely looks better. –  user124471 Feb 21 at 12:15

You can remove all those \;\; by using ~ Also \Big{ can be replaced enter image description here

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{equation}
    \begin{cases}
        \bullet \left\{1,\theta,\frac{\theta^2}{k}\right\} & \text{if~} m^2\not\equiv 1 \pmod 9 \vspace{3mm} \\
        \bullet \left\{1,\theta,\frac{k^2\pm k^2 \theta+\theta^2}{3k}\right\} & \text{if~} m\pm\equiv 1 \pmod 9
    \end{cases}
\end{equation}
\end{document}

If you remove bullets: enter image description here

share|improve this answer
1  
Thank you for the tips. The formula looks much nicer. –  user124471 Feb 21 at 12:16

Here I use a tabular stack (I started with the guts of Jesse's answer). Vertical spacing between equations is adjusted with the optional argument to tabularstackanchor, while horizontal gaps between columns can be set with \setstacktabulargap{length}.

\documentclass{article}
\usepackage{tabstackengine}
\usepackage{amsmath}
\stackMath
\usepackage{scalerel}
\begin{document}
\begin{equation}
\left\{
\tabularstackanchor[6pt]{llll}{
\bullet&\Bigl \{1,\theta,\frac{\theta^2}{k}\Bigr\}& \text{if~}m^2\not\equiv1&\pmod 9
}{
\bullet&\Bigl \{1,\theta,\frac{k^2\pm k^2 \theta+\theta^2}{3k}\Bigr\}&
  \text{if~}m\pm\equiv1 &\pmod 9
}
\right.
\end{equation}
\end{document}

enter image description here

share|improve this answer

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.