Positioning – Skip to Absolute Position on Line

horizontal alignmentpositioning

Is there a way to skip to a fixed position on a line? (a specific tab position)

Example:

The quick \skiptoposition{1.5cm} brown \skiptoposition{2.5cm}fox

which would put "brown" 1.5cm and "fox" 2.5cm from left margin?

Best Answer

The already mentioned tabbing package has the disadvantage that it cannot be used across paragraphs, for instance, in itemize environments, as asked in this related question.

However, the tabto package provides exactly what you are looking for via the command \tabto*:

\documentclass{article}
\usepackage{tabto}

\begin{document}
  The quick \tabto{3.5cm}brown \tabto{5.5cm}fox
  \par
  \tabto{3.5cm}jumps too\tabto{5.5cm}far 
  \par\medskip 
  The quick \tabto*{1.5cm}brown \tabto*{3.5cm}fox
  \par
  \tabto{1.5cm}jumps too\tabto{3.5cm}far 
\end{document}

enter image description here