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'd like to format some text around a tabstop such that what is left from the tabstop is \flushright and the text that is right from the line is \flushright. The Tabstop is at a specific position, for example 2.5cm away from the left margin.

Example:
Some Text on the left side | some text, on the right side
        | that continues over some paragraphs
some other text | some further text

more text | further text

and all | are at 2.5cm from left margin, so that it looks a little bit like this:

enter image description here

I tried to use the tabular environment, but that does not allow me to specify the 2.5cm correctly.

A solution without further packages is prefered.

share|improve this question
add comment

2 Answers

You could try something like the following (a tabular environment with two p{...} columns):

\documentclass{article}

\begin{document}

\noindent\begin{tabular}{@{}p{2.3cm}@{\hspace{0.2cm}}p{6cm}@{}}
\hfill\bfseries work& text \\
\hfill\bfseries home & text text text text text text text text text text text text text text text text text text text text text text text text text\par text text text text text text text text text text text text text text text text text text text text text text text text \\
\end{tabular}

\end{document}
share|improve this answer
add comment
\documentclass{article}
\usepackage{url}
\begin{document}
\noindent
\begin{tabbing}
\hspace*{3cm}\=  \kill
\bfseries work \' \url{steve@apple.com} \\
\bfseries home \'  text text text text text 
\end{tabbing}

\end{document}
share|improve this answer
add comment

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.