Beamer 无法正确编译演示文稿

Beamer 无法正确编译演示文稿

我正在做一个投影仪演示,但它似乎不想成为我的朋友。

主要问题:

(1) 当它编译(pdflatex)时,输出是一系列幻灯片,并且每次 \pause 后,它都会制作一个具有更高编号的新幻灯片。也就是说:单击正确地发现了一些新的信息,但它改变了幻灯片编号,这至少令人讨厌。

(2) 页脚根本不起作用。我有一个模板,它应该可以完成投影仪幻灯片的常规操作,并在底部显示幻灯片标题、作者以及哪张幻灯片(共多少张),但它就是做不到这一点。底部唯一编译的内容是一个数字,表示我正在哪张幻灯片上。

我猜:我认为我的前言有些问题,但我只是不太了解所有活动部件的情况,无法正确确定确切的问题。我已将其包含在下方,以防万一。

 \documentclass[mathserif,18pt,xcolor=table]{beamer}
 
 \usepackage {bbm}
\usepackage {textpos}
\usepackage{tikz}
 \usepackage{amscd}
\usepackage{amsfonts}
\usepackage{graphicx}%
 \usepackage{fancyhdr}
\usepackage{fullpage}
 \usepackage{amsmath,amssymb,amsthm}
\usepackage{enumerate}
 \usepackage{stmaryrd,mathrsfs}
