I would like to get the following effect without manually using &
and \\
to wrap the text (i.e., all the text will be wrapped automatically)
\documentclass[11pt,letterpaper]{article}
% Make lists without bullets and compact spacing
\renewenvironment{itemize}{
\begin{list}{}{
\setlength{\leftmargin}{1.5em}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0em}
\setlength{\parsep}{0.25em}
}
}{
\end{list}
}
\begin{document}
\section*{Main-Section}
\subsection*{Sub-Section}
\begin{itemize}
\item \begin{tabular}{@{}ll}
Title: &This is not a title, this is perhaps a title, nobody but you know!\\
&This is not a title, this is perhaps a title, nobody but you know!\\
&This is not a title, this is perhaps a title, nobody but you know!\\
TitleAgain: &This is not a title, this is perhaps a title, nobody but you know!\\
&This is not a title, this is perhaps a title, nobody but you know!\\
&This is not a title, this is perhaps a title, nobody but you know!\\
\end{tabular}
\end{itemize}
\end{document}
Best Answer
You could use a
tabularx
environment and set the required width to\linewidth
. The text will wrap automatically in theX
-column then. Depending on your use case, adescription
environment can be more handy. Code: