当我使用计算机上的 TexStudio 编译下面的代码时:
\documentclass{beamer}
\usepackage{amssymb,latexsym,amssymb,amsmath,amsbsy,amsopn,amstext,upgreek}
\usepackage{color,multicol}
\usepackage{graphicx,wrapfig,fancybox,watermark,graphics}
\usepackage{picins}
\usepackage{pgf}
\usepackage{movie15}
\usepackage{hyperref}
\hypersetup{
pdfpagemode=FullScreen, % show in full screen?
}
\usepackage{pdfpages}
\usepackage{listings,bera}
\definecolor{keywords}{RGB}{255,0,90}
\definecolor{comments}{RGB}{60,179,113}
\lstset{language=C,
keywordstyle=\color{keywords},
commentstyle=\color{comments}\emph
}
\usepackage{algorithm}
\usepackage{algorithmic}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
% reference entry
\usepackage{bibentry}
\usepackage[numbers]{natbib}
\usepackage[
compress,
%minimal,
nonav,
red,
%gold,
%numbers,
%nologo,
polyu,
]
{beamerthemeHongKong}
\usefonttheme{structuresmallcapsserif}
\begin{document}
\title{Title}
\author{Author}
\institute[institute]{institute full name}
\date{\today}
\frame{\titlepage}
\section*{Table of Contents}
\frame {
\frametitle{\secname}
\tableofcontents
}
\AtBeginSubsection[] {
\frame<handout:0> {
\frametitle{Outline}
\tableofcontents[current,currentsubsection]
}
}
\section{Section A}
\subsection{Subsection A-A}
\begin{frame}
\frametitle{\subsecname}
\begin{columns}
\column{0.5\textwidth}
\begin{overprint}
\onslide<1>
\begin{figure}
\includegraphics[width=\textwidth]{image/test-image1}
\caption{figure A}
\end{figure}
\onslide<2>
\begin{figure}
\includegraphics[width=\textwidth]{image/test-image2}
\caption{figure B}
\end{figure}
\end{overprint}
\column{0.5\textwidth}
\begin{block}{example}<1->
\begin{enumerate}
\item<1-|alert@1>
text about figure A
\item<2-|alert@2>
text about figure B
\end{enumerate}
\end{block}
\end{columns}
\end{frame}
\subsection{Subsection A-B}
\begin{frame}
\frametitle{\subsecname}
\begin{itemize}[<+- | alert@+>]
\item
item A
\item
Item B
\item
Item C
\end{itemize}
\end{frame}
\section{Section B}
\subsection{Subsection B-A}
\begin{frame}
\frametitle{\subsecname}
\begin{enumerate}
\item
item A
\item
Item B
\item
Item C
\end{enumerate}
\end{frame}
\subsection{Subsection B-B}
\begin{frame}
\frametitle{\subsecname}
\begin{itemize}
\item
item A
\item
Item B
\item
Item C
\end{itemize}
\end{frame}
\subsection*{Thanks}
\begin{frame}
\frametitle{\subsecname}
\begin{columns}
\column{2.5cm}
\column{5cm}
\Huge{Thank you!}
\column{2.5cm}
\end{columns}
\end{frame}
\end{document}
它说“文件‘beamerthemeHongKong.sty’未找到。\usefonttheme”这是什么意思?你可以从下载此文件这里
答案1
您必须下载三个文件:
https://github.com/quxiaofeng/PolyU_Beamer_Theme/blob/master/themes/theme/beamerthemeHongKong.sty
https://github.com/quxiaofeng/PolyU_Beamer_Theme/blob/master/themes/outer/beamerouterthemepolyu.sty
将它们放在与主文件相同的目录中(或 TeX 系统搜索到的其他位置),然后输入
\usetheme[
compress,
%minimal,
nonav,
red,
%gold,
%numbers,
%nologo,
polyu,
]{HongKong}
而不是\usepackage
您已拥有的指令。