# How can I write a big set in overleaf

I want to write a set with 14 elements, for that I am using this but this keeps it all in one line and half of the set is visible only

$$S=\Bigg\{(0,0,2),(0,0,-2),(2^*,1,1^*),(2^*,-1,-1^*),(0^*,1,-1^*),(0^*,-1,1^*),(0^*,-1,-1^*)\\ (1,2^*,0^*),(-1,2^*,0^*),(1,0^*,-2^*),(-1,0^*,2^*),(1,0^*,0^*),(-1,0^*,0^*)\Bigg\}$$


See the image below-

What can I do to make set with in page?

use of  for displayed equations is deprecated. Instead it rather use $...$. In your case, this will not breake your set into two lines. For this you need some math environment fromasmath package or use tabular or arrayenvironment.

Since you didn't provide MWE, I wrote one for you:

\documentclass[12pt,border=3mm,preview]{standalone}
\usepackage{amsmath}
\usepackage{lipsum}

\begin{document}
The examined set has \dots elements:
\begin{multline}\label{eq:set-1}
S=\Bigl\{(0,0,2), (0,0,-2), (2^*,1,1^*), (2^*,-1,-1^*),(0^*,1,-1^*),\\
(0^*,-1,1^*), (0^*,-1,-1^*), (1,2^*,0^*),(-1,2^*,0^*),\\
(1,0^*,-2^*),(-1,0^*,2^*),(1,0^*,0^*),(-1,0^*,0^*)\Bigr\}
\end{multline}
From \eqref{eq:set-1} we can see \dots
\end{document}


It gives the following result:

• it says "\begin{multline} allowed only in paragr aph mode." I dont know what to do. I am typing project report. – Bhaskar Vashishth Jul 18 '15 at 19:16
• Who this say? I newer hear this. multline is macro for displayed math like {qgin{equation} ...  or \begin{gather} ... \end{gather} and so on. – Zarko Jul 18 '15 at 19:22
• is there any other way, please tell me. I am stuck on this set. – Bhaskar Vashishth Jul 18 '15 at 19:30
• What is wrong with proposed solution? If you like to have your set in more lines, just broke line with one more \ in appropriate place in set. You should privide more data, I can only guess what you like to obtain. – Zarko Jul 18 '15 at 19:39
• multline is not working. And also inside  \ is not braeking lines – Bhaskar Vashishth Jul 18 '15 at 19:43