Using the \tab Command

The command \tab exists, but it produces quite a large space. It also requires the use of the package tabto.

Alternative options are \quad and \qquad; the space produced is probably more what you are looking to create. These commands do not require extra packages and can be stacked (e.g. Stuff Over Here \quad \quad \quad More Stuff Over Here) if needed.

You might also want to try using either $\>$ or $\-$. Neither command requires any extra packages, but both must be in math mode. Although neither command by itself gives a large space like \tab does, the space produced is small. However, you can stack the commands in order to get the spacing you want.

Hope this helps.


define your own command:

\documentclass{article}
\newcommand\tab[1][1cm]{\hspace*{#1}}
\begin{document}
foo\tab bar\tab[2cm]baz

\tab foo\tab bar\tab[2cm]baz

\rule{1cm}{1pt}foo\rule{1cm}{1pt}bar\rule{2cm}{1pt}baz

\end{document}

enter image description here


Instead of \tab, you may use \hspace{10mm} which gives a 10mm space similar to using \tab.

Tags:

Spacing