Compacted list environments further

This commit is contained in:
Xavier Danaux
2013-01-23 21:08:17 -05:00
parent c3760cc064
commit d1ccdd74e9
11 changed files with 316 additions and 307 deletions

View File

@ -1,4 +1,4 @@
version 1.3.0 (xx xxx 201x)
version 1.3.0 (xx xxx 2013)
- added a macro (\pdfpagemode) to control what is visible upon opening compiled
pdfs (assuming pdf reader support), as suggested by U. Stöhr.
Possible values include: "UseNone" (only the document), "UseThumbs" (show
@ -7,6 +7,7 @@ version 1.3.0 (xx xxx 201x)
- added a 3rd, fully optional (can be omitted or left blank) argument to
\address to specify a country, as requested on launchpad (launchpad bug
#1063995).
- compacted list environments further.
- replaced the usage of the xargs package by the xparse one.
version 1.2.1 (04 Dec 2012)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -41,6 +41,7 @@
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother
%\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]% CONSIDER REPLACING THE ABOVE BY THIS
% bibliography with mutiple entries
%\usepackage{multibib}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -166,6 +166,22 @@
\AtEndDocument{\label{lastpage}}\else\fi}}
\pagestyle{plain}
% reduced list spacing
% package providing hooks into lists
% originally developped by Jakob Schiotz (see http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/tweaklist.sty)
% modified and distributed with moderncv(not available otherwise on ctan)
\RequirePackage{tweaklist}
\renewcommand*{\itemhook}{%
\@minipagetrue% removes spacing before lists as they use \addvspace, which doesn't add vertical space inside minipages
\@noparlisttrue% removes spacing at end of lists, caused by \par
\setlength{\topsep}{0pt}% normally not required thanks to \@minipagetrue
\setlength{\partopsep}{0pt}% normally not required thanks to \@minipagetrue
\setlength{\parsep}{0pt}% not required when \itemsep and \parskip are set to 0pt (?)
\setlength{\parskip}{0pt}%
\setlength{\itemsep}{0pt}}
\renewcommand*{\enumhook}{\itemhook{}}
\renewcommand*{\deschook}{\itemhook{}}
% lengths calculations
\RequirePackage{calc}
@ -436,15 +452,6 @@
\renewcommand\p@enumiv{\p@enumiii\theenumiii}
% description label
\newcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\bfseries#1}
% hooks to adjust spacing (idea by Jakob Schiotz; see http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/tweaklist.sty)
\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{}}
% classical \today definition
\def\today{\ifcase\month\or