今天当我编译 beamer 项目时,显示错误:
File `ucas.sty' not found. ^^M
然后我尝试在 macOS 12.4 中像这样安装 ucas 包,显示错误:
➜ ~ sudo tlmgr install ucas
tlmgr: package repository https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr install: package ucas not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
我该怎么做才能解决这个问题?这是 beamer 文件内容:
\documentclass{beamer}
\usepackage{ctex,hyperref}
\usepackage[T1]{fontenc}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,pstricks,listings,stackengine}
% packages and settings for bibtex
\usepackage[backend=bibtex,sorting=none]{biblatex}
\addbibresource{ref.bib}
\setbeamerfont{footnote}{size=\tiny} % footnote for bibtex
\setbeamertemplate{bibliography item}[text] % reference list for bibtex
\defbibheading{reference}{\section*{参考文献}} % heading for bibtex
\author[马时杰]{马时杰\\{\small [email protected]}}
\title{UCAS (CASIA) Beamer Theme}
\subtitle{毕业设计开题报告}
\institute{中国科学院自动化研究所}
%\date{2022年5月24日}
\date{\today}
\usepackage{ucas}
% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}
\lstset{
basicstyle=\ttfamily\small,
keywordstyle=\bfseries\color{deepblue},
emphstyle=\ttfamily\color{deepred}, % Custom highlighting style
stringstyle=\color{deepgreen},
numbers=left,
numberstyle=\small\color{halfgray},
rulesepcolor=\color{red!20!green!20!blue!20},
frame=shadowbox,
}
\begin{document}
\kaishu
% \begin{frame}
% \titlepage
% \begin{figure}[htpb]
% \begin{center}
% \includegraphics[width=0.2\linewidth]{fig/UCAS_logo.eps}
% \end{center}
% \end{figure}
% \end{frame}
\begin{frame}
\titlepage
\begin{figure}[htpb]
\begin{center}
\includegraphics[width=0.15\linewidth]{fig/UCAS_logo.eps}\quad\quad\quad\quad
\includegraphics[width=0.15\linewidth]{fig/CASIA_logo.png}
\end{center}
\end{figure}
\end{frame}
\begin{frame}
\tableofcontents[sectionstyle=show,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
\section{计划进度}
\begin{frame}
\begin{itemize}
\item 一月:完成文献调研
\item 二月:复现并评测各种Beamer主题美观程度
\item 三、四月:美化UCAS (CASIA) Beamer主题
\item 五月:论文撰写
\end{itemize}
\end{frame}
% \section{参考文献}
% \begin{frame}[allowframebreaks]
% %\bibliography{ref}
% \bibliographystyle{alpha}
% % 如果参考文献太多的话,可以像下面这样调整字体:
% % \tiny\bibliographystyle{alpha}
% \end{frame}
\begin{frame}{参考文献}
\printbibliography[heading=reference]
\end{frame}
\begin{frame}
\begin{center}
{\Huge\calligra Thanks!}
\end{center}
\end{frame}
\end{document}