1

I have several TikZ graphics on one page. To add a description on the right side of the graphics I use the paracol package (is there a better way to do this?).

As you can see on the picture below the last graphic doesn't fit on page 1. This even results in bad positioning of footnotes, e.g. footnote 1 should appear on page 1.

How can deal with this problem without adding \newpage manually?

enter image description here

enter image description here

MWE

\documentclass{article}
\usepackage{paracol}
\footnotelayout{m}

\usepackage{tikz}

\begin{document}

\begin{paracol}{2} % left column
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\switchcolumn % right column
I'm a description.
\end{paracol}

\begin{paracol}{2} % left column
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\switchcolumn % right column
I'm a description.\footnote{I'm a footnote.}
\end{paracol}

\begin{paracol}{2} % left column
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\switchcolumn % right column
I'm a description.
\end{paracol}

\begin{paracol}{2} % left column
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\switchcolumn % right column
I'm a description.\footnote{I'm a footnote.}
\end{paracol}
\end{document}

If you change the scale of the tikz pictures to 0.59 you can see the following

enter image description here

1

I think you could do something like this with a tabular (although you will have to break manually) or minipages. Following I propose a solution with tcolorbox. Every pair figure+comment are enclosed inside a tcolorbox. Each figure is the upperpart and each comment its lowerpart.

\documentclass{article}
\usepackage[most]{tcolorbox}
%\footnotelayout{m}

\usepackage{tikz}

\newtcolorbox{mybox}{empty, sidebyside, notitle, lower separated=false}

\begin{document}

\begin{mybox}
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\tcblower % right column
I'm a description.
\end{mybox}

\begin{mybox}
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\tcblower % right column
I'm a description.\footnote{I'm a footnote.}
\end{mybox}

\begin{mybox}
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\tcblower % right column
I'm a description.
\end{mybox}

\begin{mybox}
\begin{tikzpicture}[scale=0.55]
% help lines
\draw[step=1,help lines,black!20] (-5,-5) grid (5,5);
% axis
\draw[thick,->,black!75] (-5,0) -- (5,0);
\draw[very thick,->] (0,-5) -- (0,5) node[pos=0.97,left] {$y$};
\end{tikzpicture}
\tcblower % right column
I'm a description.\footnote{I'm a footnote.}
\end{mybox}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.