![Beamer: 垂直方向の配置に問題があり、要素が中央に配置されていない](https://rvso.com/image/348630/Beamer%3A%20%E5%9E%82%E7%9B%B4%E6%96%B9%E5%90%91%E3%81%AE%E9%85%8D%E7%BD%AE%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8A%E3%80%81%E8%A6%81%E7%B4%A0%E3%81%8C%E4%B8%AD%E5%A4%AE%E3%81%AB%E9%85%8D%E7%BD%AE%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84.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}