The University Physics Competition LaTex 模版
\documentclass{article}
\usepackage{fancyhdr}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage{lipsum}
\usepackage{biblatex} % 导入biblatex宏包
\usepackage{appendix} % 导入appendix宏包
\usepackage{listings}
\usepackage{geometry}
% 设置页面布局
\geometry{
left=3cm,
right=3cm,
top=3cm,
bottom=2cm,
}
\lstset{
language=Python,
numbers=left,
frame=single,
breaklines=true,
breakatwhitespace=false,
basicstyle=\small\ttfamily,
showspaces=false, % 显示空格
}
% 设置页眉页脚
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{Problem choose}
\fancyhead[C]{team number}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
% 设置标题格式
\titleformat{\section}{\normalfont\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\bfseries}{\thesubsection}{1em}{}
% 设置段落首行缩进
\setlength{\parindent}{2em}
\begin{document}
% 首页
\thispagestyle{fancy}
\pagenumbering{gobble} % 目录页不计入页码
\begin{center}
\textbf{TITLE}
\vspace{1em}
\textbf{Team Number}
\vspace{1em}
\textbf{Problem Choose}
\vspace{3em}
\centering{\textbf{{\fontsize{18}{14}\selectfont
Summary
}}}
\end{center}
\lipsum[1-2]
% 目录页
\newpage
\pagenumbering{gobble} % 目录页不计入页码
\tableofcontents
\thispagestyle{fancy}% 这行代码必须在\tableofcontents 下面
% 正文页
\newpage
\pagenumbering{arabic} % 正文页开始计入页码
\section{frist section}
{\fontsize{12}{14}\selectfont
\lipsum[1-5]\cite{ref1}
}
\subsection{frist frist}
\lipsum[1-5]\cite{ref2}
\section{second section}
\lipsum[1-5]
\newpage
\begin{thebibliography}{9}
\bibitem{ref1} Author A. Title of the paper. Journal name, year.
\bibitem{ref2} Author B. Title of the book. Publisher, year.
\end{thebibliography}
\newpage
\appendix % 标记后续部分为附录
\section*{Appendix}
This is the content of the appendix.
\begin{lstlisting}
# Python example
def hello_world():
print("Hello, World!")
print("Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!","Hello, World!")
hello_world() # call hello_world
\end{lstlisting}
\end{document}
竞赛常见问题
定轨问题
天体运行轨道
航天器运行轨道设计
天体定时与定位问题
航天器设计问题
行星科学问题
行星热力学问题
参考书目