\usepackage{prettyref,hyperref}
 \usetikzlibrary{matrix,calc,3d}
 
 [custom math-mode commands, omitted for brevity]
 
 \newcommand{\drawbox}[1]{\begin{array}{|l|}\hline #1 \\
 \hline\end{array}}
 
 
 \newtheoremstyle{thmstyle}{1em}{1.5em}{}{.7em}{\bf}{:}{0.5em}{}
 \theoremstyle{thmstyle} \newtheorem{thm}{Theorem}[section]
 %\newtheorem{theorem}{Theorem} \newtheorem{conjecture}{Conjecture}
 \newtheorem{project}{Project} \newtheorem{defn}[thm]{Definition}
 \newtheorem{cor}[thm]{Corollary} \newtheorem{lem}[thm]{Lemma}
 \newtheorem{rem}[thm]{Remark} \newtheorem{ex}[thm]{Example}
 \newtheorem{prop}[thm]{Proposition}
 \newtheorem{ithm}{Theorem}[section] \newtheorem{conj}[thm]{Conjecture}
 \newtheorem{question}{Question}
 
 \newrefformat{lem}{Lemma~\ref{#1}}
 \newrefformat{prop}{Proposition~\ref{#1}}
 \newrefformat{conj}{Conjecture~\ref{#1}}
 \newrefformat{def}{Definition~\ref{#1}}
 \newrefformat{sec}{Section~\ref{#1}}
 \newrefformat{thm}{Theorem~\ref{#1}} 
 \newrefformat{rem}{Remark~\ref{#1}}
 \newrefformat{cor}{Corollary~\ref{#1}}
 \newrefformat{fig}{Figure~\ref{#1}}
 
 \definecolor{utorange}{RGB}{203,96,21}
 \definecolor{utblack}{RGB}{99,102,106}
 \definecolor{utbrown}{RGB}{110,98,89}
 \definecolor{utsecbrown}{RGB}{217,200,158}
 \definecolor{utsecgreen}{RGB}{208,222,187}
 \definecolor{utsecblue}{RGB}{127,169,174}
 \definecolor{utgray}{HTML}{B2BEB5}
 
 \mode<presentation> {   % \usetheme{Pittsburgh}    % 
 \usetheme{Boadilla}     \usefonttheme[onlymath]{serif}
 
   \setbeamercovered{invisible}   \setbeamertemplate{navigation
 symbols}{}
 
   % Color Theme 
     \setbeamercolor{normal text}{bg=white,fg=utblack}   \setbeamercolor{structure}{bf=utgray,fg=utorange}
 
   \setbeamercolor{alerted text}{fg=red!85!black}
 
   \setbeamercolor{item projected}{use=item,fg=black,bg=item.fg!35}
 
   \setbeamercolor*{palette primary}{use=structure,fg=white,
 bg=utorange}   \setbeamercolor*{palette
 secondary}{use=structure,bg=utsecbrown}   \setbeamercolor*{palette
 tertiary}{use=structure,bg=utsecgreen}   \setbeamercolor*{palette
 quaternary}{use=structure,fg=structure.fg,bg=utsecblue}
 
   % \setbeamercolor*{frametitle}{use=structure,fg=utorange,
 bg=utsecbrown}   \setbeamercolor*{framesubtitle}{fg=utbrown}
 
   \setbeamercolor*{block
 title}{parent=structure,fg=black,bg=utsecgreen}  
 \setbeamercolor*{block body}{fg=black,bg=utblack!10}  
 \setbeamercolor*{block title alerted}{parent=alerted text,bg=black!15}
 \setbeamercolor*{block title example}{parent=example text,bg=black!15}
 
   \setbeamerfont{framesubtitle}{size=\small} }
 
 \hypersetup{pdfpagemode=FullScreen}
 
 \usepackage[orientation=landscape,size=custom,width=16,height=9.75,scale=0.5,debug]{beamerposter}
 %
 \usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
 
 
 \makeatletter \setbeamertemplate{footline} {   \leavevmode%
     \hbox{%
       \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author
 in head/foot}%
         \usebeamerfont{author in head/foot}\insertshortauthor%~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
       \end{beamercolorbox}%
         \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title
 in head/foot}%
         \usebeamerfont{title in head/foot}\insertshorttitle
         \end{beamercolorbox}%
         \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date
 in head/foot}%
         \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
         \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
       \end{beamercolorbox}}%
         \vskip0pt% } \makeatother
 
 \usepackage{kerkis} \usepackage[T1]{fontenc}
 \usepackage[protrusion=true,expansion=true]{microtype}
 \usepackage{amsmath}
 
 
 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
 
 
 \pgfdeclareimage[height=1.0cm]{utbig}{logos/UTWordmark}
 \pgfdeclareimage[height=0.6cm]{ut}{logos/UTWordmark}
 \pgfdeclareimage[height=1.5cm]{sclogo}{logos/SC12} %
 \pgfdeclareimage[height=1.0cm]{scsmall}{logos/SC12}
 
 \title{title} %
 \subtitle{If you have one} \author[author]{ \underline{author}  }
 
 \institute{institute \\ \mbox{}  \\  \pgfuseimage{utbig}
 } \date[date]{\pgfuseimage{sclogo} \\ \today}

答案1

有一些严重的 TeX 杀戮和软件包狂欢正在发生,如果你没有很多 TeX 经验,这是正常的。我也是这样。其中许多东西是用于文章的。所以避免加载这些包。例如,你根本不需要参考资料 Lemma、Conjecture bla bla。因为如果你真的必须使用,这些都是幻灯片cleveref包裹,但请不要。

因此,随机删除一些东西直到它编译完成才会给我这个。

 \documentclass[18pt,xcolor=table]{beamer}
 %\usepackage {bbm}
%\usepackage {textpos}
\usepackage{tikz}
 %\usepackage{amscd}
\usepackage{amsfonts}
%\usepackage{graphicx}%
 %\usepackage{fancyhdr}
%\usepackage{fullpage}
 \usepackage{amsmath,amssymb,amsthm}
%\usepackage{enumerate}
 %\usepackage{stmaryrd,mathrsfs}
%\usepackage{prettyref,hyperref}
 \usetikzlibrary{matrix,calc,3d}
 %
 %[custom math-mode commands, omitted for brevity]
 %
 %\newcommand{\drawbox}[1]{\begin{array}{|l|}\hline #1 \\
 %\hline\end{array}}
 %
 %
 %\newtheoremstyle{thmstyle}{1em}{1.5em}{}{.7em}{\bf}{:}{0.5em}{}
 %\theoremstyle{thmstyle} \newtheorem{thm}{Theorem}[section]
 %%\newtheorem{theorem}{Theorem} \newtheorem{conjecture}{Conjecture}
 %\newtheorem{project}{Project} \newtheorem{defn}[thm]{Definition}
 %\newtheorem{cor}[thm]{Corollary} \newtheorem{lem}[thm]{Lemma}
 %\newtheorem{rem}[thm]{Remark} \newtheorem{ex}[thm]{Example}
 %\newtheorem{prop}[thm]{Proposition}
 %\newtheorem{ithm}{Theorem}[section] \newtheorem{conj}[thm]{Conjecture}
 %\newtheorem{question}{Question}


 \definecolor{utorange}{RGB}{203,96,21}
 \definecolor{utblack}{RGB}{99,102,106}
 \definecolor{utbrown}{RGB}{110,98,89}
 \definecolor{utsecbrown}{RGB}{217,200,158}
 \definecolor{utsecgreen}{RGB}{208,222,187}
 \definecolor{utsecblue}{RGB}{127,169,174}
 \definecolor{utgray}{HTML}{B2BEB5}

 \mode<presentation> {   % \usetheme{Pittsburgh}    % 
\usetheme{Boadilla}     
\usefonttheme[onlymath]{serif}
\setbeamercovered{invisible}   
\setbeamertemplate{navigation symbols}{}

   % Color Theme 
\setbeamercolor{normal text}{bg=white,fg=utblack}
\setbeamercolor{structure}{bg=utgray,fg=utorange}
\setbeamercolor{alerted text}{fg=red!85!black}
\setbeamercolor{item projected}{use=item,fg=black,bg=item.fg!35}
\setbeamercolor*{palette primary}{use=structure,fg=white,bg=utorange}
\setbeamercolor*{palette secondary}{use=structure,bg=utsecbrown}
\setbeamercolor*{palette tertiary}{use=structure,bg=utsecgreen}
\setbeamercolor*{palette quaternary}{use=structure,fg=structure.fg,bg=utsecblue}

\setbeamercolor*{frametitle}{use=structure,fg=utorange,bg=utsecbrown}
\setbeamercolor*{framesubtitle}{fg=utbrown}
\setbeamercolor*{block title}{parent=structure,fg=black,bg=utsecgreen}
\setbeamercolor*{block body}{fg=black,bg=utblack!10}  
\setbeamercolor*{block title alerted}{parent=alerted text,bg=black!15}
\setbeamercolor*{block title example}{parent=example text,bg=black!15}
\setbeamerfont{framesubtitle}{size=\small} 
}

\hypersetup{pdfpagemode=FullScreen}
%\usepackage[orientation=landscape,size=custom,width=16,height=9.75,scale=0.5,debug]{beamerposter}
\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}


 \makeatletter
\setbeamertemplate{footline}{\leavevmode%
     \hbox{%
       \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
         \usebeamerfont{author in head/foot}\insertshortauthor%~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
       \end{beamercolorbox}%
         \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
         \usebeamerfont{title in head/foot}\insertshorttitle%
         \end{beamercolorbox}%
         \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
         \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}%
         \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}% 
       \end{beamercolorbox}}%
         \vskip0pt% 
        }
\makeatother


 \pgfdeclareimage[height=1.0cm]{utbig}{logos/UTWordmark}
 \pgfdeclareimage[height=0.6cm]{ut}{logos/UTWordmark}
 \pgfdeclareimage[height=1.5cm]{sclogo}{logos/SC12} %
 \pgfdeclareimage[height=1.0cm]{scsmall}{logos/SC12}

 \title{title} %
 \subtitle{If you have one} 
 \author[author]{\underline{author}}

 \institute{institute \\ \mbox{}  \\  \pgfuseimage{utbig}}
 \date[date]{\pgfuseimage{sclogo} \\ \today}

\begin{document}
\begin{frame}{A}

\end{frame}
\end{document}

相关内容