我希望在投影仪演示文稿中使用这样的幻灯片,但有两点小区别:
1) 物品必须位于同一点,并且不会消失在框架中。为此,我尝试使用覆盖区域但没有结果;
2) 带有翼型的图片中的箭头太大,我希望箭头小一点或者大一点。
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage{xcolor}
\usepackage{siunitx}
\usepackage{pgfplots}
\DeclareSIUnit\cavalli{hp}
\usepackage{subfig}
\pgfplotsset{width=7cm,compat=1.5.1}
\usetikzlibrary{spy}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=white]
\tikzstyle{somma} = [circle, minimum width=1cm, minimum height=1cm,text centered, draw=black, fill=white]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\begin{frame}
\frametitle{frametitle}
\begin{overlayarea}{\textwidth}{1\textheight}
\begin{columns}[onlytextwidth]
\begin{column}{.4\textwidth}
\begin{itemize}
\item<1-> 1
\item<2-> 2
\begin{enumerate}
\item \textcolor{blue}{3}
\item \textcolor{red}{4}
\end{enumerate}
\item<3-> 5
\begin{enumerate}
\item 6
\item 7
\item 8
\item 9
\item 10
\end{enumerate}
\end{itemize}
\end{column}
\begin{column}{.6\textwidth}
\resizebox{\textwidth}{!}{%
\begin{tikzpicture}[node distance=2cm]
\node (xrotor) [startstop] {1};
\node (output) [startstop, right of=xrotor, xshift=2cm] {1};
\node (velivolo) [startstop, below of=output, yshift=-2cm] {1};
\node (prestazioni) [startstop, left of=velivolo, xshift=-2cm] {1};
\node (input) [startstop, left of=xrotor, xshift=-2cm] {1};
\node (generale) [startstop, left of=input, xshift=-3cm] {1};
\node (progetto) [startstop, below of=generale] {1};
\node (naca) [startstop, above of=generale] {1};
\draw[arrow] (xrotor) -- (output);
\draw[arrow] (output) -- (velivolo);
\draw[arrow] (velivolo) -- (prestazioni);
\draw[arrow] (prestazioni) -| (progetto);
\draw[arrow] (generale) -- (input);
\draw[arrow] (progetto) -| (input);
\draw[arrow] (naca) -| (input);
\draw[arrow] (input) -- (xrotor);
\end{tikzpicture}}
\only<1|handout:0>{\begin{tikzpicture} [scale=.6, every node/.style={scale=0.6}]
% profilo
\draw [] plot [smooth, tension=1, rotate=20, xshift=-100, yshift=0] coordinates {(0, 0) (4, .4) (6, 0) (4, -.2) (0, 0)};
\draw [dashed, rotate=20, xshift=-100, yshift=0] (-.4, 0) -- (7.4, 0);
% velocità
\draw [latex-] (0, 0) -- +(3, 0);
\draw [latex-] (3, 0) -- +(0, .6);
\draw [latex-] (0, 0) -- (3, .6);
\def\PHI{11.3099}
\draw [latex-latex] (0, 0) +(0:2) arc (0:\PHI:2);
\draw [latex-latex] (0, 0) +(\PHI:2.7) arc (\PHI:20:2.7);
\draw [latex-latex] (0, 0) +(0:3.5) arc (0:20:3.5);
% assi di riferimento
\draw [thin] (-4, 0) -- (0, 0);
\draw [thin, ->] (0, -1) -- (0, 3.2);
\end{tikzpicture}}
\only<2|handout:0>{\begin{tikzpicture}[every pin/.style={fill=white}]
\begin{axis}[scaled ticks=false, tick label style={/pgf/number format/fixed, font=\tiny}, width=.4\textwidth, ylabel near ticks, ylabel shift={-8pt}, xlabel near ticks, xlabel shift={-6.5pt}, xmin=10, xmax=120, ymin=0, ymax=100, width=5cm]
\addplot [black, thick, domain=10:120, samples=100] ({\x}, {(0.5*1.225*(\x)^3*20.2*0.0114+2*0.03435*8829^2/(1.225*\x*20.2))/745.7});
\coordinate (spypoint) at (axis cs:35,20);
\end{axis}
\node[pin={[pin distance=2cm]3:{%
\begin{tikzpicture}[baseline,trim axis left,trim axis right]
\begin{axis}[scaled ticks=false, tick label style={/pgf/number format/fixed, font=\tiny}, xmin=25, xmax=50,
no markers,
grid=major,
every axis plot post/.append style={thick},
tiny]
\addplot [black, thick, domain=25:50, samples=100] ({\x}, {(0.5*1.225*(\x)^3*20.2*0.0114+2*0.03435*8829^2/(1.225*\x*20.2))/745.7});
\end{axis}
\end{tikzpicture}%
}},draw,circle,minimum size=0.5cm] at (spypoint) {};
\end{tikzpicture}}
\centering
\includegraphics[width=.6\textwidth]<3>{image.jpg}
\end{column}
\end{columns}
\end{overlayarea}
\end{frame}
\end{document}
关闭:有人可以告诉我如何在 tex.stackexchange 中编写代码来打印乳胶的精确结果?
答案1
将项目要点对齐到恒定高度的一种简单方法是使用 将列顶部对齐[onlytextwidth,T]
。顶部减少的空间可以用\vspace{}
足够长度的 来补偿。
采用这种方法,您可能不再需要它overlayarea
,但由于您的代码结构不太好,所以我不想深入研究它。
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{helvet}
\usepackage{xcolor}
\usepackage{siunitx}
\usepackage{pgfplots}
\DeclareSIUnit\cavalli{hp}
\usepackage{subfig}
\pgfplotsset{width=7cm,compat=1.5.1}
\usetikzlibrary{spy}
\usetikzlibrary{shapes.geometric, arrows}
\tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=white}}
\tikzset{somma/.style={circle, minimum width=1cm, minimum height=1cm,text centered, draw=black, fill=white}}
\tikzset{arrow/.style={thick,->,>=stealth}}
\begin{document}
\begin{frame}
\frametitle{frametitle}
\begin{overlayarea}{\textwidth}{1\textheight}
\vspace{1cm}
\begin{columns}[onlytextwidth,T]
\begin{column}{.4\textwidth}
\begin{itemize}
\item<1-> 1
\item<2-> 2
\begin{enumerate}
\item \textcolor{blue}{3}
\item \textcolor{red}{4}
\end{enumerate}
\item<3-> 5
\begin{enumerate}
\item 6
\item 7
\item 8
\item 9
\item 10
\end{enumerate}
\end{itemize}
\end{column}
\begin{column}{.6\textwidth}
\resizebox{\textwidth}{!}{%
\begin{tikzpicture}[node distance=2cm]
\node (xrotor) [startstop] {1};
\node (output) [startstop, right of=xrotor, xshift=2cm] {1};
\node (velivolo) [startstop, below of=output, yshift=-2cm] {1};
\node (prestazioni) [startstop, left of=velivolo, xshift=-2cm] {1};
\node (input) [startstop, left of=xrotor, xshift=-2cm] {1};
\node (generale) [startstop, left of=input, xshift=-3cm] {1};
\node (progetto) [startstop, below of=generale] {1};
\node (naca) [startstop, above of=generale] {1};
\draw[arrow] (xrotor) -- (output);
\draw[arrow] (output) -- (velivolo);
\draw[arrow] (velivolo) -- (prestazioni);
\draw[arrow] (prestazioni) -| (progetto);
\draw[arrow] (generale) -- (input);
\draw[arrow] (progetto) -| (input);
\draw[arrow] (naca) -| (input);
\draw[arrow] (input) -- (xrotor);
\end{tikzpicture}}
\only<1|handout:0>{\begin{tikzpicture} [scale=.6, every node/.style={scale=0.6}]
% profilo
\draw [] plot [smooth, tension=1, rotate=20, xshift=-100, yshift=0] coordinates {(0, 0) (4, .4) (6, 0) (4, -.2) (0, 0)};
\draw [dashed, rotate=20, xshift=-100, yshift=0] (-.4, 0) -- (7.4, 0);
% velocità
\draw [latex-] (0, 0) -- +(3, 0);
\draw [latex-] (3, 0) -- +(0, .6);
\draw [latex-] (0, 0) -- (3, .6);
\def\PHI{11.3099}
\draw [latex-latex] (0, 0) +(0:2) arc (0:\PHI:2);
\draw [latex-latex] (0, 0) +(\PHI:2.7) arc (\PHI:20:2.7);
\draw [latex-latex] (0, 0) +(0:3.5) arc (0:20:3.5);
% assi di riferimento
\draw [thin] (-4, 0) -- (0, 0);
\draw [thin, ->] (0, -1) -- (0, 3.2);
\end{tikzpicture}}
\only<2|handout:0>{\begin{tikzpicture}[every pin/.style={fill=white}]
\begin{axis}[scaled ticks=false, tick label style={/pgf/number format/fixed, font=\tiny}, width=.4\textwidth, ylabel near ticks, ylabel shift={-8pt}, xlabel near ticks, xlabel shift={-6.5pt}, xmin=10, xmax=120, ymin=0, ymax=100, width=5cm]
\addplot [black, thick, domain=10:120, samples=100] ({\x}, {(0.5*1.225*(\x)^3*20.2*0.0114+2*0.03435*8829^2/(1.225*\x*20.2))/745.7});
\coordinate (spypoint) at (axis cs:35,20);
\end{axis}
\node[pin={[pin distance=2cm]3:{%
\begin{tikzpicture}[baseline,trim axis left,trim axis right]
\begin{axis}[scaled ticks=false, tick label style={/pgf/number format/fixed, font=\tiny}, xmin=25, xmax=50,
no markers,
grid=major,
every axis plot post/.append style={thick},
tiny]
\addplot [black, thick, domain=25:50, samples=100] ({\x}, {(0.5*1.225*(\x)^3*20.2*0.0114+2*0.03435*8829^2/(1.225*\x*20.2))/745.7});
\end{axis}
\end{tikzpicture}%
}},draw,circle,minimum size=0.5cm] at (spypoint) {};
\end{tikzpicture}}
\centering
\includegraphics<3>[width=.6\textwidth]{example-image}
\end{column}
\end{columns}
\end{overlayarea}
\end{frame}
\end{document}