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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the "tabbing" environment to typeset algorithms. Because I'm using math formulas within the algorithms (yes I know about specific packages to do this), the vertical space needs a bit of (manual, case by case) tweaking, yet I have been unable to affect the vertical spacing of individual lines.

Any reference to vertical spacing and "tabbing" I could find were about how to suppress the spacing at the beginning and end of the environment---which is not my concern.

Below is some (I believe) minimal code snippet to reproduce the problem. On my system, this renders as a list of "test" lines, with the spacing always the same everywhere.

\documentclass{article}

\begin{document}

\begin{tabbing}
  \=X \= X \= XXX\= XXX \= XXX\=\kill
  \>\>test\\
  \>\>test\\
  \>\>test\\\vspace{10cm}
  \>\>test\\
  \>\>test\vspace{10cm}\\
  \>\>test\\
  \>\>test\bigskip\\
  \>\>test\\\bigskip
  \>\>test
\end{tabbing}

\end{document}
share|improve this question
up vote 5 down vote accepted

You can use the optional argument for \\:

\documentclass{article}

\begin{document}

\begin{tabbing}
  \=X \= X \= XXX\= XXX \= XXX\=\kill
  \>\>test\\
  \>\>test\\
  \>\>test\\[1cm]
  \>\>test\\
  \>\>test\\
  \>\>test\\[2ex]
  \>\>test\\
  \>\>test\\
  \>\>test
\end{tabbing}

\end{document}

enter image description here

share|improve this answer
    
Thank you! That does the trick exactly! – Jérémie Oct 6 '11 at 18:06

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.