TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

\arraystretch defines vertical spacing of tables. If I have several tables, how can I define a separate value of \arraystretch for every table? In my case, the last defined \arraystretch works for all tables.

share|improve this question
I would suggest accepting answers to some of the questions you have asked. – Seamus Feb 13 '11 at 14:18
Another tip: you can use backticks ` to mark your inline code as Martin did in his edit. – Hendrik Vogt Feb 13 '11 at 14:38

If you define \arraystretch direct before the table (i.e. tabular) inside a group it should only be active for this table.


Or define your own environment:


% ...

\begin{mytabular}[<stretch value>]{...}
share|improve this answer
\arraystrech is not a length ... – Herbert Feb 13 '11 at 14:41
Thanks @Herbert. I changed it accordantly. – Martin Scharrer Feb 13 '11 at 14:49
@MartinScharrer why do you use the * with the \renewcommand? – Mario S. E. Apr 24 '13 at 12:52
@MarioS.E.: The starred version defines a "normal" macro, while the normal version defines a "long" macro which may contain \par. This is not required for \arraystretch so I used the starred version. This however is just a very minor difference and does not have a real impact here. – Martin Scharrer Apr 24 '13 at 15:08



 c & c & C\\
 c & c & C

 c & c & C\\
 c & c & C

share|improve this answer
it worked. thank you. another question, e.g., how can i define a new command to use the new environment Tabular in the above example? i want to know how i can transfer parameters of \newcommand to \newenvironment. – warem Feb 14 '11 at 9:02
@warem: there is no difference to the above example where I passed an argument from the environment to a command. However, to give a more explicitly answer, create an example of what you really want to do. Maybe as a new question. – Herbert Feb 14 '11 at 9:08
i mean create a new command to use the Tabular environmet. e.g., \newcommand{\test}[2]{\begin{Tabular}[2]...\end{Tabular}}. it didn't work. it seemed that the parameters of test command can't be transferred to Tabular correctly. – warem Feb 14 '11 at 9:22
@warem: \newcommand{\test}[2]{\begin{Tabular}{#1}#2\end{Tabular}} It depends to the menaing of #1 and #2 – Herbert Feb 14 '11 at 9:27
this is what i want. thank you very much. – warem Feb 14 '11 at 9:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.