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.

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?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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}
share|improve this answer

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.