von cis » Sa 24. Okt 2020, 16:21
Ich würde die Anordnung mit tcolorbox und dort tcbitemize umsetzen, da damit bei Bedarf auch komplexere Anordnungen umsetzbar sind.
\documentclass[a4paper]{article}
\usepackage[ngerman]{babel} % \figurename: "Figure" ---> "Abbildung"
% Subcaptions 1/2:
\usepackage[labelformat=simple]{subcaption}
\captionsetup[subfigure]{aboveskip=2pt}
\captionsetup[figure]{aboveskip=1.25\baselineskip}%
\renewcommand\thesubfigure{\figurename\,\thefigure\alph{subfigure}.\,}
\usepackage[most]{tcolorbox}
% Boxes:
\definecolor{myblue}{HTML}{4473C5} % https://html-color-codes.info/
\tcbset{
Common/.style={
enhanced, % allows TikZ etc.
sharp corners,
boxrule=0.5mm, % for better seeing
colback=myblue,
},
}
% Subcaptions 2/2:
\tikzset{
SubCaptionStyle/.style={
anchor=north, text width=\linewidth, draw=none, inner sep=0pt
},}
\newcommand\mysubfig[3][]{%
\tcbitem[finish={
\node[SubCaptionStyle] at (frame.south){\subcaption{#2}}; },
#1
] #3}
\begin{document}
\begin{figure}
\vbox{\hbox{%===== because of main caption ======
\begin{tcbitemize}[
raster columns=2,
raster row skip=1.75\baselineskip, % depends on the subcaption's text!
raster height=14cm, % Because no contents here
raster equal height=rows,
raster every box/.style={Common}
]
\tcbitem[raster multicolumn=1,raster multirow=2, blankest]
\begin{tcbitemize}[raster rows=2,
raster columns=1,raster height=\tcbtextheight]
\mysubfig[]{sub aaa} {aaa}
\mysubfig[]{sub bbb}{bbb}
\end{tcbitemize}
\mysubfig[raster multirow=2]{sub ccc}{ccc}
\end{tcbitemize}
}}%====================
\caption{Main caption}
\end{figure}
\end{document}
Ich würde die Anordnung mit [tt]tcolorbox[/tt] und dort [tt]tcbitemize[/tt] umsetzen, da damit bei Bedarf auch komplexere Anordnungen umsetzbar sind.
[attachment=0]55555555555.png[/attachment]
[code]\documentclass[a4paper]{article}
\usepackage[ngerman]{babel} % \figurename: "Figure" ---> "Abbildung"
% Subcaptions 1/2:
\usepackage[labelformat=simple]{subcaption}
\captionsetup[subfigure]{aboveskip=2pt}
\captionsetup[figure]{aboveskip=1.25\baselineskip}%
\renewcommand\thesubfigure{\figurename\,\thefigure\alph{subfigure}.\,}
\usepackage[most]{tcolorbox}
% Boxes:
\definecolor{myblue}{HTML}{4473C5} % https://html-color-codes.info/
\tcbset{
Common/.style={
enhanced, % allows TikZ etc.
sharp corners,
boxrule=0.5mm, % for better seeing
colback=myblue,
},
}
% Subcaptions 2/2:
\tikzset{
SubCaptionStyle/.style={
anchor=north, text width=\linewidth, draw=none, inner sep=0pt
},}
\newcommand\mysubfig[3][]{%
\tcbitem[finish={
\node[SubCaptionStyle] at (frame.south){\subcaption{#2}}; },
#1
] #3}
\begin{document}
\begin{figure}
\vbox{\hbox{%===== because of main caption ======
\begin{tcbitemize}[
raster columns=2,
raster row skip=1.75\baselineskip, % depends on the subcaption's text!
raster height=14cm, % Because no contents here
raster equal height=rows,
raster every box/.style={Common}
]
\tcbitem[raster multicolumn=1,raster multirow=2, blankest]
\begin{tcbitemize}[raster rows=2,
raster columns=1,raster height=\tcbtextheight]
\mysubfig[]{sub aaa} {aaa}
\mysubfig[]{sub bbb}{bbb}
\end{tcbitemize}
\mysubfig[raster multirow=2]{sub ccc}{ccc}
\end{tcbitemize}
}}%====================
\caption{Main caption}
\end{figure}
\end{document}
[/code]