Skip to content

Commit

Permalink
remove header and footers in blank pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Jun 9, 2023
1 parent 9293392 commit 9d2a26c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions style.sty
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
\usepackage[htt]{hyphenat}
\usepackage{pgfplots} % for graphs
\pgfplotsset{compat = newest}
% Using the openright option it is possible to have a blank page at the finish of the chapter;
% to avoid having headers or footers, it is sufficient to add the following commands in the preamble.
\makeatletter
\def\cleardoublepage{
\clearpage
\if@twoside
\ifodd\c@page
\else\hbox{}\thispagestyle{empty}\newpage
\if@twocolumn\hbox{}\newpage
\fi \fi \fi
}
\makeatother

% -------------------------------------------------------------------------------------------------------
% ENVIRONMENTS
Expand Down

0 comments on commit 9d2a26c

Please sign in to comment.