Basically I want two tikzpictures of the same size aligned in two columns. To realise this I use the tcolorbox package with its \tcbsidebyside{}-command. The problem is that the picture in the second column has the wrong size and I have no idea why.
How can I get two tikzpictures of the same size with a small gap between them with the help of the
\tscsidebyside-command?
In the following pictures the green boxes show what I'm looking for...
MWE
\documentclass[12pt, a4paper, parskip=full]{scrartcl}
\usepackage{tikz}
\usepackage[most]{tcolorbox}
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
\tcbsidebyside[
sidebyside adapt=left,
blanker,
sidebyside gap=0.5\baselineskip,
sidebyside align=top seam
]
{
\begin{tikzpicture}[scale=\linewidth/20cm]
\draw[step=1,help lines,black!20] (-4.95,-3.45) grid (4.95,3.45);
\draw[thick] (-2.5,0) ellipse [x radius=2.25, y radius=3.4];
\draw[thick] (2.5,0) ellipse [x radius=2.25, y radius=3.4];
\end{tikzpicture}%
}
{
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
\tcbsidebyside[
sidebyside adapt=left,
blanker,
sidebyside gap=0.5\baselineskip,
sidebyside align=top seam
]
{
\begin{tikzpicture}[scale=\linewidth/20cm]
\draw[step=1,help lines,black!20] (-4.95,-3.45) grid (4.95,3.45);
\draw[thick] (-2.5,0) ellipse [x radius=2.25, y radius=3.4];
\draw[thick] (2.5,0) ellipse [x radius=2.25, y radius=3.4];
\end{tikzpicture}%
}
{
\begin{tikzpicture}[scale=\linewidth/20cm]
\draw[step=1,help lines,black!20] (-4.95,-3.45) grid (4.95,3.45);
\draw[thick] (-2.5,0) ellipse [x radius=2.25, y radius=3.4];
\draw[thick] (2.5,0) ellipse [x radius=2.25, y radius=3.4];
\end{tikzpicture}%
}
\end{document}



sidebyside adapt=leftthe sides are not handled in the same way. Store the linewidth outside e.g. with\newlength\mylinewidth \mylinewidth=\linewidthand then use \mylinewidth for the scale factor. – Ulrike Fischer Jun 28 '16 at 09:29