5
$\begingroup$

How can I put the following on it's own, centered line:
$\bar{f}(a) = f(a)$ for all $a \in A$
because right now it's left aligned?

$\endgroup$
8
$\begingroup$

Use double $$ signs rather than single $ signs to center a line of TeX.

$$\bar{f}(a) = f(a) \ \forall a \in A$$ $$\text{or}$$ $$\bar{f}(a) = f(a) \text{ for all } a \in A$$ $$\mbox{or}$$ $$\mbox{$\bar{f}(a) = f(a)$ for all $a \in A$}$$

$$\bar{f}(a) = f(a) \  \forall a \in A$$
$$\text{or}$$
$$\bar{f}(a) = f(a) \text{ for all } a \in A$$
$$\mbox{or}$$
$$\mbox{$\bar{f}(a) = f(a)$ for all $a \in A$}$$
$\endgroup$
  • $\begingroup$ but what if I want it to have a mix of math and text, as in my example? $\endgroup$ – Andriy Drozdyuk Nov 13 '12 at 6:18
  • $\begingroup$ You can use \text{insert text here} within TeX lines. Note that your "for all" is a common math symbol and its LaTeX code is \forall. $\endgroup$ – Joe Nov 13 '12 at 6:25
  • 1
    $\begingroup$ If you wish to use multi lines in a single $$ environment you can use \\ as a linebreak. $\endgroup$ – Asaf Karagila Nov 13 '12 at 11:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .