I am trying to have my text read like this inside a box:
If A and B are two events that are not mutually exclusive then:
$P(A \cup B) = P(A) + P(B) - P(A \cap B)$
Al I have is this, can someone help guide me of hidden commands that I don't know about?
\fbox{If A and B are two events that are not mutually exclusive then $P(A \cup B) = P(A) + P(B) - P(A \cap B)$}
Best Answer
You can use
\fbox
and aminipage
(or a\parbox
) of the desired (fixed) width; another option would be to use thevarwidth
environment from thevarwidth
package, so the resulting width is the natural width of the contents. A little example showing both approaches:Using the optional arguments for
minipage
you can control other attributes of the used box; in particular, the second optional argument allows you to specify the height: