Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a setting I can input to the array environment, which will slightly increase the horizontal spacing between each entry?

I would appreciate it if you could test your code on the following example I am using:

\documentclass{article}
\usepackage{forloop}
\newcounter{loopcntr} 
\newcommand{\rpt}[2][1]{% repeat text
   \forloop{loopcntr}{0}{\value{loopcntr}<#1}{#2} } 
\begin{document}
\[ \begin{array}{*{5}{c}}
1 & 2 & 3 & 4 & \ldots \\
\rpt[4]{\downarrow &} \unskip \downarrow \\
x_{1}^1 & x_{1}^2 & x_{2}^1 & x_{1}^3 & \ldots \\
\end{array} \]
\end{document}

I want slightly more whitespace between each number, between each arrow, and between each x.

table.png

share|improve this question
1  
See Column padding in tables for general spacing adaptations (it holds for tabular and array). –  Werner Jun 8 '12 at 22:02
add comment

1 Answer

up vote 10 down vote accepted

add something like

\setlength\arraycolsep{20pt}

before the array.

share|improve this answer
add comment

Your Answer

 
discard

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.