This question is related to my question Drawing a rectangle around a tikz node that fills up for example an a4-page, causes a page break — why?.
Mike's answer is fine, but if I use the parameters text width and text height (instead of minimum width and minimum height) the pagebreak occurs again, as you can see in this screenshot:
The following MWE is taken from Mike's answer. All I've modified, was replacing the minimum by text (and according percusse's comment) the \useboundingbox ... by overlay parameter, which is easier to read and does not seem to make a difference)
\documentclass{article}
\usepackage[%
paperheight=210mm,
paperwidth=297mm,
margin=0cm,
]{geometry}
\usepackage[cam,a3,landscape,center]{crop}
\usepackage[main=english]{babel}
\usepackage{tikz}
\setlength{\parindent}{0pt}
\begin{document}
\pagestyle{empty}%
\begin{tikzpicture}%
\coordinate (p);%
\node[%
fill=green,
text height=210mm,%<-- 'text' instead of minimum causes the break - why?
text width=297mm,
anchor=west,
inner sep=0pt,
outer sep=0pt]%
(backFlap) at (p) {%
\huge Hello World!%
};%
% setting bounding box to prevent enlargement of picture by line width
% \useasboundingbox (0,-0.5\paperheight) rectangle (\paperwidth,0.5\paperheight);%
\draw[thick,black,overlay]
(backFlap.north west) rectangle (backFlap.south east) {}%
(backFlap.north east) -- (backFlap.south west) {}%
(backFlap.north west) -- (backFlap.south east) {}%
;%
\end{tikzpicture}%
\end{document}
My intention, switching to text height was: Currently (with minimum width and ... height) I use a minipage environment with fixed height and width inside the node to position textual content. Using text height and ... width option I thought to get rid of the extra minipage environment. Is this idea correct?


\raiseboxI get just one page. – egreg Jun 15 '17 at 13:16\raiseboxand add thetext depth=0option to the green node... – Paul Gaborit Jun 15 '17 at 14:06