Problem Description
I’d like to automatically move the tikzpicture to new page if it does not fit the current page. See the MWE—if you compile it as it is, the tikzpicture starts on the current page, but bleeds out the page edge. When this should happen, the whole tikzpicture must be automatically moved to the next page (as if you uncomment the \newpage command`.
I use xelatex.
Minimal Working Example
\documentclass[10pt, chapterprefix=false, twoside]{scrbook}
\usepackage[a4paper, top=1in, bottom=1in, right=1in, left=1in, portrait]{geometry}
\usepackage{tikz, multicol, lipsum}
\newcommand{\colbreak}{\vfill\null\columnbreak}%
\begin{document}
\lipsum
% \newpage
\setlength{\columnsep}{-2.5cm}
\begin{multicols}{2}
\begin{tikzpicture}
\draw[red, line width=1.6mm] (0,-9) node[below=10] {{Ω}} -- (0,0) -- (1,0) node[above=10] {{0}} node[below=10] {{0}} -- (3,0) -- (0,0) -- (0,3) node[above=10] {{Α}} -- (0,0) -- (-1,0) node[above=10] {{2}} node[below=10] {{2}} -- (-3,0);
\end{tikzpicture}
\colbreak
\lipsum[1]
\end{multicols}
\end{document}
\begin{figure} .. \end{figure}, however, I does not work inmulticolsenv (Package multicol Warning: Floats and marginpars not allowed inside \multicols' environment!), therefore I tried to put the wholemulticolenv intofigureenv. Though that moved thetikzpictureto the following page, however, it is displayed *alone* on that page **and** the next that should be *after* thetikzpicture`, is moved before it. – tukusejssirs Apr 28 '19 at 09:26tikzpicture, I want it to be always displayed in whole, therefore when I occurs on the bottom of a page and should it not fit in the remaining space, it should be automatically moved to the following page. Also note that thetikzpicturehas some text in the right column, which also must be always on the right side of thetikzpicture. – tukusejssirs Apr 28 '19 at 09:31multicol? for two column text you can use optiontwo columnin your document class, which allow to use floats. – Zarko Apr 28 '19 at 10:17tikzpicture. The text is kind of description of thetikzpicture. – tukusejssirs Apr 28 '19 at 12:36two columnoption? – tukusejssirs Apr 28 '19 at 12:39