Two thoughts come to mind.
Put a \scalebox
command from the graphicx
package
\[ \scalebox{2}{$\displaystyle 2 + 2 = 4$} \]
will make an equation twice as big as normal. \displaystyle
forces the same display needed under \[
...\]
, since $
...$
would normally use \textstyle
(cause operators to act differently).
Another option would be to use the \mathlarger
and \mathsmaller
commands from the relsize
package.
I'm sure there are other options too.
Taking apan's comment and turning it into an example:
\documentclass{article}
\usepackage{array}
\newcolumntype{$}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{^}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
#1\ignorespaces
}
\begin{document}
\begin{tabular}{$l^c^r}
\rowstyle{\bfseries}
a & a & a \\
b & b & b \\
c & c & c \\
\end{tabular}
\end{document}
This gives:
You might, of course, choose different markers for the column types.
To explain what is going on, the first 'column' is of type $
(could be any symbol not required in the preamble). This simply sets \currentrowstyle
to do nothing, which means that in each row this command will be a no-op unless something else happens. The first real column (here l
) will contain the command to make it bold (if required), but that is not true for the other columns. They therefore are preceded by ^
, which is another fake column type used to apply \currentrowstyle
.
In a normal row, \currentrowstyle
therefore starts off as \relax
and never changes, so the ^
do nothing and the row is unchanged. However, if the first column sets \rowstyle
, this is saved as \currentrowstyle
(for the later columns) and applied (for this column). The ^
then insert this at the start of each column in the row, so everything is bold.
(All of the operations are global as table cells form groups.)
Best Answer
The
\boldmath
macro does this. It is provided by the LaTeX core and switches to bold math for all following math material. There is an\unboldmath
to switch it off again. These macros must be used outside the math code.