\documentclass{beamer}
\usetheme{Warsaw}
\usecolortheme{crane}
\setbeamercolor{frametitle}{bg=gray!10!white}
\usefonttheme{professionalfonts}
%\setbeamertemplate{headline}{}
%remove navigation
\beamertemplatenavigationsymbolsempty
\usepackage{booktabs, textcomp} % Tables
\usepackage{tabularx,caption}
\usepackage{tikz} % Diagrams
\usetikzlibrary{calc, shapes, backgrounds}
\usepackage{amsmath, amssymb}
\usepackage{url} % `\url`s
\usepackage{listings} % Code listings
\beamertemplatenavigationsymbolsempty
%----------------------------------------------------------------------
\usepackage{tikz}
\usetikzlibrary{trees}
\usepackage{graphics}
\title{Chronic diarrhea: a case based Approach}
\author{Dr }
\date {\today}
\institute{My Hospital }
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
%----------------------------------------------------------------------------------------------
\begin{frame}{Terminologies/ definitions}
\begin{description}
\item [Diarrhea]
\item [Acute diarrhea]
\item [persistent diarrhea]
\item [Chronic diarrhea]
\end{description}
\end{frame}
%---
\begin{frame} {Terminologies/ definitions}
\begin{description}
\item [Diarrhea] Increase in the fluidity / frequency of stool
\item [Acute diarrhea] $\leq$ 2 weeks
\item [Persistent diarrhea] 2 to 4 weeks
\item [Chronic diarrhea] $\geq $4 weeks
\end{description}
\end{frame}
\end{document}
嗨,这是我正在准备的 Beamer 演示文稿的 mwe。我希望描述的项目标签首先出现,然后在下一张幻灯片中出现描述。我通过复制幻灯片粗略地实现了这一点。但一定有更好的方法。请帮忙
答案1
就像@samcarter 所说,您必须将您的定义作为only
命令的参数。
\documentclass{beamer}
\usetheme{Warsaw}
\title{Chronic diarrhea: a case based Approach}
\author{Dr }
\date {\today}
\institute{My Hospital }
\begin{document}
\begin{frame}
\maketitle
\end{frame}
%----------------------------------------------------------------------------------------------
\begin{frame} {Terminologies/ definitions}
\begin{description}[Persistent diarrhea]
%% Persistent diarrhea is the longest item.
%% We add it as an option of the *description* environment
%% to have all the items aligned on the right.
\item [Diarrhea] \only<2>{Increase in the fluidity / frequency of stool }
\item [Acute diarrhea] \only<2>{$\leq$ 2 weeks }
\item [Persistent diarrhea] \only<2>{2 to 4 weeks }
\item [Chronic diarrhea] \only<2>{$\geq $4 weeks }
\end{description}
\end{frame}
\end{document}
您可以only
在以下位置找到有关命令的文档维基百科。
顺便说一句,您原始帖子中给出的示例不是 MWE,因为这里很多套餐都是收费的并且毫无用处。