The trick indicated here for including an image bigger than \textwidth (with \makebox) works with document class article or with oneside book but not with twoside book, even if I set nomarginpar and \marginparsep = 0pt, what is missing?
\documentclass{book}
\usepackage[nomarginpar]{geometry}
\setlength{\marginparsep}{0pt}
\usepackage{graphicx}
\usepackage{showframe}
\begin{document}
\begin{figure}%
\makebox[\textwidth][c]{\includegraphics[width=\paperwidth]{example-image}}%
\caption{My caption}
\end{figure}
\end{document}
P.S. = I know I can use adjustbox, I would like only to know why the trick doesn't work with twoside book class.



\hspace{-\@totalleftmargin}to get to the paper edge. – David Carlisle Nov 29 '21 at 10:08geometrypackage? – campa Nov 29 '21 at 13:24changepagepackage? With its macroadjustwidthtis should work.\begin{figure}\begin{adjustwidth}{-2em}{-2em} \includegraphics[width=\paperwidth]{example-image}}% \caption{My caption}\end{adjustwidt} \end{figure– Zarko Nov 29 '21 at 13:25bookwithgeometry. – CarLaTeX Nov 29 '21 at 14:03\hspace*{\dimexpr-1in-\csname @totalleftmargin\\endcsname}% \makebox[0pt][l]{\includegraphics[width=\paperwidth]{example-imagewith an "implied" 1in offset, but campa's answer is better with the odd/even page test – David Carlisle Nov 29 '21 at 14:14