[Tuglist] itemize/enumerate/description question

Wed, 13 Feb 2002 19:36:03 +0530 (IST)

On Wed, 13 Feb 2002 at 15:05, Ajay Shah wrote:

I have gotten wedded to a style where itemized lists are
always one size smaller than the body text. So I do

---------------------------------------------------------
text text

{\small
\begin{itemize}
\item a
\item b
\end{itemize}
}
[...]

How does one redefine itemize,enumerate,description so that
these things happen automatically?

Here is one way of doing it:

\makeatletter

% A macro to reduce the font size to 85% of the font size
% of the surrounding text

\def\reducefontsize{\@tempdima\f@size pt
\@tempdimb\@tempdima
\multiply\@tempdimb by 85
\divide\@tempdimb by 100
\@tempdimc\@tempdimb
\multiply\@tempdimc by 12
\divide\@tempdimc by 10
\fontsize{\the\@tempdimb}{\the\@tempdimc}\selectfont
%
% you may comment out the following messages
% if you dont want the font information
%
\typeout{*****************************************}
\typeout{******Original Size=\the\@tempdima*******}
\typeout{******Reduced Size =\the\@tempdimb*******}
\typeout{******Baselineskip =\the\@tempdimc*******}
\typeout{*****************************************}
}

% We keep the original definition of enumerate in \oenumerate.
\let\oenumerate\enumerate

% We keep the original definition of itemize in \oitemize
\let\oitemize\itemize

% Now we redefine \enumerate and \itemize and add
% \reducefontsize to it so that fontsize is reduced
% by 15% of the surrounding text

\def\enumerate{\reducefontsize\oenumerate}
\def\itemize{\reducefontsize\oitemize}

\makeatother

Look forward to feedback.

--