Skip to content

Commit

Permalink
Correction to list spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
xdanaux committed Dec 10, 2011
1 parent 7b7e28a commit ea9ddf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions moderncv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@
\RequirePackage{tweaklist}% distributed with moderncv, not found on ctan and slightly modified
\renewcommand*{\itemhook}{
\setlength{\topsep}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\parskip}{0pt}%
\setlength{\itemsep}{0pt}}
\renewcommand*{\enumhook}{\itemhook{}}
\renewcommand*{\deschook}{\itemhook{}}
Expand Down
16 changes: 10 additions & 6 deletions tweaklist.sty
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
\expandafter
\list
\csname label\@enumctr\endcsname
{\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}%
\enumhook \csname enumhook\romannumeral\the\@enumdepth\endcsname}%
{%
\enumhook \csname enumhook\romannumeral\the\@enumdepth\endcsname%
\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}%
}%
\fi}
\def\itemize{%
\ifnum \@itemdepth >\thr@@\@toodeep\else
Expand All @@ -43,10 +45,12 @@
\expandafter
\list
\csname\@itemitem\endcsname
{\def\makelabel##1{\hss\llap{##1}}%
\itemhook \csname itemhook\romannumeral\the\@itemdepth\endcsname}%
{%
\itemhook \csname itemhook\romannumeral\the\@itemdepth\endcsname%
\def\makelabel##1{\hss\llap{##1}}%
}%
\fi}
\newenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel\deschook}}
{\list{}{\deschook\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
{\endlist}

0 comments on commit ea9ddf7

Please sign in to comment.