SchoolWork-LaTeX/数据结构/作业/mypreamble.tex

76 lines
2.6 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\usepackage[margin=1in]{geometry}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{zhnumber} % change section number to chinese
% \usepackage{enumerate}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{environ} % 加了这个再\def\myitem就不报错了
\usepackage{hyperref}
\usepackage{mylatex}
% \usepackage{url}
% \PassOptionsToPackage{hyphens}{url}
% \usepackage{breakurl} // 这个包总是会报错,可能是和别的什么包冲突了,所以只能用传统的一大段文字的办法实现网址换行
\usepackage[outputdir=./latex-output]{minted}
\usepackage{subfiles}
\usepackage{totpages} % 不加这个会导致总页数出错
% \usepackage{pgfplots}
% \pgfmathsetmacro{\totalpages}{\totalpages+1}
% \setcounter{totalpages}{1}
\pagestyle{fancyplain}
\fancyhead{}
\fancyhead[C]{华东师范大学计算机科学与技术学院上机实践报告}
\fancyfoot[C]{\thepage\quad\ref{TotPages}}
\renewcommand\thesection{\zhnum{section}}
\renewcommand \thesubsection {\arabic{subsection}}
\setlist[1]{label=\zhnum{enumi}}
\setlist[2]{labelindent=-1em, leftmargin=*, label=\arabic{enumii}.\quad}
\setlist[3]{labelindent=1em, leftmargin=*, label=(\arabic{enumiii})}
\setminted{linenos=true, breaklines=true}
\newcommand{\mydate}{
2023/09/23
}
\newcommand{\mychapternum}{
1
}
\newcommand{\mytitle}{
\title{\fontsize{15}{0}华东师范大学计算机科学与技术学院上机实践报告\vspace{-2em}}
\date{}
\maketitle
\begin{longtable}[]{lll}
\toprule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
\textbf{课程名称}:数据结构 & \textbf{年级}2022级 &
\textbf{上机实践成绩} \\
\textbf{指导教师}:金健 & \textbf{姓名}:岳锦鹏 &
\textbf{上机实践时间}2学时 \\
\textbf{上机实践名称}:第\zhnumber{\mychapternum}章作业 & \textbf{学号}10213903403 &
\textbf{上机实践日期}\mydate \\
\end{longtable}
}
% \def\myitem#1#2{
% \item \textbf{#1}
% \begin{enumerate}
% #2
% \end{enumerate}
% }
% https://blog.csdn.net/u010801696/article/details/79477226
\def\UrlBreaks{\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J
\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V
\do\W\do\X\do\Y\do\Z\do\[\do\\\do\]\do\^\do\_\do\`\do\a\do\b
\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n
\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z
\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]\do\)\do\,
\do\?\do\'\do+\do\=\do\#}