General ⇒ Need some special tabbing
Need some special tabbing
I need some help with LaTeX paragraph formatting. I want to have something like a description list, looking like this
equation this corresponds to bla-bla-bla,
because bla-bla-bla
equation this corresponds to bla-bla-bla
because bla-bla-bla
equation this corresponds to bla-bla-bla
because bla-bla-bla
I can't do it with the tabbing environment, since the sentences on the right side extend themselves to several lines (which is not possible in the tabbing environment, unless you break the line yourself, however then the text will be flushed right and not justified, which is not what I exactly want). I also don't like the description environment, since it has a very special tabulation. What I want, is really something like I've written up there: all lines of the descriptive text start at the same position. For example, in any Office utility (OpenOffice Writer or KWord) I'd easily do it, setting the left indent, say, to 4 cm, the first line indent to -4 cm and a put a left tab stop at 4 cm. How could I do something like this in LaTeX?
Thank you in advance for your help!
P.S. Damn, phpbb deletes all the spaces left to the lines. But I hope, you can understand from my description and my example with an Office utility, what I want to do.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Need some special tabbing
you could use a tabular environment. In this example I'm using tabularx to get two columns, one with fixed width, the other using the remaining text width:
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{tabularx}
\begin{document}
\noindent%
\begin{tabularx}{\textwidth}{p{4cm}X}
equation & \blindtext \\
equation & \blindtext
\end{tabularx}
\end{document}
Stefan