From 629fa974505baf347aa1e4302baa18387433fed2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 30 Jul 2015 22:59:33 +0200 Subject: [PATCH 1/1] Fix page numbering. --- myclass.cls | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 +} -- 2.47.2