3

I am getting error"! LaTeX Error: Undefined tab position." for the following snippet of latex code.

\begin{tabbing}
\> \>$n$ = Some data\\
\> \>$B$ = Another Statement\\
\> \>$N$ = Yet another statement\\
\end{tabbing}

I looked at the related post: Tabbing environment: How to line break?, but I cannot figure out the reason for error. Can someone suggest how to fix this error?

1 Answer 1

8

You need to set tab positions first (either in your first line or in a \killed line):

First line:

\documentclass{article}
\begin{document}
\begin{tabbing}
\= \= $n$ = Some data\\
\> \> $B$ = Another Statement\\
\> \> $N$ = Yet another statement
\end{tabbing}
\end{document}

\killed line:

\documentclass{article}
\begin{document}
\begin{tabbing}
\hspace{2em} \= \hspace{3em} \= $N$ = Yet another statement \= \kill
\> \> $n$ = Some data \> (1) \\
\> \> $B$ = Another Statement \> (2) \\
\> \> $N$ = Yet another statement \> (3)
\end{tabbing}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .