I'm having problems with the margins and "sidedness" of blank pages in my document. The page following a blank page has the same "sidedness" as the blank page, when it should switch on every page. For example, the title page has a larger left inner margin (for binding), the following blank page has a larger right inner margin, and the page following that SHOULD have a larger left inner margin (but it also has a larger right inner margin).
Here's a MWE with important part of the preamble and other relevant parts.
\documentclass[11pt,a4paper,twoside,openright]{report}
%% LOAD PACKAGES %%
\usepackage[utf8]{inputenc}
\usepackage[main=english,german]{babel}
\usepackage{geometry} % page margins ([showframe] for visble margins)
\usepackage[english,linktocpage=true]{hyperref}
\usepackage{afterpage} % command for blank pages
%% FORMATTING %%
\geometry{ % format page margins
left=2.6cm,
right=2.6cm,
top=2cm,
bottom=2cm,
includeheadfoot,
showframe,
bindingoffset=.5cm %%% remove for digital copy
}
\newcommand{\blankpage}{ % for blank pages https://tex.stackexchange.com/questions/331064/create-a-blank-page
\null
\clearpage
\thispagestyle{empty}
\addtocounter{page}{-1}
\hypersetup{pageanchor=false}%
\newpage
}
%% START DOCUMENT %%
\begin{document}
Here's my title page
\newpage
{\blankpage\clearpage} %%%
Here's my dediction page
\afterpage{\blankpage\clearpage} %%%
\newpage
\thispagestyle{plain}
Here's my table of contents
\newpage
\thispagestyle{plain}
Here's my wonderful quote
\afterpage{\blankpage\clearpage} %%%
% ...and so on
\end{document}
\afterpagehere? You have specified the left and right margins with geometry to be the same on odd or even pages so ther isn't much difference between od an even, also\addtocounter{page}{-1}looks wrong and will account for your main issue as that will force two adjacent pages to have the same number (even if not printed) so have the same page settings. – David Carlisle Mar 03 '22 at 12:41\addtocounter{page}{-1}and it helps, but it still doesn't resolve it completely. – SP1 Mar 03 '22 at 13:05\afterpagethe\blankpagecommand sometimes does show up in the correct spot. – SP1 Mar 03 '22 at 13:07\clearpage,\newpage, and the use of\. – SP1 Mar 03 '22 at 13:23\clearpageis\newpagebut forces out any pending floats (figure, tables, ...) so they do not go past that point, so there is no differenc in the code shown that has no floats. – David Carlisle Mar 03 '22 at 14:05