![비머: 수직 정렬 문제, 요소가 중앙에 위치하지 않음](https://rvso.com/image/348630/%EB%B9%84%EB%A8%B8%3A%20%EC%88%98%EC%A7%81%20%EC%A0%95%EB%A0%AC%20%EB%AC%B8%EC%A0%9C%2C%20%EC%9A%94%EC%86%8C%EA%B0%80%20%EC%A4%91%EC%95%99%EC%97%90%20%EC%9C%84%EC%B9%98%ED%95%98%EC%A7%80%20%EC%95%8A%EC%9D%8C.png)
아래 MWE와 비슷한 레이아웃을 가지고 있는데 상단에 프레임 내용이 남는 공간과 하단에 남는 공간이 헷갈리는데... 내용을 중앙에 놓을 수 있는 곳이 따로 있나요?
MWE:
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\setbeamertemplate{navigation symbols}{}
\mode<presentation> {
\usetheme{Dresden}
}
\begin{document}
\section{some section}
\begin{frame}[c]
\begin{tikzpicture}[remember picture, every node/.style={inner sep=0,outer sep=0,align=left}]
\node[anchor=west] (A) at (0,0) {\includegraphics[width=2.5cm, height=1cm]{example-image}};
\node[right=0.75cm of A.east, anchor=west] (B) {{\Large \textbf{\alert{2007}}}};
\node [right=0.75cm of B.east, anchor=west] (C) {Some text here in\\a couple of lines};
\node [below=0.25cm of A.south, anchor=north] (D) {\includegraphics[width=2.5cm, height=1cm]{example-image}};
\node [right=0.75cm of D.east, anchor=west, text width=6.5cm] (E) {More and more text here\\also in a couple of lines};
\end{tikzpicture}
\begin{center}
\includegraphics[width=.6\linewidth, height=4.75cm]{example-image}
\end{center}
\end{frame}
\end{document}
생산:
답변1
환경 center
은 끝에 수직 공간을 추가하고 \centering
대신 사용합니다.
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\setbeamertemplate{navigation symbols}{}
\mode<presentation> {
\usetheme{Dresden}
}
\begin{document}
\section{some section}
\begin{frame}[c]
\begin{tikzpicture}[remember picture, every node/.style={inner sep=0,outer sep=0,align=left}]
\node[anchor=west] (A) at (0,0) {\includegraphics[width=2.5cm, height=1cm]{example-image}};
\node[right=0.75cm of A.east, anchor=west] (B) {{\Large \textbf{\alert{2007}}}};
\node [right=0.75cm of B.east, anchor=west] (C) {Some text here in\\a couple of lines};
\node [below=0.25cm of A.south, anchor=north] (D) {\includegraphics[width=2.5cm, height=1cm]{example-image}};
\node [right=0.75cm of D.east, anchor=west, text width=6.5cm] (E) {More and more text here\\also in a couple of lines};
\end{tikzpicture}
\bigskip
\centering
\includegraphics[width=.6\linewidth, height=4.75cm]{example-image}
\end{frame}
\end{document}