r***@gmail.com
2008-08-18 19:20:01 UTC
please help me with the following:
I am trying to enumerate items in multicolumn tables. Earlier, I got
help and the following code works fine except that I want the item
numbers instead of bullets, and secondly I need the text to be "left
justified" as there is awkward spacing between words if I leave it
"center". I tried to change itemize with enumerate but it doesn't
work..
Best Regards,
Reez
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\setitemize{topsep=-2ex,itemsep=-
\baselineskip,partopsep=-2ex,leftmargin=*}
\def\newitem#1{%
\begin{itemize}
\item #1
\end{itemize}%
}%
\begin{tabular}{|p{0.4\linewidth}|p{0.4\linewidth}|}
\newitem{this is very neat and it may change next time} &
\newitem{this is very neat and it may change next time. this is
really a matter of safety and should not
be taken lightly.} \\[-1em]
\newitem{rae} & \newitem{rae} \\[-1em]
\newitem{me} & \newitem{me} \\[-1em]
\newitem{fa} & \newitem{fa} \\[-1em]
\newitem{so} & \newitem{here is another long line that should be
formatted as a regular paragraph} \\[-1em]
\newitem{and the left and right columns both along one another
per
item} & \newitem{la} \\[-1em]
\newitem{tee} & \newitem{tee} \\[-1em]
\newitem{\ldots} & \newitem{\ldots}
\end{tabular}
\end{document}
I am trying to enumerate items in multicolumn tables. Earlier, I got
help and the following code works fine except that I want the item
numbers instead of bullets, and secondly I need the text to be "left
justified" as there is awkward spacing between words if I leave it
"center". I tried to change itemize with enumerate but it doesn't
work..
Best Regards,
Reez
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\setitemize{topsep=-2ex,itemsep=-
\baselineskip,partopsep=-2ex,leftmargin=*}
\def\newitem#1{%
\begin{itemize}
\item #1
\end{itemize}%
}%
\begin{tabular}{|p{0.4\linewidth}|p{0.4\linewidth}|}
\newitem{this is very neat and it may change next time} &
\newitem{this is very neat and it may change next time. this is
really a matter of safety and should not
be taken lightly.} \\[-1em]
\newitem{rae} & \newitem{rae} \\[-1em]
\newitem{me} & \newitem{me} \\[-1em]
\newitem{fa} & \newitem{fa} \\[-1em]
\newitem{so} & \newitem{here is another long line that should be
formatted as a regular paragraph} \\[-1em]
\newitem{and the left and right columns both along one another
per
item} & \newitem{la} \\[-1em]
\newitem{tee} & \newitem{tee} \\[-1em]
\newitem{\ldots} & \newitem{\ldots}
\end{tabular}
\end{document}