Skip to content

Commit

Permalink
Fix page counter issue (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetAdmin committed Sep 20, 2023
1 parent 279cfce commit 2b1c300
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/format/general/layout.tex
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@
}
{}

\newcommand{\resetpagecounter}
{
\setcounter{page}{1}
}

\newcommand{\coverstyle}
{
\pagestyle{cover}
Expand All @@ -189,7 +194,7 @@
\thispagestyle{previous}
\pagestyle{previous}
\pagenumbering{Roman}
\setcounter{page}{1}
\resetpagecounter{}
\numberingstyle{}
}

Expand All @@ -200,7 +205,7 @@
\thispagestyle{common}
\pagestyle{common}
\pagenumbering{arabic}
\setcounter{page}{1}
\resetpagecounter{}
}

\newcommand{\poststyle}
Expand Down
2 changes: 2 additions & 0 deletions zjuthesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@

\bodystyle
\inputpage{final}{cover-part}

\resetpagecounter{}
\inputbody{final/content}
\inputbody{final/post}

Expand Down

0 comments on commit 2b1c300

Please sign in to comment.