I need to set up a landscape layout (preferably an environment) for one page in conjuncture with an image scaled to the page's width, and there must be a chapter heading always sitting on the same place. Problem is: The chapter heading can't stay put; it either goes off to the next page or its starting position isn't consistent (it has to).
Another small issue: Maybe it's because of the landscape environment, but the image doesn't scale properly (sometimes). Hence why I tried minipages (but the results aren't very consistent...)
\documentclass{memoir}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{pagecolor}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage{float}
\begin{document}
\newpagecolor{black}
\thispagestyle{empty}
\newgeometry{left=0cm,right=0cm,bottom=0cm,top=0cm}
\begin{landscape}
\begin{figure}
\centering
\begin{minipage}{1\paperheight}
\includegraphics[keepaspectratio,width=1\textwidth,height=\textheight]{example-image}
\caption{caption here}
\end{minipage}
\begin{minipage}{1\textheight}
\color{white}\chapter{chapter here}
\end{minipage}
\end{figure}
\end{landscape}
\restoregeometry
\end{document}
Here is what the code looks like:
If I remove minipage it would become like this:
What I want is this (intended end result):
EDIT:
I tried using Tikzpicture's positioning feature Positioning relative to page in TikZ to stack a text node but since it is also considered to be a float it still got back down to the next page, sigh.
My next bet is trying to overlay the heading text Tikzpicture's by overlaying upon the whole page (Tikz: overlay png or pdf image over another pdf figure), not sure if it'll work though.
! Undefined control sequence. l.21 \chapter
landscape
always forces a page break, you probably just want\rotatebox{90}{\includegraphics{...}}
also theminipage
is doing nothing useful, just making the content too big for the page.