Marthein Plat
2006-11-22 15:51:18 UTC
Hi All,
I'm trying to redefine the "itemize" environment such that the vertical
spacing between the items is smaller. I'm doning this with
\renewenvironment, like this:
\let\Olditemize=\itemize\relax
\renewenvironment{itemize}{
\begin{OldItemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{OldItemize}
}
But something goes wrong, the layout is not how I want it. To see where the
problem arises I have created two different environments:
\newenvironment{tpitemize}{
\begin{Olditemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{Olditemize}
}
\newenvironment{tppitemize}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{itemize}
}
The last one (tppitemize) produces the results I want, tpitemize produces
the same result as the "renewenvironment" version above.
Can anyone tell me what I should change? I would really like to use
\begin{itemize} in the text instead of \begin{tppitemize}, because that
would create compatibility problems with standard styles.
Best regards,
Marthein
I'm trying to redefine the "itemize" environment such that the vertical
spacing between the items is smaller. I'm doning this with
\renewenvironment, like this:
\let\Olditemize=\itemize\relax
\renewenvironment{itemize}{
\begin{OldItemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{OldItemize}
}
But something goes wrong, the layout is not how I want it. To see where the
problem arises I have created two different environments:
\newenvironment{tpitemize}{
\begin{Olditemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{Olditemize}
}
\newenvironment{tppitemize}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{itemize}
}
The last one (tppitemize) produces the results I want, tpitemize produces
the same result as the "renewenvironment" version above.
Can anyone tell me what I should change? I would really like to use
\begin{itemize} in the text instead of \begin{tppitemize}, because that
would create compatibility problems with standard styles.
Best regards,
Marthein