X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/blobdiff_plain/ccc8b85c586af9be7d2f432d271c098adc4faca7..af2f3e09346f3c7ba0c49fd5efa59277a26f64f9:/myclass.cls diff --git a/myclass.cls b/myclass.cls index bb8664b..5477cf9 100644 --- a/myclass.cls +++ b/myclass.cls @@ -141,3 +141,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 +}