tikz-mindmap이 있는 그림의 캡션은 tikzpicture 아래에 표시되지 않습니다.

tikz-mindmap이 있는 그림의 캡션은 tikzpicture 아래에 표시되지 않습니다.

나는 일반적인 A4 형식의 종이에 포함된 단일 A3 페이지에 마인드맵을 생성하기 위해 다음 코드를 사용하고 있습니다. 캡션이 전체 마인드맵 아래에 있기를 원하지만 분명히 첫 번째 세트 노드 아래에 배치되고 있습니다. 나는 이것이 시작 노드를 특정 위치에 배치하는 데 사용하는 "그림 기억" 및 "오버레이" 옵션 때문이라고 가정합니다. 따라서 일부 하위 노드가 캡션 아래에 있는 경우가 있습니다. 캡션이 실제로 전체 마인드맵 아래에 있도록 하려면 어떻게 해야 합니까?

내 코드:

\documentclass[
a4paper,%a4 Papier
11pt, %schriftgroesse
BCOR=12mm, %binding correction
DIV=11,
twoside, %doppelseitig 
openright, %erstes kapitel steht rechts
cleardoublepage=plain, %Leere Seiten werden nummeriert (wegen openright)
parskip=half-
]{scrreprt}

\usepackage{caption}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows,calc,math,angles,quotes,trees,mindmap}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
\usepackage{lipsum}
\captionsetup[figure]{font=small,labelfont=small}

\begin{document}
\lipsum
\paragraph{Mindmap}
\clearpage
\KOMAoptions{paper=A3,DIV=23,paper=landscape}
\recalctypearea
\begin{figure}
\centering
\begin{tikzpicture}[remember picture, overlay,mindmap, grow cyclic, every node/.style={concept,font=\small,minimum size=0cm}, concept color=gray!60, 
    level 1/.append style={font=\footnotesize, level distance=4cm,sibling angle=90},
    level 2/.append style={font=\footnotesize,level distance=3cm,sibling angle=45},
    level 3/.append style={font=\footnotesize,level distance=3cm,sibling angle=37},
    level 4/.append style={font=\footnotesize,level distance=2.5cm,sibling angle=50},
    level 5/.append style={font=\footnotesize,level distance=2cm,sibling angle=40}]
    \node[xshift=2.5cm,yshift=2cm,inner sep=0cm] at (current page.center) (mac) {First node}
    child { node  {Second node}
    [level 2/.append style={sibling angle=60}] 
    [level 3/.append style={sibling angle=45}] 
    [level 4/.append style={sibling angle=30}] 
        child { node  {Third node}
            child { node[xshift=0.5cm]  (Macsup) {Child}}
            child { node[xshift=-0cm,yshift=2.5cm]  {Child}}
        }
        child { node[xshift=-1cm]  (Macro) {Third node}
            child { node[xshift=-2cm,yshift=3cm]  (Qubits) {Text}}  
        }
    };
\end{tikzpicture}
\caption{Mindmap.}
\label{mindmap}
\end{figure}
\clearpage
\KOMAoptions{paper=A4,paper=portrait,DIV=11}
\recalctypearea
\lipsum

\end{document}

답변1

혼자서 답을 찾았습니다. 다른 사람에게도 비슷한 도움이 필요하면 계속 질문하겠습니다. tikzpicture 옵션에서 "오버레이"를 제거했습니다. 분명히 이 옵션을 사용하면 사진 자체에 공간이 필요하지 않게 됩니다. 이로 인해 마치 사진이 전혀 없는 것처럼 페이지 중앙에 캡션이 표시됩니다.

관련 정보