SchoolWork-LaTeX/数理统计/平时作业/mypreamble.tex
423A35C7 5906ac1efc 重构目录层次
0-课程笔记
1-平时作业
2-实验报告
3-期末大作业
2024-09-02 18:32:58 +08:00

54 lines
1.5 KiB
TeX

\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{amssymb, amsfonts, amstext, amsmath, amsopn, amsthm}
\usepackage{booktabs}
\usepackage{bm}
\usepackage{pgfplots}
\usepackage{hyperref}
\usepackage{totpages}
\usepackage{mylatex}
\usepackage{subfiles}
\fancyfoot[C]{\thepage\quad\ref{TotPages}}
\renewcommand\thesection{\thechapter.\arabic{section}}
\renewcommand \thesubsection {\arabic{subsection}}
\renewcommand{\labelenumii}{(\arabic{enumii})}
\title{《数理统计》作业}
\author{岳锦鹏}
\newcommand{\mysignature}{10213903403 岳锦鹏}
\date{2024年2月27日——2024年6月18日}
\setlist[1]{listparindent=\parindent}
\setlist[2]{listparindent=\parindent}
\definecolor{shadecolor}{RGB}{204,232,207}
\def\myitem#1#2{
\item \text{#1}
\begin{enumerate}
#2
\end{enumerate}
}
\makeatletter
\newcommand*\xwidehat[2][0.75]{%
\sbox{\myboxA}{$\m@th#2$}%
\setbox\myboxB\null% Phantom box
\ht\myboxB=\ht\myboxA%
\dp\myboxB=\dp\myboxA%
\wd\myboxB=#1\wd\myboxA% Scale phantom
\sbox\myboxB{$\m@th\,\widehat{\copy\myboxB}\,$}% Overlined phantom
\setlength\mylenA{\the\wd\myboxA}% calc width diff
\addtolength\mylenA{-\the\wd\myboxB}%
\ifdim\wd\myboxB<\wd\myboxA%
\rlap{\hskip 0.5\mylenA\usebox\myboxB}{\usebox\myboxA}%
\else
\hskip -0.5\mylenA\rlap{\usebox\myboxA}{\hskip 0.5\mylenA\usebox\myboxB}%
\fi}
\makeatother
\let\kaishu\relax % 清除旧定义
\newCJKfontfamily\kaishu{KaiTi}[AutoFakeBold] % 重定义 \kaishu
\newcommand{\boldkai}[1]{{\bfseries\kaishu #1}}