From: Petter Reinholdtsen Date: Thu, 30 Jul 2015 20:59:33 +0000 (+0200) Subject: Fix page numbering. X-Git-Tag: edition-2015-10-10~363 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/629fa974505baf347aa1e4302baa18387433fed2?hp=-c Fix page numbering. --- 629fa974505baf347aa1e4302baa18387433fed2 diff --git a/myclass.cls b/myclass.cls index 0e7f721..6d87152 100644 --- a/myclass.cls +++ b/myclass.cls @@ -103,3 +103,22 @@ % Hint for figure with empty title: remove the colon label separator \usepackage{caption} \captionsetup[figure]{labelsep=none} + +% Fix the page number reset done by abstract by redefining it +% Patch from +% https://github.com/petterreinholdtsen/free-culture-lessig/pull/7 + +\def\nocount#1#2{} +\let\stdsetcounter\setcounter +\let\stdabstract=\abstract +\let\endstdabstract=\endabstract +\renewenvironment{abstract}{% + \let\setcounter\nocount% + \begin{stdabstract}% + \noindent% + \setlength\parskip{\medskipamount}% + \setlength\parindent{0pt}% +}{ + \end{stdabstract} + \let\setcounter\stdsetcounter +}