我正在使用 Beamer,我想创建一个多帧幻灯片。
我想要在这些框架上放置两个项目和三张图片。第一个项目与第一张图片相关,第二个项目与第二张图片相关,但第三张图片与前两个项目相关。
现在我可以依次显示前两个项目及其图像,但是如何将这两个项目与第三个图像一起显示呢?
以下 MWE 提供了更多详细信息。请注意,我有第三张图像,应与突出显示的两个项目一起显示。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols,positioning,mindmap,trees}
\usepackage{xcolor}
\tikzset{level 1 concept/.append style={level distance = 24mm}}
\tikzset{level 2 concept/.append style={level distance = 13mm}}
\begin{document}
\begin{frame}
\frametitle{gas turbine}
\setbeamercovered{transparent}
\begin{enumerate}
\item<1>
thermal barrier coating
\item<2>
internal blade cooling
\end{enumerate}
\begin{onlyenv}<1>
\begin{figure}
\begin{minipage}{1\textwidth}
\center{
\includegraphics[width=0.45\linewidth]{mrs_bulletin_tbcs.pdf}}
\end{minipage}
\end{figure}
\end{onlyenv}
\begin{onlyenv}<2>
\begin{minipage}{0.95\textwidth}
\center{
\vspace*{0.3cm}\begin{tikzpicture}[mindmap, grow cyclic, every node/.style=concept, concept color=blue!40, align=flush center]
\node[concept,scale=0.4]{\Large Gas Turbine Blade Cooling}
[clockwise from=-30]
child[concept] {
node[concept,scale=0.4] {\large Internal Blade Cooling}
[clockwise from=100]
child { node[concept,scale=0.4] {Jet Impingement} }
child { node[concept,scale=0.4] {Rib turbulators} }
child { node[concept,scale=0.4] {Pin-fins} }
child { node[concept,scale=0.4] {Swirl Chambers} }
child { node[concept,scale=0.4] {Dimples} }
}
child[concept] {
node[concept,scale=0.4] {\large External Blade Cooling}
[clockwise from=-90]
child { node[concept,scale=0.4] {Film Cooling} }
}
child[concept] {
node[concept,scale=0.4] {\large Other Cooling Concepts}
[clockwise from=-60]
child { node[concept,scale=0.4] {\scriptsize Transpiration} }
child { node[concept,scale=0.4] {Water Cooling} }
child { node[concept,scale=0.4] {Steam Cooling} }
}
;
\end{tikzpicture}}
\vspace*{0.3cm}
\end{minipage}
\end{onlyenv}
\end{frame}
\end{document}
答案1
作为题外补充萨姆卡特回答:
- 由于问题不清楚使用迷你页面的必要性,我删除了它们
- 在第二张图片中,我删除了所有杂乱的内容(这个答案的主要贡献)
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols, positioning, mindmap, trees}
\tikzset{
level 1 concept/.append style={level distance = 24mm},
level 2 concept/.append style={level distance = 13mm}
}
\begin{document}
\begin{frame}
\frametitle{gas turbine}
\setbeamercovered{transparent}
\begin{enumerate}
\item<1,3>
thermal barrier coating
\item<2,3>
internal blade cooling
\end{enumerate}
\bigskip
\centering
\begin{onlyenv}<1>
\includegraphics[width=0.45\linewidth]{example-image.pdf}
\end{onlyenv}
\begin{onlyenv}<2>
\begin{tikzpicture}[mindmap, grow cyclic,
every node/.style = {concept, concept color=blue!40, align=flush center,
scale=0.4}
]
\node[scale=1, font=\Large]{Gas Turbine Blade Cooling}
[clockwise from=-30]
child {
node[font=\large] {Internal Blade Cooling}
[clockwise from=100]
child { node {Jet Impingement} }
child { node {Rib turbulators} }
child { node {Pin-fins} }
child { node {Swirl Chambers} }
child { node {Dimples} }
}
child {
node[font=\large] {External Blade Cooling}
[clockwise from=-90]
child { node{Film Cooling} }
}
child{
node[font=\large] {Other Cooling Concepts}
[clockwise from=-60]
child { node {Trans-\\ piration} }
child { node {Water Cooling} }
child { node {Steam Cooling} }
};
\end{tikzpicture}
\end{onlyenv}
\begin{onlyenv}<3>
\includegraphics[width=.5\textwidth]{example-grid-100x100bp}
\end{onlyenv}
\end{frame}
\end{document}
结果(几乎)与 萨姆卡特回答。
答案2
要在多个覆盖层上突出显示项目,您可以指定覆盖层\item<1,3>
。
无关:
正如您在上一个问题的答案中提到的那样,您不需要
xcolor
使用 beameronlyenv
为了使代码更简单一些,您可以更改和 的顺序minipage
。这样您只需要一个minipage
。而不是
\center{...}
使用\centering
如果你没有阳离子,
figure
环境就没有必要
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols,positioning,mindmap,trees}
\tikzset{level 1 concept/.append style={level distance = 24mm}}
\tikzset{level 2 concept/.append style={level distance = 13mm}}
\begin{document}
\begin{frame}
\frametitle{gas turbine}
\setbeamercovered{transparent}
\begin{enumerate}
\item<1,3> thermal barrier coating
\item<2,3> internal blade cooling
\end{enumerate}
\begin{minipage}{\textwidth}
\centering
\begin{onlyenv}<1>
\includegraphics[width=0.45\linewidth]{example-image.pdf}
\end{onlyenv}
\begin{onlyenv}<2>
\begin{tikzpicture}[mindmap, grow cyclic, every node/.style=concept, concept color=blue!40, align=flush center]
\node[concept,scale=0.4]{\Large Gas Turbine Blade Cooling}
[clockwise from=-30]
child[concept] {
node[concept,scale=0.4] {\large Internal Blade Cooling}
[clockwise from=100]
child { node[concept,scale=0.4] {Jet Impingement} }
child { node[concept,scale=0.4] {Rib turbulators} }
child { node[concept,scale=0.4] {Pin-fins} }
child { node[concept,scale=0.4] {Swirl Chambers} }
child { node[concept,scale=0.4] {Dimples} }
}
child[concept] {
node[concept,scale=0.4] {\large External Blade Cooling}
[clockwise from=-90]
child { node[concept,scale=0.4] {Film Cooling} }
}
child[concept] {
node[concept,scale=0.4] {\large Other Cooling Concepts}
[clockwise from=-60]
child { node[concept,scale=0.4] {\scriptsize Transpiration} }
child { node[concept,scale=0.4] {Water Cooling} }
child { node[concept,scale=0.4] {Steam Cooling} }
}
;
\end{tikzpicture}
\end{onlyenv}
\begin{onlyenv}<3>
\includegraphics[width=.6\textwidth]{example-grid-100x100bp}
\end{onlyenv}
\end{minipage}
\end{frame}
\end{document}