Graphics, Figures & TablesTable row height

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Table row height

Post by bkarpuz »

how can I set the row heights 1cm in the following table?

Code: Select all

\begin{center}
\begin{tabular}{cccc}
\hline
$T$ & $\sigma(t)$ & $f^{\Delta}(t)$ & $\int_{s}^{t}f(\eta)\Delta\eta$ \\ \hline
$R$ & $t$ & $f^{\prime}(t)$ & $\int_{a}^{b}f(\eta)d\eta$ \\
$Z$ & $t+1$ & $\Delta f(t)$ & $\sum_{\eta=s}^{t-1}f(\eta)$ \\
$q^{Z}$, $(q>1)$ & $qt$ & $\frac{f(qt)-f(t)}{(q-1)t}$ & $(q-1)\sum_{\eta=\log_{q}(s)}^{\log_{q}(t)-1}f(q^{\eta})q^{\eta}$ \\
$N_{0}^{q}$, $(q>0)$ & $\big(t^{1/q}+1\big)^{q}$ & $\frac{f((t^{1/q}+1)^{q})-f(t)}{(t^{1/q}+1)^{q}-t}$ & $\sum_{\eta=s^{1/q}}^{t^{1/q}-1}f(\eta^{q})\big((\eta+1)^{q}-\eta^{q}\big)$ \\
\hline
\end{tabular}
\end{center}
thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table row height

Post by localghost »

You can modify the factor for stretching the height of the lines.

Code: Select all

\renewcommand{\arraystretch}{1.5}
Putting this line into the preamble makes the modification global.


Best regards
Thorsten¹
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Table row height

Post by bkarpuz »

localghost wrote:You can modify the factor for stretching the height of the lines.

Code: Select all

\renewcommand{\arraystretch}{1.5}
Putting this line into the preamble makes the modification global.


Best regards
Thorsten¹
thank you very much.

this code works so nice :)
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Table row height

Post by bkarpuz »

localghost wrote:You can modify the factor for stretching the height of the lines.

Code: Select all

\renewcommand{\arraystretch}{1.5}
Putting this line into the preamble makes the modification global.


Best regards
Thorsten¹
Hi again,

is it possible to stretch \begin{cases}...\end{cases} too?

Thanks.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Table row height

Post by Stefan Kottwitz »

bkarpuz wrote: is it possible to stretch \begin{cases}...\end{cases} too?
Yes, it's possible. Though the cases environment sets \arraystretch to 1.2 you could redefine the internal macro. Here's a solution: amsmath: cases and \arraystretch. There you will find code and an explanation.

Stefan
LaTeX.org admin
bkarpuz
Posts: 124
Joined: Thu Dec 18, 2008 4:53 pm

Table row height

Post by bkarpuz »

Stefan_K wrote:
bkarpuz wrote: is it possible to stretch \begin{cases}...\end{cases} too?
Yes, it's possible. Though the cases environment sets \arraystretch to 1.2 you could redefine the internal macro. Here's a solution: amsmath: cases and \arraystretch. There you will find code and an explanation.

Stefan
ty again for the helpful replies.
Post Reply