좌표를 기준으로 전체 tikzpicture 위치 지정

좌표를 기준으로 전체 tikzpicture 위치 지정

, , , ... 인수를 사용하여 특정 좌표에서 anchor전체를 얻을 수 있는 방법이 있나요 ? by 옵션 에서 활성화될 때 배경 좌표를 표시하는 그리드를 구성했습니다 . 그런 다음 그 위에 tikz그림을 그렸습니다(이 경우에는 ). 이는 내 비머 슬라이드의 왼쪽 상단 모서리입니다. 이제 전체 tikzpicture를 0,0에서 앵커로 또는 7,0에서 앵커로 수직으로 정렬하는 방법이 궁금합니다 . 저는 일반적으로 슬라이드에 독립적으로 tikz그림을 그릴 수 있었습니다.tikzpicturenortheastcenterframeg(0,3.5)westcenteroverlay

암호:

\documentclass[8pt,aspectratio=169]{beamer}
\usepackage[british]{babel}
\usepackage{tikz}
\usetikzlibrary{shapes,shapes.geometric,arrows,fit,positioning,arrows.meta,arrows.spaced,angles,quotes,decorations.pathmorphing,decorations.shapes,decorations.text,patterns,overlay-beamer-styles,external,calc,math,backgrounds,automata}

\tikzstyle{every picture}+=[overlay,remember picture,shift={([xshift=1cm,yshift=-0.41cm]current page.west)}]

\defbeamertemplate{background}{mydefault}{%
    %
}
\defbeamertemplate{background}{g}{%
    \begin{tikzpicture}
    \foreach \y in {3.5,3,...,-3.5}
    \draw[opacity=0.3,line width=0.1] (0,\y) -- (14,\y);
    \foreach \x in {0,0.5,...,14}
    \draw[opacity=0.3,line width=0.1] (\x,3.5) -- (\x,-3.5);
    
    \begin{scope}[opacity=0.4]
    \foreach \x in {0,1,...,14}
    \foreach \y in {3.5,3,2.5,...,-3.5}
    \node[font=\footnotesize] at (\x,\y) {\x, \y};
    \end{scope}
    \end{tikzpicture}%
}

\BeforeBeginEnvironment{frame}{%
    \setbeamertemplate{background}[mydefault]%
}

\makeatletter
\define@key{beamerframe}{g}[true]{%
    \setbeamertemplate{background}[g]%
}
\makeatother


\begin{document}

\begin{frame}[g]
    \frametitle{Agenda}
    
    \begin{tikzpicture}[Numbox/.style={rectangle,draw=magenta,fill=magenta,text=white,font=\bfseries,text width=12pt, minimum height=28pt,anchor=north west,align=center},
        Textbox/.style={rectangle,draw=magenta,text width=7cm, minimum height=28pt,anchor=north west,align=left,font=\bfseries,inner xsep=9pt}
        ]
        
        \tikzmath{
            \numskip=9pt;
            \textnumskip=3pt;
        }   
        ]
        
        \node[Numbox] (I) at (0,3.5) {I.};
        \node[Textbox] (IT) at ([xshift=\textnumskip]I.north east) {Problemstellung und Forschungsfragen};
        
        
        \node[Numbox] (II) at ([yshift=-\numskip]I.south west) {II.};
        \node[Textbox] (IIT) at ([xshift=\textnumskip]II.north east) {Problemstellung und Forschungsfragen};
        
        
        \node[Numbox] (III) at ([yshift=-\numskip]II.south west) {III.};
        \node[Textbox] (IIIT) at ([xshift=\textnumskip]III.north east) {Problemstellung und Forschungsfragen};
        
        
        \node[Numbox] (IV) at ([yshift=-\numskip]III.south west) {IV.};
        \node[Textbox] (IVT) at ([xshift=\textnumskip]IV.north east) {Problemstellung und Forschungsfragen};
        
        \node[Numbox] (V) at ([yshift=-\numskip]IV.south west) {V.};
        \node[Textbox] (VT) at ([xshift=\textnumskip]V.north east) {Problemstellung und Forschungsfragen};
                
    \end{tikzpicture}   
    
\end{frame}
\end{document}

관련 정보