您的位置:首页 > 其它

[latex]图片动态缩放的PDF动画示例

2013-04-06 22:45 106 查看
[latex]图片动态缩放的PDF动画示例,下面的示例主要使用ctex,animate和tikz宏包实现的.

% Animated beamer frame for tikz
%Author:
%wu xuping
%Date:
%2013-04-06
% FileName:
%main.tex
% run:
%  xelatex -shell-escape main
%  xelatex -shell-escape main
%required:
%  Acrobat Reader version > 6
\documentclass{beamer}
\input{preamble.tex}
\input{tikzall.tex} %包含所有的tikz包
\begin{document}

\begin{frame}[t,fragile]
\frametitle{\Letex 图片动态缩放的PDF动画示例}
\frametitle{动态缩放美女脸部}
%使用tikz包,比较方便控制画面的位置
\begin{animateinline}[autoplay,palindrome,
begin={\begin{tikzpicture}[scale=1,line width=1.5pt]
\useasboundingbox (-2cm,-2cm) rectangle(4cm,4cm);},
end={\end{tikzpicture}}]{8}
%总共生成20帧画面,以每秒8帧的速度播放
\multiframe{20}{Rscale=0.02+0.02}{%
\node[draw] at (1,1){\includegraphics[scale=\Rscale]{test}};
}%
\end{animateinline}

\end{frame}

\end{document}


效果如下:

图片在pdf中自动会动态缩放.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: