\item [Address:] MyStreet 999, B-9999 MyTown
I would like to change this to something which consists of two
lines, nemaly with the street on the first line and the town on
the last line. I tried
\item [Address:] MyStreet 9999,\\B-9999 MyTown
But then the indentation of B-999 Mytown is not correct. It
should start at the same level as MyStreet.
How would I do this?
Thanks,
Bart
\item[Address:]\begin{tabular}[t]{@{}l}My Street\\my town\end{tabular}
or by using a special list type from the KOMA-classes:
\documentclass{scrartcl}
\begin{document}
\begin{labeling}{Address:}
\item[Address:]My\\My
\end{labeling}
\end{document}
--
Ulrike Fischer
Then depends of "Adress:"'s width? Right?
> How would I do this?
I think the simplest way is to use a minipage:
\documentclass{article}
\usepackage{calc}
\begin{document}
\begin{description}
\item [Address:]
\begin{minipage}[t]{\linewidth-\leftmargin}
MyStreet 9999,\\B-9999 MyTown
\end{minipage}
\end{description}
\end{document}
Jean-Côme Charpentier
why write 'Address:' all the time? ;-)
\documentclass[a4paper]{memoir}
\usepackage{enumitem}
\begin{document}
\noindent\rule{\textwidth}{4mm} % just shows the textwidth
\begin{itemize}[leftmargin=*,label=\textbf{Address:}]
\item MyStreet 9999,\\B-9999 MyTown
\end{itemize}
\end{document}
(memoir is irrelevant in this case)
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
In writing documentation, it's always good to try and understand why
users expect certain things to happen, so it would be very useful to
know why you expected it to do that.
If I write
\begin{description}
\item[Address:] MyStreet 9999,\\B-9999 MyTown
\item[Previous Employers:] IBM\\Microsoft\\DELL
\end{description}
would you expect each item to use a different level of wrapped indentation?
It's not hard to do -- the LaTeX Companion has examples, I think -- but
the description environment was set up to use the same level of
indentation for every item.
///Peter