这是我的代码,ucscthesisbs 文档类是我教授提供的模板,过去没有引起任何问题,我不确定如何将其包含在这个问题中,因为它太长而无法复制粘贴,这里有一个链接:文档类。错误信息如下:
\AB@maketitle...大写\expandafter{@campus}}\par\bigskip{\bfserie...l.19\maketitle
错误消息顶行末尾的控制序列从未被 \def 过。如果您拼错了它(例如,\hobx'), type
I')和正确的拼写(例如,`I\hbox')。否则继续,我会忘记未定义的任何东西。
\documentclass[11pt]{ucscthesisbs}
\bibliographystyle{apalike3.bst}
\usepackage{natbib}
\usepackage{graphicx,epsf}
\usepackage{pgfplots}
\usepackage{authblk}
\usepackage{booktabs}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage[section]{placeins}
\pgfplotsset{compat=1.18}
\begin{document}
\title{Optical Tweezers}
\author{Aila}
\affil{Rebecca, Aidan}
\maketitle
\begin{frontmatter}
\begin{abstract}
The basic principle behind optical tweezers is that the forces exerted by a laser can manipulate small objects. In this experiment we recorded the interactions and movements of a 0.99 $\mu m$ and 1.99 $\mu m$ diameter bead sample with a L658P040 laser diode.
\end{abstract}
\end{document}
答案1
假设你的课程与https://github.com/rschroder/ice_giant_thermal_evolution_thesis/tree/master,那么它需要宏
\campus
\degree
\field
\degreemonth
\degreeyear
在使用之前\maketitle
\documentclass[11pt]{ucscthesisbs}
\usepackage{authblk}
\begin{document}
\title{Optical Tweezers}
\author{Aila}
\affil{Rebecca, Aidan}
\campus{quack}
\degree{quack}
\field{quack}
\degreemonth{quack}
\degreeyear{quack}
\maketitle
\begin{frontmatter}
\begin{abstract}
The basic principle behind optical tweezers is that the forces exerted by a laser can manipulate small objects. In this experiment we recorded the interactions and movements of a 0.99 $\mu m$ and 1.99 $\mu m$ diameter bead sample with a L658P040 laser diode.
\end{abstract}
\end{frontmatter}
\end{document}