[Tex/LaTex] How to use makebox in LaTeX

boxesformatting

I try to use \makebox around the word, however, all text in the same line, why? Here is my code, would someone help me?

\fbox{\makebox[10cm]{$(t_{SS}{+}t_{MS}{\leq}t_{FS}){\land}(t_{FS}{\leq}t_{BS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+}t_{BS}{\leq}3)$\\

$(t_{SS}{+}t_{MS}{\leq}t_{BS}){\land}(t_{BS}{\leq}t_{FS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+} t_{BS}{\leq}3)$\\
}

Best Answer

normal boxes cannot have a linebreak, use

\fbox{\begin{minipage}{10cm}$(t_{SS}{+}t_{MS}{\leq}t_{FS}){\land}(t_{FS}{\leq}t_{BS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+}t_{BS}{\leq}3)$\\

$(t_{SS}{+}t_{MS}{\leq}t_{BS}){\land}(t_{BS}{\leq}t_{FS}){\land}(t_{SS}{+}t_{MS}{+}t_{FS}{+} t_{BS}{\leq}3)$\\
\end{minipage}}

or \fbox{\parbox{10cm}{...}}

Related Question