23 Aprile 2010 alle 22:06
#44664
::
Non riesco a rilevare la corretta altezza delle tabelle prodotte da tabular. Ecco un esempio
`\newlength{\phhh}
\settoheight{\phhh}{
\begin{tabular}{|c|c|c|c|c|}
\hline & espressione & dominio & zeri \\ \hline
$f$ & $\color{magenta}\displaystyle \ln(1+ex^2)$ & $\R$ & $\set{0}$ \\ \hline
$f'$ & $\displaystyle \frac{2ex}{1+ex^2}$ & $\R$ & $\set{0}$ \\ \hline
$f''$ & $\displaystyle \frac{2e(1-ex^2)}{(1+ex^2)^2}$ & $\R$ & $\Set{\pm e^{-1/2}}$
\\ \hline
\end{tabular}
}
\the\phhh`
Un ambiente tabular costruisce una box che viene allineata verticalmente al centro; quindi l’altezza “vera” è esattamente il doppio di ciò che ottieni con \settoheight.
Ciao
Enrico