About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-02-16: Experimental (unstable) datatool v2.49a available for testing. Download from the experimental page if you would like to try it out.


4.6 Tabbing

The tabbing environment lets you create tab stops so that you can tab to a particular distance from the left margin. Within the tabbing environment, you can use the command \= to set a tab stop, \> to jump to the next tab stop, \< to go back a tab stop, \+ to shift the left border by one tab stop to the right, \- to shift the left border by one tab stop to the left. In addition, \\ will start a new line and \kill will set any tabs stops defined in that line, but will not typeset the line itself.

Note:

You may recall two of the above commands from Volume 1: \- was described as a discretionary hyphen in Hyphenation and \= was described as the macron accent command in Special Characters and Symbols. These two commands take on different meanings when they are used in the tabbing environment.[Accents misbehave in tabbing] If you want accents in your tabbing environment, either use the inputenc package (see Volume 1) or use \a<accent symbol>{<c>}, for example \a"{u} instead of \"{u}.

Example:

\begin{tabbing}
Zero \=One \=Two \=Three\\
\>First tab stop\\
\>A\>\>B\\
\>\>Second tab stop
\end{tabbing}

This produces the following output:

Image showing typeset output

Another Example:

This example sets up four tab stops, but ignores the first line:

\begin{tabbing}
AAA \=BBBB \=XX \=YYYYYY \=Z \kill
\>\>\>Third tab stop\\
\>a \>b \> \>c
\end{tabbing}

This produces the following output:

The first line isn't shown


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-02-9).

© 2013 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs