diff options
author | Matthias Zenger <mzenger@gmail.com> | 2003-08-27 10:34:43 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2003-08-27 10:34:43 +0000 |
commit | 2b4c3ffd81acecf99ca9a478f4b295f760feab54 (patch) | |
tree | ee66a46c9586cb15808061f46d41305732dd06a9 /support/latex/tweaklist.sty | |
parent | d36d1e0e4c95a8082e5b6e8141d854ad98e79218 (diff) | |
download | scala-2b4c3ffd81acecf99ca9a478f4b295f760feab54.tar.gz scala-2b4c3ffd81acecf99ca9a478f4b295f760feab54.tar.bz2 scala-2b4c3ffd81acecf99ca9a478f4b295f760feab54.zip |
Fixed scaladoc so that it can be used in conjun...
Fixed scaladoc so that it can be used in conjunction with non-book
styles.
Diffstat (limited to 'support/latex/tweaklist.sty')
-rw-r--r-- | support/latex/tweaklist.sty | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/support/latex/tweaklist.sty b/support/latex/tweaklist.sty new file mode 100644 index 0000000000..337877b4f1 --- /dev/null +++ b/support/latex/tweaklist.sty @@ -0,0 +1,36 @@ +\def\enumhook{} +\def\enumhooki{} +\def\enumhookii{} +\def\enumhookiii{} +\def\enumhookiv{} +\def\itemhook{} +\def\itemhooki{} +\def\itemhookii{} +\def\itemhookiii{} +\def\itemhookiv{} +\def\descripthook{} +\def\enumerate{% + \ifnum \@enumdepth >\thr@@\@toodeep\else + \advance\@enumdepth\@ne + \edef\@enumctr{enum\romannumeral\the\@enumdepth}% + \expandafter + \list + \csname label\@enumctr\endcsname + {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}% + \enumhook \csname enumhook\romannumeral\the\@enumdepth\endcsname}% + \fi} +\def\itemize{% + \ifnum \@itemdepth >\thr@@\@toodeep\else + \advance\@itemdepth\@ne + \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% + \expandafter + \list + \csname\@itemitem\endcsname + {\def\makelabel##1{\hss\llap{##1}}% + \itemhook \csname itemhook\romannumeral\the\@itemdepth\endcsname}% + \fi} +\renewenvironment{description} + {\list{}{\labelwidth\z@ \itemindent-\leftmargin + \let\makelabel\descriptionlabel\descripthook}} + {\endlist} + |