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 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)$\    }
share|improve this question
1  
For more on boxes (and (La)TeX's interpretation of them), I recommend that you read Section 6.6 of l2short. You can get it online at texdoc.net/pkg/lshort or you'll probably have a copy on your computer. –  Loop Space Aug 17 '12 at 11:29
add comment

1 Answer 1

up vote 5 down vote accepted

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}{...}}

share|improve this answer
add comment

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.