]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Fix page numbering.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 30 Jul 2015 20:59:33 +0000 (22:59 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 30 Jul 2015 20:59:33 +0000 (22:59 +0200)
myclass.cls

index 0e7f721d5be65bb9dd96e0c7c9b5a29a28092bec..6d87152ae924dc4ee3acc714c12c5833c8adfae4 100644 (file)
 % 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
+}