![你好!我对这张幻灯片的动画有问题,图形和文本的布局发生了变化](https://linux22.com/image/382169/%E4%BD%A0%E5%A5%BD%EF%BC%81%E6%88%91%E5%AF%B9%E8%BF%99%E5%BC%A0%E5%B9%BB%E7%81%AF%E7%89%87%E7%9A%84%E5%8A%A8%E7%94%BB%E6%9C%89%E9%97%AE%E9%A2%98%EF%BC%8C%E5%9B%BE%E5%BD%A2%E5%92%8C%E6%96%87%E6%9C%AC%E7%9A%84%E5%B8%83%E5%B1%80%E5%8F%91%E7%94%9F%E4%BA%86%E5%8F%98%E5%8C%96.png)
\documentclass[xcolor=table]{beamer}
\usepackage[american,francais]{babel}
\usepackage{listings}
\usepackage{microtype}
\usepackage{textcomp}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[final]{pdfpages}
\usepackage{smartdiagram}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{shadows.blur}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{positioning}
\usepackage{relsize}
\usepackage{mathtools,amsmath}
\usepackage{graphics,bm}
\usepackage{pifont}
\usepackage{color}
\usepackage{calligra}
\usepackage{verbatim}
\usepackage{amsfonts,amsmath,amssymb}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{forest}
\usetikzlibrary{arrows.meta, shapes.geometric, calc, shadows}
\colorlet{mygreen}{green!75!black}
\colorlet{col1in}{red!30}
\colorlet{col1out}{red!40}
\colorlet{col2in}{mygreen!40}
\colorlet{col2out}{mygreen!50}
\colorlet{col3in}{blue!30}
\colorlet{col3out}{blue!40}
\colorlet{col4in}{mygreen!20}
\colorlet{col4out}{mygreen!30}
\colorlet{col5in}{blue!10}
\colorlet{col5out}{blue!20}
\colorlet{col6in}{blue!20}
\colorlet{col6out}{blue!30}
\colorlet{col7out}{orange}
\colorlet{col7in}{orange!50}
\colorlet{col8out}{orange!40}
\colorlet{col8in}{orange!20}
\colorlet{linecol}{blue!60}
\newcommand{\crossed}{\item[\ding{229}]}
\newcommand{\crossedb}{\color{blue}\item[\ding{229}]}
\newcommand{\crossedc}{\color{laughlingray}\item[\ding{229}]}
\newcommand{\cro}{\item[\ding{72}]}
\newcommand{\crob}{\item[\color{laughlingray}\ding{72}]}
\newcommand{\elyes}{\item[\ding{77}]}
\newcommand{\ahmed}{\item[\ding{78}]}
\newcommand {\bigsize}{\fontsize{7.75pt}{20pt}\selectfont}
\usetheme[language=french]{Laughlin}
\newcommand{\acronym}[1]{\textsc{\lowercase{#1}}}
\newcommand{\command}{\texttt}
\newcommand{\email}[1]{\href{mailto:#1}{\texttt{#1}}}
\newcommand{\familyname}{\textsc}
\newcommand{\filepath}{\texttt}
\newcommand{\latexcode}{\texttt}
\newcommand{\parameter}[1]{\textlangle #1\textrangle}
\lstset{basicstyle=\ttfamily,keywordstyle=\color{laughlinblue}\bfseries,commentstyle=\color{laughlinblue!75}\itshape,columns=flexible}
\begin{document}
\begin{frame}
\frametitle{\small Cahier des charges\normalsize}
\vspace{-0.25cm}
\small
\begin{itemize}
\cro<1->Trajectoire de référence
\cro<2->Angle de lacet de référence $\psi_d$
\cro<3->L’angle de roulis $\phi_d$ et l’angle\\ de tangage $\theta_d$ seront nulles
\end{itemize}\normalsize
\vspace{-3cm}
\begin{figure}
\includegraphics<1->[height=.3\textwidth]{Figures/chap3/trajetref.jpg}\hspace*{-5.5cm}
\vfill
\includegraphics<2->[height=.3\textwidth]{Figures/chap3/psiref.jpg}\hspace*{-5.5cm}
\end{figure}
\end{frame}
\end{document}
答案1
- 抱歉,你的问题不清楚,所以下面的 mwe 是基于猜测的
- 坦率地说,你的文档的序言是一团糟:一些软件包被加载了两次,对于
tikz
库等也同样有效 - 您应该仔细阅读上一个问题的两个答案:如何减少这片森林的面积?。在我的回答中我清楚地提到了同样的序言......
- 请在下面测试 mwe,看看它是否提供了您要查找的内容(在实际文档中您应该删除
demo
选项\documentclass...
在 mwe 中,与框架内容的代码相比,有变化,由
% <---
\documentclass[xcolor=table, demo]{beamer} \usepackage[american,francais]{babel} \usepackage{textcomp} \usepackage{pifont} \usepackage{microtype} \newcommand{\cro}{\item[\ding{72}]} \begin{document} \begin{frame} \frametitle{Cahier des charges} % <--- \small \begin{itemize}[<+->] % <--- \cro Trajectoire de référence \cro Angle de lacet de référence $\psi_d$ \cro L’angle de roulis $\phi_d$ et l’angle\\ de tangage $\theta_d$ seront nulles \end{itemize} % \begin{figure} \onslide<1->{\includegraphics[height=.25\textwidth]{Figures/chap3/trajetref.jpg}} % <--- \vfill \onslide<2->{\includegraphics[height=.25\textwidth]{Figures/chap3/psiref.jpg}} % <--- \end{figure} \end{frame} \end{document}