[texhax] Some table adjustments

Lantz Susan lantzs at tristate.edu
Mon Apr 14 18:22:47 CEST 2008


Dr. Ivrii,

If you rearrange your commands slightly (you have two \begin{tabular}
commands, for one thing), your \setlength commands should do what you
need.

The following worked for me:

\documentclass[12pt]{memoir}
\usepackage{array}

\begin{document}

\begin{table}[ht]
\centering{
\setlength{\extrarowheight}{12pt}
\setlength{\arrayrulewidth}{0.5pt}
\begin{tabular}%
     {|c|c|}
\hline
$\updelta (x-y) \psi_2(y)^tQ_{2y}$ &
$e^{ih^{-1}\langle x-y,\xi\rangle }q_2(y,\xi ,h)$\\ 
\hline 
$\updelta (t)$ & $1$\\ 
\hline 
\end{tabular} 
}
\end{table}

\end{document}


I hope that helps.

Susan Lantz

Susan A. Lantz, Ph.D.
Associate Professor of Mechanical Engineering
Tri-State University
lantzs at tristate.edu
 

-----Original Message-----

Date: Mon, 14 Apr 2008 05:36:41 -0400
From: "Victor Ivrii" <vivrii at gmail.com>
Subject: [texhax] Some table adjustments
To: texhax at tug.org
Message-ID:
	<19af81400804140236n2f9e511bpd7b89f6c2f84bbe5 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Probably trivial for someone who uses tables more often than I do :)

\documentclass[12pt]{memoir}
\usepackage{array}

\begin{table}[ht]
\centering
\begin{tabular}



\setlength{\extrarowheight}{12pt}
\setlength{\arrayrulewidth}{0.5pt}
\begin{tabular}%
     {|c|c|}
\hline
$\updelta (x-y) \psi_2(y)^tQ_{2y}$ &
$e^{ih^{-1}\langle x-y,\xi\rangle }q_2(y,\xi ,h)$\\
\hline
$\updelta (t)$ & $1$\\
\hline
\end{tabular}
\end{table}


I want

1) to increase the vertical space between equation and the following
\hline (putting switch [t] in {tabular} does not help; actually I want
pretty high cells with [c] vertical alignment

2) to increase the horizontal size of cells (with the same [c]
horizontal alignment;

I want to achieve it by setting parameters, not by adding some spaces
and seps in the cells manually.

Thank you in advance
-- 
========================
Victor Ivrii, Professor, Department of Mathematics, University of
Toronto
http://www.math.toronto.edu/ivrii



More information about the texhax mailing list