I know of two options to put figures in landscape.
The first is to use the sidewaysfigure environment. This works very well when it comes to keeping the sequence of figures. However, it leaves the page in portrait and turns the figure instead which makes it hard to read online. I also could not figure out how to put several figures (not sub-figures) on one page.
The second is to use a combination of the landscape environment and \afterpage. This works very well when it comes to showing pages in landscape with the figures easily readable. However, this messes up the sequence of floats. (See sidewaysfigure and landscape and, for the numbering problem, How to get landscape float with correct numbering?.)
Is there a proper way to get the best of both worlds, i.e. landscape pages while keeping the order of figures?
Note on the chosen solution
There are a couple of limitations with the chosen answer. On how to fix them see How to avoid additional page getting rotated?.
\listoffiguresto your code everything seems fine. Any idea? – Claudio Jan 31 '19 at 08:17\frontmatterand\mainmatter, maybe because of the switching from roman to arabic numerals. If you switch the class tobookand add\frontmatter\lipsum[1]\mainmatterright after\begin{document}in your example, you should get this behaviour. – Claudio Jan 31 '19 at 10:12\if@mainmatter ... \fito the \AddToShipoutPictureBG code to avoid that it is executed in the frontmatter. – Ulrike Fischer Jan 31 '19 at 15:38twosideoption to the document. Even sideways pages in your example appear upside down. Any idea how to make the solution more robust in that way? – Daniel Feb 11 '19 at 08:55\usepackage[figuresright]{rotating}so that all pictures look to the same side (I would prefer this). If you want that rotating puts the pictures sometimes looking to the right or to the left, you will have to add a test for odd/even pages and then use\PLS@AddRotate{90}or\PLS@AddRotate{-90}. – Ulrike Fischer Feb 11 '19 at 09:13\usepackage[figuresright]{rotating}seems to make no difference when the document is nottwoside. – Daniel Feb 12 '19 at 09:21sidewaysfigurewith\xapptocmd{\sidewaysfigure}{\rotatesidewayslabel}. However, this leads to a rotation of the second page of my table of contents. Do you happen to know what the problem might be? – Daniel Apr 22 '19 at 16:46