Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need horizontal space within "array" envionrment

1 view
Skip to first unread message

TeX_Saravanan

unread,
Jul 3, 2007, 8:04:03 AM7/3/07
to
Dear all,

In my document, I need some extra space between each row of the array
environment. "\renewcommand{\arraystretch}{1.2}" does the trick, but
it affects all the places. My requirement is, need horizontal space
within the "array" environment only. Kindly suggest me regarding this.

Thanks and Regards
Saravanan,M.

Werner Grundlingh

unread,
Jul 3, 2007, 12:19:23 PM7/3/07
to
On Jul 3, 5:04 am, TeX_Saravanan <Saravanan_Typeset...@yahoo.co.in>
wrote:

You post is somewhat ambiguous. The arraystretch command changed the
_vertical_ alignment (or stretch, rather) between array/tabular rows,
not the horisontal alignment - for that you need different tricks.
Either way, to limit the vertical alignment from a redefined
arraystretch to a specific array (or region in your text), encompass
it with a \begingroup and \endgroup (or {...} within LaTeX2e).
Consider the following minimal example:

\documentclass{book}
\begin{document}
\[
\begingroup % or replace this with {
\renewcommand{\arraystretch}{1.5}
\begin{array}{|c|c|c|}
\hline
A & B & C \\ \hline
D & e & F \\ \hline
\end{array}
\endgroup % or replace this with }
\]
\[
\begin{array}{|c|c|c|}
\hline
A & B & C \\ \hline
D & e & F \\ \hline
\end{array}
\]
\end{document}

You could also view some of the available options offered by die array
package, available from CTAN at
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=array

Werner

0 new messages