├── .DS_Store ├── .gitignore ├── CN ├── Document-CN.pdf ├── Document-CN.tex ├── images │ └── google.png ├── matnoble-doc-cn.sty └── 无需配置字体 │ ├── Document-CN-fonts.pdf │ ├── Document-CN-fonts.tex │ ├── _minted-Document-CN-fonts │ ├── 03F9340E9C8BCA0AD1F256368B2EC9061CD4C17AD1028E4E8CBECFC6334E253B.pygtex │ ├── 0749B9E3C2B0B56BFAB95DE6FA2E1FA6993C9DCB065B525A1D73A8F3F0996DED.pygtex │ ├── 5BB16A077B1890164E20C3B746E9E98346731CB8D431A159D3727D999B5E3D00.pygtex │ ├── 6BC6AA90B80DBBE410D5BA12D0C3E928993C9DCB065B525A1D73A8F3F0996DED.pygtex │ ├── C711B320416CC5A6E07464DC80660DF9993C9DCB065B525A1D73A8F3F0996DED.pygtex │ ├── default-pyg-prefix.pygstyle │ └── emacs.pygstyle │ ├── images │ └── google.png │ └── matnoble-doc-cn-fonts.sty ├── EN ├── Document-EN.bbl ├── Document-EN.blg ├── Document-EN.pdf ├── Document-EN.tex ├── IEEEtran.cls ├── images │ └── logo.png ├── matnoble-doc-en.sty └── refe.bib ├── Example ├── .DS_Store └── 八一数学竞赛 │ ├── .DS_Store │ ├── M-competition.pdf │ ├── M-competition.tex │ ├── M-competition │ ├── page-01.jpg │ ├── page-02.jpg │ ├── page-03.jpg │ ├── page-04.jpg │ ├── page-05.jpg │ ├── page-06.jpg │ ├── page-07.jpg │ ├── page-08.jpg │ ├── page-09.jpg │ ├── page-10.jpg │ ├── page-11.jpg │ └── page-12.jpg │ ├── images │ ├── .DS_Store │ ├── logo.png │ ├── solution1.pdf │ └── solution2.pdf │ └── matnoble-doc-cn.sty ├── Images ├── Document-CN1.svg ├── Document-CN2.svg ├── Document-EN1.svg └── Document-EN2.svg ├── LICENSE ├── README.md ├── mini ├── .DS_Store ├── doc-mini.pdf ├── doc-mini.tex ├── images │ └── logo.png └── matnoble-doc-mini.sty └── table-test ├── images └── google.png ├── matnoble-doc-cn.sty ├── test.pdf ├── test.tex └── test.txt /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | 3 | *.aux 4 | 5 | *.out 6 | 7 | *.toc 8 | 9 | *.lol 10 | 11 | _minted-Document-EN/ 12 | 13 | _minted-Document-CN/ 14 | -------------------------------------------------------------------------------- /CN/Document-CN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/CN/Document-CN.pdf -------------------------------------------------------------------------------- /CN/Document-CN.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt, UTF8]{ctexart} 2 | \usepackage{matnoble-doc-cn} 3 | \begin{document} 4 | \title{\bf \LaTeX 中文文档模板} \author{\bf 5 | \href{https://matnoble.me/about/}{数学小兵儿}} \date{} 6 | 7 | \maketitle 8 | \tableofcontents 9 | \footnote{\noindent \createtext{2019 年 12 月 5 日} \newline 10 | \updatetext{\today}}. 11 | 12 | \clearpage 13 | \listoflistings 14 | 15 | \clearpage 16 | 17 | \section{随机文本} 18 | \zhlipsum[2-3] 19 | 20 | \clearpage 21 | 22 | \section{通常环境} 23 | 24 | \subsection{列表} 25 | 26 | \subsubsection{无序列表} 27 | \begin{itemize} 28 | \item Sth 29 | \item Sth 30 | \item $\cdots$ 31 | \end{itemize} 32 | \subsubsection{有序列表} 33 | \begin{enumerate} 34 | \item sth 35 | \item sth 36 | \item $\cdots$ 37 | \end{enumerate} 38 | 或者 39 | \begin{itemize} 40 | \item[(1)] Sth 41 | \item[(2)] Sth 42 | \item[(3)] $\cdots$ 43 | \end{itemize} 44 | 45 | \bigskip 46 | 47 | \noindent {\bf 使用 \autoref{mybox} 得到更漂亮列表环境 } 48 | 49 | \medskip 50 | 51 | \begin{mybox}{无序列表} 52 | \begin{itemize}[leftmargin = 10pt] 53 | \item Sth 54 | \item Sth 55 | \item $\cdots$ 56 | \end{itemize} 57 | \end{mybox} 58 | 59 | \begin{listing}[ht] 60 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 61 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 62 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 63 | 无序 64 | \begin{itemize} 65 | \item Sth 66 | \item Sth 67 | \item $\cdots$ 68 | \end{itemize} 69 | 有序 70 | \begin{enumerate} 71 | \item sth 72 | \item sth 73 | \item $\cdots$ 74 | \end{enumerate} 75 | 带边框 76 | \begin{mybox}{列表} 77 | \begin{itemize}[leftmargin = 10pt] 78 | \item Sth 79 | \item Sth 80 | \item $\cdots$ 81 | \end{itemize} 82 | \end{mybox} 83 | \end{minted} 84 | \caption{\em mybox} 85 | \label{mybox} 86 | \end{listing} 87 | 88 | \clearpage 89 | \subsection{表格} 90 | \begin{table}[ht] 91 | \centering 92 | \caption{\em 这是表格} 93 | \vskip 0.1in 94 | \label{table} 95 | \begin{tabular}{c|cccc} 96 | \hline 97 | \hline 98 | \rule{0pt}{3ex} 99 | 序号 & 姓名 & 年龄 & 学号 & 性别 100 | \rule[-1.2ex]{0pt}{0pt} \\\hline 101 | 001 & * & * & * & * \\ 102 | 002 & * & * & * & * \\ 103 | 003 & * & * & * & * \\ 104 | 004 & * & * & * & * \\ 105 | \hline 106 | \hline 107 | \end{tabular} 108 | \end{table} 109 | 110 | \begin{listing}[ht] 111 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 112 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 113 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 114 | \begin{table}[ht] 115 | \centering 116 | \caption{\em 这是表格} 117 | \vskip 0.1in 118 | \label{table} 119 | \begin{tabular}{c|cccc} 120 | \hline 121 | \hline 122 | \rule{0pt}{3ex} 123 | 序号 & 姓名 & 年龄 & 学号 & 性别 124 | \rule[-1.2ex]{0pt}{0pt} \\\hline 125 | 001 & * & * & * & * \\ 126 | 002 & * & * & * & * \\ 127 | 003 & * & * & * & * \\ 128 | 004 & * & * & * & * \\ 129 | \hline 130 | \hline 131 | \end{tabular} 132 | \end{table} 133 | \end{minted} 134 | \caption{\em 表格} 135 | \label{table} 136 | \end{listing} 137 | 138 | \clearpage 139 | \subsection{图} 140 | 141 | \subsubsection{单张图} 142 | \begin{figure}[H] 143 | \centering \includegraphics[width=0.15\textwidth]{google.png} 144 | \caption{\em 单张图} 145 | \label{fig:mesh} 146 | \end{figure} 147 | 148 | \subsubsection{两张图并列} 149 | \begin{figure}[H] 150 | \centering 151 | \begin{subfigure}{.48\textwidth} 152 | \centering 153 | % include first image 154 | \includegraphics[width=.3\linewidth]{google.png} 155 | \caption{\em 子图 1} 156 | \label{fig:v21} 157 | \end{subfigure} 158 | \begin{subfigure}{.48\textwidth} 159 | \centering 160 | % include second image 161 | \includegraphics[width=.3\linewidth]{google.png} 162 | \caption{\em 子图 2} 163 | \label{fig:v22} 164 | \end{subfigure} 165 | \caption{\em 并列两张图} 166 | \label{fig:v2} 167 | \end{figure} 168 | 169 | \begin{listing}[ht] 170 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 171 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 172 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 173 | \begin{figure}[H] 174 | \centering 175 | \begin{subfigure}{.48\textwidth} 176 | \centering 177 | \includegraphics[width=.5\linewidth]{google.png} 178 | \caption{\em 子图 1} 179 | \label{fig:v21} 180 | \end{subfigure} 181 | \begin{subfigure}{.48\textwidth} 182 | \centering 183 | \includegraphics[width=.5\linewidth]{google.png} 184 | \caption{\em 子图 2} 185 | \label{fig:v22} 186 | \end{subfigure} 187 | \caption{\em 并列两张图} 188 | \label{fig:v2} 189 | \end{figure} 190 | \end{minted} 191 | \caption{\em 并列图} 192 | \label{subfigure} 193 | \end{listing} 194 | 195 | \clearpage 196 | 197 | \section{定理类环境} 198 | \begin{defn}{}{} 199 | 200 | \end{defn} 201 | 202 | \begin{lem}{}{} 203 | 204 | \end{lem} 205 | 206 | \begin{thm}{}{} 207 | \begin{case} 208 | 209 | \end{case} 210 | \begin{case} 211 | 212 | \end{case} 213 | \end{thm} 214 | 215 | \begin{rem} 216 | 217 | \end{rem} 218 | 219 | \begin{cor}{}{} 220 | 221 | \end{cor} 222 | 223 | \begin{exa} 224 | 225 | \end{exa} 226 | 227 | \begin{proof} 228 | 229 | \end{proof} 230 | 231 | \clearpage 232 | \section{数学公式} 233 | 234 | \begin{itemize} 235 | \item 积分符号使用 $\backslash$dif 236 | 237 | \[ 238 | \int x^{2} \dif x 239 | \] 240 | 241 | \item 为证 $a = b$, 需要证明 242 | 243 | {\bf 无标号} 244 | \[ 245 | a < b + \epsilon \wedge b < a + \epsilon. 246 | \] 247 | 248 | {\bf 有标号} 249 | \begin{equation} 250 | \label{eq:1} 251 | a < b + \epsilon \land b < a + \epsilon. 252 | \end{equation} 253 | 254 | \item PNP/Stokes 方程组 255 | \begin{empheq}[left=\empheqlbrace]{align} 256 | & \partial_{t} - \nabla\cdot[D_{i}(\nabla C_{i} + q_{i} \nabla 257 | \Phi C_{i}) - \bmu C_{i}] = F_{i}, 258 | \\[3pt] 259 | & -\nabla \cdot (\epsilon \nabla \Phi) = (C_{1} - C_{2}) + F_{3}, 260 | \\[3pt] 261 | & \partial_{t}\bmu - \Delta \bmu + \nabla p = -(C_{1} - 262 | C_{2})\nabla \Phi + F_{4}, 263 | \\[3pt] 264 | & \nabla \cdot \bmu = 0. 265 | \end{empheq} 266 | 267 | \item 带虚线的矩阵 268 | 269 | \[ 270 | \left[ 271 | \begin{array}{c;{2pt/2pt}c} 272 | \begin{matrix} 273 | 1 & 12 & 3 & 8 \\ 274 | 14 & 5 & 16 &21\\ 275 | 7 & 18 & 9 &7 \\ \hdashline[2pt/2pt] 276 | 23 & 0 & -1 &8\\ 277 | \end{matrix} & 278 | \begin{matrix} 279 | 1 & 4 \\ 280 | 2 & 5 \\ 281 | 3 & 6 \\ \hdashline[2pt/2pt] 282 | 13 & 26 \\ 283 | \end{matrix} 284 | \end{array} 285 | \right] 286 | \] 287 | 288 | \item 分块矩阵 289 | 290 | \[ 291 | \begin{bmatrix} 292 | \begin{array}{c | c} 293 | \boldsymbol{A} & \bm{\beta} \\ \hline 294 | \bm{\alpha}^{\mathsf T} & 0 295 | \end{array} 296 | \end{bmatrix} 297 | \] 298 | 299 | \end{itemize} 300 | 301 | \S 更多相关知识请访问 \href{https://matnoble.me/series/latex/}{\LaTeX{} 排版“冷”知识} 302 | 303 | \clearpage 304 | \begin{thebibliography}{99} 305 | \bibitem{1} 306 | \bibitem{2} 307 | \bibitem{3} 308 | \end{thebibliography} 309 | 310 | \clearpage 311 | 312 | \begin{appendices} 313 | \section{代码} 314 | \begin{listing}[ht] 315 | \begin{minted}[ frame=single, framesep=2mm, 316 | baselinestretch=1.2, bgcolor=MaterialBlue50, 317 | rulecolor=MaterialBlue, fontsize=\footnotesize, 318 | linenos, mathescape, autogobble ]{python} 319 | import matplotlib.pyplot as plt import numpy as np 320 | 321 | plt.figure(num = 1, figsize=(8, 6)) n = 322 | np.linspace(1,100,100) plt.plot(n, 1/n, 'bx') 323 | plt.xlabel(r'$ n $') plt.ylabel(r'$ \frac{1}{n} $') 324 | 325 | plt.figure(num = 2, figsize=(8, 6)) n = 326 | np.linspace(1,100,100) plt.plot(n, np.sin(n)/n, 'bx') 327 | plt.xlabel(r'$ n $') 328 | plt.ylabel(r'$ \frac{\sin(n)}{n} $') 329 | 330 | plt.show() 331 | \end{minted} 332 | \caption{\em Python} 333 | \end{listing} 334 | 335 | \begin{listing}[ht] 336 | \begin{minted}[ frame=single, framesep=2mm, 337 | baselinestretch=1.2, bgcolor=MaterialBlue50, 338 | rulecolor=MaterialBlue, fontsize=\footnotesize, 339 | linenos, mathescape, autogobble, breaklines ]{matlab} 340 | figure() plot(XX,YY,'k-'),hold on plot(XX',YY','k-'), 341 | hold on B= plot(boundary(3,:), boundary(4,:), 'b.', 342 | 'markersize', 25); hold on I = plot(index(:,1), 343 | index(:,2), 'r.', 'markersize',25); hold off axis 344 | equal set(gca,'xtick',[],'ytick',[]) xlim(X) ylim(Y) 345 | set(gca,'looseInset',[0 0.01 0 0.01]) h = legend([B, 346 | I], 'boundary nodes', 'inside nodes', 347 | 'Location','bestoutside'); set(h, 'Fontsize', 10) 348 | \end{minted} 349 | \caption{\em Matlab} 350 | \end{listing} 351 | \end{appendices} 352 | 353 | \end{document} 354 | -------------------------------------------------------------------------------- /CN/images/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/CN/images/google.png -------------------------------------------------------------------------------- /CN/matnoble-doc-cn.sty: -------------------------------------------------------------------------------- 1 | % 2 | % 个人自用文档样式 3 | % 4 | \ProvidesPackage{matnoble-doc-cn}[2020/07/08 v1.4] 5 | %% Blog 6 | % https://matnoble.me 7 | %% Gmail 8 | % hustmatnoble@gmail.com 9 | %% GitHub 10 | % https://github.com/MatNoble 11 | 12 | \usepackage[T1]{fontenc} 13 | 14 | %================================== 设置中文字体 ===========================% 15 | % 将系统字体名映射为逻辑字体名称, 主要是为了维护的方便 16 | \newcommand\fontnamesong{Source Han Serif SC} 17 | \newcommand\fontnamehei{Source Han Sans SC} 18 | \newcommand\fontnamemono{Source Han Sans SC} 19 | \newcommand\fontnamekai{KaiTi} 20 | \setCJKmainfont[Mapping = fullwidth-stop,BoldFont=\fontnamehei]{\fontnamesong} % 设置 CJK 正文字体 衬线字体 21 | \setCJKsansfont[BoldFont=\fontnamehei]{\fontnamekai} % 设置 CJK 无衬线的字体 22 | \setCJKmonofont{\fontnamemono} % 设置 CJK 的等宽字体 23 | %================================== 设置中文字体 ===========================% 24 | 25 | % ================================= 设置英文字体 ===========================% 26 | \usepackage{fontspec} 27 | \setmainfont{Times New Roman} % 西文默认衬线字体(serif) 28 | \setsansfont{Helvetica} % 西文默认无衬线字体(sans serif), Windows 下可使用类似的 Arial 字体, 29 | \setmonofont{Courier New} % 西文默认的等宽字体 30 | % ================================= 设置英文字体 ===========================% 31 | 32 | % 开明式 标点 33 | \punctstyle{kaiming} 34 | 35 | \setCJKfamilyfont{adhei}{Source Han Sans SC} % 开源的思源黑体 36 | \newcommand{\adheiti}{\CJKfamily{adhei}} 37 | \setCJKfamilyfont{adkai}{KaiTi} 38 | \newcommand{\adkaiti}{\CJKfamily{adkai}} 39 | 40 | \usepackage{amsmath,amsthm,amsfonts,amssymb,bm} 41 | 42 | % 自定义公式字体 43 | % \usepackage{mathptmx} % 打印 44 | \usepackage{charter} % 屏读 45 | % \usepackage{fourier} 46 | 47 | \RequirePackage{calrsfs, wasysym, verbatim, graphicx, geometry, empheq} 48 | \RequirePackage[nottoc]{tocbibind} 49 | %% 长表格 50 | \RequirePackage{longtable} 51 | %% booktabs 提供了\toprule 等命令. 52 | \RequirePackage{booktabs} 53 | %% multirow 支持在表格中跨行 54 | \RequirePackage{multirow} 55 | %% 调整间隔, 让表格更好看些 56 | \RequirePackage{bigstrut} 57 | %% 在跨行表格中输入定界符 58 | \RequirePackage{bigdelim} 59 | % 首行缩进 60 | \RequirePackage{indentfirst} 61 | % 设置浮动体的标题 62 | \RequirePackage{subcaption} 63 | \RequirePackage{hyperref} 64 | % 页眉页脚 65 | \RequirePackage{fancyhdr} 66 | % item 67 | \RequirePackage{enumitem} 68 | \RequirePackage{anysize} 69 | % 中文随机文本 70 | \RequirePackage{zhlipsum} 71 | % 矩阵中虚线 72 | \RequirePackage{arydshln} 73 | 74 | 75 | % 调色板 76 | \RequirePackage{xcolor-material} 77 | \colorlet{PrimaryColor}{GoogleBlue} 78 | % 代码提示 79 | \RequirePackage{listings} 80 | % 更加现代定理、引用提示 81 | \RequirePackage{tcolorbox} 82 | % 书签 83 | \RequirePackage[open, openlevel=2, atend]{bookmark} 84 | % 链接 85 | \RequirePackage{hyperref} 86 | % 选项相关 87 | \RequirePackage{xkeyval} 88 | \RequirePackage[title,titletoc]{appendix} 89 | % 代码提示 90 | \RequirePackage{listings} 91 | %%% 代码高亮设置 %%% 92 | \tcbuselibrary{listings} 93 | % 代码高亮 94 | \RequirePackage{minted} 95 | \usemintedstyle{emacs} 96 | \renewcommand\listoflistingscaption{源码列表} 97 | 98 | % 页面边距 99 | \geometry{tmargin=.75in, bmargin=.75in, lmargin=.75in, rmargin = .75in} 100 | 101 | % 行距 102 | \RequirePackage{setspace} 103 | \setstretch{1.38} 104 | 105 | \RequirePackage{tcolorbox} 106 | %%% tcolorbox %%% 107 | \tcbuselibrary{theorems} 108 | \tcbuselibrary{skins} 109 | \tcbsetforeverylayer{enhanced} 110 | \newtcolorbox{mybox}[2][]{colbacktitle=red!10!white, colback=blue!10!white,coltitle=red!70!black, title={#2},fonttitle=\bfseries,#1} 111 | 112 | % caption 113 | \RequirePackage[font=small, labelfont={bf, color=PrimaryColor}]{caption} 114 | \DeclareCaptionFont{kai}{\normalsize \adkaiti} 115 | \captionsetup{labelsep=quad} 116 | \captionsetup{font={kai,singlespacing}} 117 | \captionsetup[figure]{position=bottom,skip={2pt}} 118 | \captionsetup[table]{position=top,skip={2pt}} 119 | 120 | \allowdisplaybreaks 121 | \textwidth 6.3in \textheight 9in 122 | \topmargin -0.4in 123 | \oddsidemargin 0.1in \evensidemargin 0.0in 124 | 125 | % 中文断行 126 | \XeTeXlinebreaklocale "zh" 127 | \XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt 128 | 129 | % % 中文句号改为英文句点 130 | % \catcode`\。=\active 131 | % \newcommand{。}{\ifmmode\text{.}\else .\fi} 132 | 133 | % Section 居中 134 | % \CTEXsetup[format={\Large\bfseries}]{section} 135 | %%% CTEX格式设置 %% 136 | \ctexset{ 137 | today=small, 138 | contentsname={文章导航}, 139 | section/format=\Large\bfseries\centering\color{PrimaryColor}, 140 | % subsection/number={\textcolor{MaterialBlue900}{\thesubsection}}, 141 | } 142 | %%% 页眉页脚设置 %%% 143 | \pagestyle{fancy} 144 | \fancyhead[L]{\textcolor{PrimaryColor}{\leftmark}} 145 | \fancyhead[C]{\textcolor{PrimaryColor}{第\zhnumber{\thepage}页}} 146 | \fancyhead[R]{\textcolor{PrimaryColor}{\rightmark}} 147 | \fancyfoot{} 148 | \renewcommand{\headrule}{\color{PrimaryColor}\hrule width\textwidth height\headrulewidth\hfill} 149 | \renewcommand{\headrulewidth}{1.2pt} 150 | \renewcommand{\footrulewidth}{0pt} 151 | 152 | \newtheoremstyle{plain}{3pt}{3pt}{\itshape}{}{\color{PrimaryColor}\bfseries}{}{0.5em}{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} 153 | 154 | \fancypagestyle{plain} 155 | { 156 | \renewcommand{\headrulewidth}{0pt}% 157 | \renewcommand{\headrule}{\hrule height\headrulewidth\hfill} 158 | \fancyhf{}% 159 | % \fancyfoot[C]{\footnotesize \textcolor{MaterialGrey}{\thepage}}% 160 | } 161 | 162 | % 关于图片 graphicx 163 | % 如果图片没有指定后缀, 依次按下列顺序搜索 164 | \DeclareGraphicsExtensions{.eps,.pdf,.jpg,.png} 165 | % 设置图表搜索路径, 可以给图表文件夹取如下名字 166 | \graphicspath{{figures/}{figure/}{pictures/}% 167 | {picture/}{pic/}{pics/}{image/}{images/}} 168 | 169 | %%% 链接设置 %%% 170 | \hypersetup{ 171 | colorlinks=true, 172 | linkcolor=GoogleRed, 173 | urlcolor=GoogleBlue, 174 | filecolor=GoogleGreen, 175 | } 176 | 177 | \newtheoremstyle{thmm}{1.5ex plus 1ex minus .2ex}{1.5ex plus 1ex minus 178 | .2ex}{\rmfamily}{}{\bfseries}{}{1em}{} 179 | \theoremstyle{thmm} 180 | \newtcbtheorem[number within=section]{thm}{\bf 定理}{ 181 | boxrule=0.1mm, 182 | before upper={\parindent2em}, 183 | colback=MaterialGreen50, 184 | colframe=GoogleGreen, 185 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 186 | boxed title style={colback=GoogleGreen} 187 | }{} 188 | \newtcbtheorem[number within=section]{lem}{\bf 引理}{ 189 | boxrule=0.1mm, 190 | before upper={\parindent2em}, 191 | colback=MaterialYellow50, 192 | colframe=GoogleYellow, 193 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 194 | boxed title style={colback=GoogleYellow} 195 | }{} 196 | \newtcbtheorem[number within=section]{cor}{\bf 推论}{ 197 | boxrule=0.1mm, 198 | before upper={\parindent2em}, 199 | colback=MaterialRed50, 200 | colframe=GoogleRed, 201 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 202 | boxed title style={colback=GoogleRed} 203 | }{} 204 | \theoremstyle{definition} % 205 | \newtcbtheorem[number within=section]{defn}{\bf 定义}{ 206 | boxrule=0.1mm, 207 | before upper={\parindent2em}, 208 | colback=MaterialBlue50, 209 | colframe=GoogleBlue, 210 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 211 | boxed title style={colback=GoogleBlue} 212 | }{} 213 | \newtheorem{exa}{\bf 例题}[section] 214 | \theoremstyle{remark} 215 | \newtheorem{rem}{\bf 记号}[section] 216 | \newtheorem*{note}{Note} 217 | \newtheorem{case}{\bf 情形} 218 | 219 | \renewenvironment{proof}[1][Proof]{\noindent\textit{#1. } }{\hfill$\square$} 220 | \def \endproof{\hspace{2pt}\vrule height8pt width 5pt depth 0pt} 221 | \def\refe#1{(\ref{#1})} 222 | \def\proof{\noindent{\bf 证明.}\hskip2mm} 223 | 224 | 225 | % 引入脚注的包 226 | \RequirePackage[marginal]{footmisc} 227 | \renewcommand{\thefootnote}{} 228 | \newcommand\createtext{创建于: }% 229 | \newcommand\updatetext{更新于: }% 230 | 231 | %%% 代码高亮设置 %%% 232 | \tcbuselibrary{listings} 233 | 234 | \lstset{ 235 | frame=single, 236 | frameround=tttt, 237 | framesep=1pt, 238 | framextopmargin=6pt, 239 | framexbottommargin=6pt, 240 | tabsize=4, 241 | breaklines=true, 242 | upquote=true, 243 | captionpos=b, 244 | basicstyle=\footnotesize, 245 | backgroundcolor=\color{MaterialBlue50}, 246 | rulecolor=\color{MaterialBlue}, 247 | identifierstyle=\color{MaterialBlue800}, 248 | commentstyle=\itshape\color{MaterialGreen700}, 249 | stringstyle=\bfseries\color{MaterialAmber800}, 250 | keywordstyle=\bfseries\color{MaterialPurple700}, 251 | numberstyle=\bfseries\color{MaterialGrey800}, 252 | } 253 | 254 | % 公式 255 | \newcommand*{\dif}{\mathop{}\!\mathrm{d}} 256 | 257 | % mathbb 258 | \newcommand{\bba}{\mathbb{a}} 259 | \newcommand{\bbb}{\mathbb{b}} 260 | \newcommand{\bbc}{\mathbb{c}} 261 | \newcommand{\bbd}{\mathbb{d}} 262 | \newcommand{\bbe}{\mathbb{e}} 263 | \newcommand{\bbf}{\mathbb{f}} 264 | \newcommand{\bbg}{\mathbb{g}} 265 | \newcommand{\bbh}{\mathbb{h}} 266 | \newcommand{\bbi}{\mathbb{i}} 267 | \newcommand{\bbj}{\mathbb{j}} 268 | \newcommand{\bbk}{\mathbb{k}} 269 | \newcommand{\bbl}{\mathbb{l}} 270 | \newcommand{\bbm}{\mathbb{m}} 271 | \newcommand{\bbn}{\mathbb{n}} 272 | \newcommand{\bbo}{\mathbb{o}} 273 | \newcommand{\bbp}{\mathbb{p}} 274 | \newcommand{\bbq}{\mathbb{q}} 275 | \newcommand{\bbr}{\mathbb{r}} 276 | \newcommand{\bbs}{\mathbb{s}} 277 | \newcommand{\bbt}{\mathbb{t}} 278 | \newcommand{\bbu}{\mathbb{u}} 279 | \newcommand{\bbv}{\mathbb{v}} 280 | \newcommand{\bbw}{\mathbb{w}} 281 | \newcommand{\bbx}{\mathbb{x}} 282 | \newcommand{\bby}{\mathbb{y}} 283 | \newcommand{\bbz}{\mathbb{z}} 284 | \newcommand{\bbA}{\mathbb{A}} 285 | \newcommand{\bbB}{\mathbb{B}} 286 | \newcommand{\bbC}{\mathbb{C}} 287 | \newcommand{\bbD}{\mathbb{D}} 288 | \newcommand{\bbE}{\mathbb{E}} 289 | \newcommand{\bbF}{\mathbb{F}} 290 | \newcommand{\bbG}{\mathbb{G}} 291 | \newcommand{\bbH}{\mathbb{H}} 292 | \newcommand{\bbI}{\mathbb{I}} 293 | \newcommand{\bbJ}{\mathbb{J}} 294 | \newcommand{\bbK}{\mathbb{K}} 295 | \newcommand{\bbL}{\mathbb{L}} 296 | \newcommand{\bbM}{\mathbb{M}} 297 | \newcommand{\bbN}{\mathbb{N}} 298 | \newcommand{\bbO}{\mathbb{O}} 299 | \newcommand{\bbP}{\mathbb{P}} 300 | \newcommand{\bbQ}{\mathbb{Q}} 301 | \newcommand{\bbR}{\mathbb{R}} 302 | \newcommand{\bbS}{\mathbb{S}} 303 | \newcommand{\bbT}{\mathbb{T}} 304 | \newcommand{\bbU}{\mathbb{U}} 305 | \newcommand{\bbV}{\mathbb{V}} 306 | \newcommand{\bbW}{\mathbb{W}} 307 | \newcommand{\bbX}{\mathbb{X}} 308 | \newcommand{\bbY}{\mathbb{Y}} 309 | \newcommand{\bbZ}{\mathbb{Z}} 310 | 311 | % mathbf 312 | \newcommand{\bfa}{\mathbf{a}} 313 | \newcommand{\bfb}{\mathbf{b}} 314 | \newcommand{\bfc}{\mathbf{c}} 315 | \newcommand{\bfd}{\mathbf{d}} 316 | \newcommand{\bfe}{\mathbf{e}} 317 | \newcommand{\bff}{\mathbf{f}} 318 | \newcommand{\bfg}{\mathbf{g}} 319 | \newcommand{\bfh}{\mathbf{h}} 320 | \newcommand{\bfi}{\mathbf{i}} 321 | \newcommand{\bfj}{\mathbf{j}} 322 | \newcommand{\bfk}{\mathbf{k}} 323 | \newcommand{\bfl}{\mathbf{l}} 324 | \newcommand{\bfm}{\mathbf{m}} 325 | \newcommand{\bfn}{\mathbf{n}} 326 | \newcommand{\bfo}{\mathbf{o}} 327 | \newcommand{\bfp}{\mathbf{p}} 328 | \newcommand{\bfq}{\mathbf{q}} 329 | \newcommand{\bfr}{\mathbf{r}} 330 | \newcommand{\bfs}{\mathbf{s}} 331 | \newcommand{\bft}{\mathbf{t}} 332 | \newcommand{\bfu}{\mathbf{u}} 333 | \newcommand{\bfv}{\mathbf{v}} 334 | \newcommand{\bfw}{\mathbf{w}} 335 | \newcommand{\bfx}{\mathbf{x}} 336 | \newcommand{\bfy}{\mathbf{y}} 337 | \newcommand{\bfz}{\mathbf{z}} 338 | \newcommand{\bfA}{\mathbf{A}} 339 | \newcommand{\bfB}{\mathbf{B}} 340 | \newcommand{\bfC}{\mathbf{C}} 341 | \newcommand{\bfD}{\mathbf{D}} 342 | \newcommand{\bfE}{\mathbf{E}} 343 | \newcommand{\bfF}{\mathbf{F}} 344 | \newcommand{\bfG}{\mathbf{G}} 345 | \newcommand{\bfH}{\mathbf{H}} 346 | \newcommand{\bfI}{\mathbf{I}} 347 | \newcommand{\bfJ}{\mathbf{J}} 348 | \newcommand{\bfK}{\mathbf{K}} 349 | \newcommand{\bfL}{\mathbf{L}} 350 | \newcommand{\bfM}{\mathbf{M}} 351 | \newcommand{\bfN}{\mathbf{N}} 352 | \newcommand{\bfO}{\mathbf{O}} 353 | \newcommand{\bfP}{\mathbf{P}} 354 | \newcommand{\bfQ}{\mathbf{Q}} 355 | \newcommand{\bfR}{\mathbf{R}} 356 | \newcommand{\bfS}{\mathbf{S}} 357 | \newcommand{\bfT}{\mathbf{T}} 358 | \newcommand{\bfU}{\mathbf{U}} 359 | \newcommand{\bfV}{\mathbf{V}} 360 | \newcommand{\bfW}{\mathbf{W}} 361 | \newcommand{\bfX}{\mathbf{X}} 362 | \newcommand{\bfY}{\mathbf{Y}} 363 | \newcommand{\bfZ}{\mathbf{Z}} 364 | 365 | % mathbfit (bm) 366 | \newcommand{\bma}{\bm{a}} 367 | \newcommand{\bmb}{\bm{b}} 368 | \newcommand{\bmc}{\bm{c}} 369 | \newcommand{\bmd}{\bm{d}} 370 | \newcommand{\bme}{\bm{e}} 371 | \newcommand{\bmf}{\bm{f}} 372 | \newcommand{\bmg}{\bm{g}} 373 | \newcommand{\bmh}{\bm{h}} 374 | \newcommand{\bmi}{\bm{i}} 375 | \newcommand{\bmj}{\bm{j}} 376 | \newcommand{\bmk}{\bm{k}} 377 | \newcommand{\bml}{\bm{l}} 378 | \newcommand{\bmm}{\bm{m}} 379 | \newcommand{\bmn}{\bm{n}} 380 | \newcommand{\bmo}{\bm{o}} 381 | \newcommand{\bmp}{\bm{p}} 382 | \newcommand{\bmq}{\bm{q}} 383 | \newcommand{\bmr}{\bm{r}} 384 | \newcommand{\bms}{\bm{s}} 385 | \newcommand{\bmt}{\bm{t}} 386 | \newcommand{\bmu}{\bm{u}} 387 | \newcommand{\bmv}{\bm{v}} 388 | \newcommand{\bmw}{\bm{w}} 389 | \newcommand{\bmx}{\bm{x}} 390 | \newcommand{\bmy}{\bm{y}} 391 | \newcommand{\bmz}{\bm{z}} 392 | \newcommand{\bmA}{\bm{A}} 393 | \newcommand{\bmB}{\bm{B}} 394 | \newcommand{\bmC}{\bm{C}} 395 | \newcommand{\bmD}{\bm{D}} 396 | \newcommand{\bmE}{\bm{E}} 397 | \newcommand{\bmF}{\bm{F}} 398 | \newcommand{\bmG}{\bm{G}} 399 | \newcommand{\bmH}{\bm{H}} 400 | \newcommand{\bmI}{\bm{I}} 401 | \newcommand{\bmJ}{\bm{J}} 402 | \newcommand{\bmK}{\bm{K}} 403 | \newcommand{\bmL}{\bm{L}} 404 | \newcommand{\bmM}{\bm{M}} 405 | \newcommand{\bmN}{\bm{N}} 406 | \newcommand{\bmO}{\bm{O}} 407 | \newcommand{\bmP}{\bm{P}} 408 | \newcommand{\bmQ}{\bm{Q}} 409 | \newcommand{\bmR}{\bm{R}} 410 | \newcommand{\bmS}{\bm{S}} 411 | \newcommand{\bmT}{\bm{T}} 412 | \newcommand{\bmU}{\bm{U}} 413 | \newcommand{\bmV}{\bm{V}} 414 | \newcommand{\bmW}{\bm{W}} 415 | \newcommand{\bmX}{\bm{X}} 416 | \newcommand{\bmY}{\bm{Y}} 417 | \newcommand{\bmZ}{\bm{Z}} 418 | 419 | % mathcal 420 | \newcommand{\calA}{\mathcal{A}} 421 | \newcommand{\calB}{\mathcal{B}} 422 | \newcommand{\calC}{\mathcal{C}} 423 | \newcommand{\calD}{\mathcal{D}} 424 | \newcommand{\calE}{\mathcal{E}} 425 | \newcommand{\calF}{\mathcal{F}} 426 | \newcommand{\calG}{\mathcal{G}} 427 | \newcommand{\calH}{\mathcal{H}} 428 | \newcommand{\calI}{\mathcal{I}} 429 | \newcommand{\calJ}{\mathcal{J}} 430 | \newcommand{\calK}{\mathcal{K}} 431 | \newcommand{\calL}{\mathcal{L}} 432 | \newcommand{\calM}{\mathcal{M}} 433 | \newcommand{\calN}{\mathcal{N}} 434 | \newcommand{\calO}{\mathcal{O}} 435 | \newcommand{\calP}{\mathcal{P}} 436 | \newcommand{\calQ}{\mathcal{Q}} 437 | \newcommand{\calR}{\mathcal{R}} 438 | \newcommand{\calS}{\mathcal{S}} 439 | \newcommand{\calT}{\mathcal{T}} 440 | \newcommand{\calU}{\mathcal{U}} 441 | \newcommand{\calV}{\mathcal{V}} 442 | \newcommand{\calW}{\mathcal{W}} 443 | \newcommand{\calX}{\mathcal{X}} 444 | \newcommand{\calY}{\mathcal{Y}} 445 | \newcommand{\calZ}{\mathcal{Z}} 446 | 447 | % mathfrak 448 | \newcommand{\fraka}{\mathfrak{a}} 449 | \newcommand{\frakb}{\mathfrak{b}} 450 | \newcommand{\frakc}{\mathfrak{c}} 451 | \newcommand{\frakd}{\mathfrak{d}} 452 | \newcommand{\frake}{\mathfrak{e}} 453 | \newcommand{\frakf}{\mathfrak{f}} 454 | \newcommand{\frakg}{\mathfrak{g}} 455 | \newcommand{\frakh}{\mathfrak{h}} 456 | \newcommand{\fraki}{\mathfrak{i}} 457 | \newcommand{\frakj}{\mathfrak{j}} 458 | \newcommand{\frakk}{\mathfrak{k}} 459 | \newcommand{\frakl}{\mathfrak{l}} 460 | \newcommand{\frakm}{\mathfrak{m}} 461 | \newcommand{\frakn}{\mathfrak{n}} 462 | \newcommand{\frako}{\mathfrak{o}} 463 | \newcommand{\frakp}{\mathfrak{p}} 464 | \newcommand{\frakq}{\mathfrak{q}} 465 | \newcommand{\frakr}{\mathfrak{r}} 466 | \newcommand{\fraks}{\mathfrak{s}} 467 | \newcommand{\frakt}{\mathfrak{t}} 468 | \newcommand{\fraku}{\mathfrak{u}} 469 | \newcommand{\frakv}{\mathfrak{v}} 470 | \newcommand{\frakw}{\mathfrak{w}} 471 | \newcommand{\frakx}{\mathfrak{x}} 472 | \newcommand{\fraky}{\mathfrak{y}} 473 | \newcommand{\frakz}{\mathfrak{z}} 474 | \newcommand{\frakA}{\mathfrak{A}} 475 | \newcommand{\frakB}{\mathfrak{B}} 476 | \newcommand{\frakC}{\mathfrak{C}} 477 | \newcommand{\frakD}{\mathfrak{D}} 478 | \newcommand{\frakE}{\mathfrak{E}} 479 | \newcommand{\frakF}{\mathfrak{F}} 480 | \newcommand{\frakG}{\mathfrak{G}} 481 | \newcommand{\frakH}{\mathfrak{H}} 482 | \newcommand{\frakI}{\mathfrak{I}} 483 | \newcommand{\frakJ}{\mathfrak{J}} 484 | \newcommand{\frakK}{\mathfrak{K}} 485 | \newcommand{\frakL}{\mathfrak{L}} 486 | \newcommand{\frakM}{\mathfrak{M}} 487 | \newcommand{\frakN}{\mathfrak{N}} 488 | \newcommand{\frakO}{\mathfrak{O}} 489 | \newcommand{\frakP}{\mathfrak{P}} 490 | \newcommand{\frakQ}{\mathfrak{Q}} 491 | \newcommand{\frakR}{\mathfrak{R}} 492 | \newcommand{\frakS}{\mathfrak{S}} 493 | \newcommand{\frakT}{\mathfrak{T}} 494 | \newcommand{\frakU}{\mathfrak{U}} 495 | \newcommand{\frakV}{\mathfrak{V}} 496 | \newcommand{\frakW}{\mathfrak{W}} 497 | \newcommand{\frakX}{\mathfrak{X}} 498 | \newcommand{\frakY}{\mathfrak{Y}} 499 | \newcommand{\frakZ}{\mathfrak{Z}} 500 | 501 | % mathrm 502 | \newcommand{\rma}{\mathrm{a}} 503 | \newcommand{\rmb}{\mathrm{b}} 504 | \newcommand{\rmc}{\mathrm{c}} 505 | \newcommand{\rmd}{\mathrm{d}} 506 | \newcommand{\rme}{\mathrm{e}} 507 | \newcommand{\rmf}{\mathrm{f}} 508 | \newcommand{\rmg}{\mathrm{g}} 509 | \newcommand{\rmh}{\mathrm{h}} 510 | \newcommand{\rmi}{\mathrm{i}} 511 | \newcommand{\rmj}{\mathrm{j}} 512 | \newcommand{\rmk}{\mathrm{k}} 513 | \newcommand{\rml}{\mathrm{l}} 514 | \newcommand{\rmm}{\mathrm{m}} 515 | \newcommand{\rmn}{\mathrm{n}} 516 | \newcommand{\rmo}{\mathrm{o}} 517 | \newcommand{\rmp}{\mathrm{p}} 518 | \newcommand{\rmq}{\mathrm{q}} 519 | \newcommand{\rmr}{\mathrm{r}} 520 | \newcommand{\rms}{\mathrm{s}} 521 | \newcommand{\rmt}{\mathrm{t}} 522 | \newcommand{\rmu}{\mathrm{u}} 523 | \newcommand{\rmv}{\mathrm{v}} 524 | \newcommand{\rmw}{\mathrm{w}} 525 | \newcommand{\rmx}{\mathrm{x}} 526 | \newcommand{\rmy}{\mathrm{y}} 527 | \newcommand{\rmz}{\mathrm{z}} 528 | \newcommand{\rmA}{\mathrm{A}} 529 | \newcommand{\rmB}{\mathrm{B}} 530 | \newcommand{\rmC}{\mathrm{C}} 531 | \newcommand{\rmD}{\mathrm{D}} 532 | \newcommand{\rmE}{\mathrm{E}} 533 | \newcommand{\rmF}{\mathrm{F}} 534 | \newcommand{\rmG}{\mathrm{G}} 535 | \newcommand{\rmH}{\mathrm{H}} 536 | \newcommand{\rmI}{\mathrm{I}} 537 | \newcommand{\rmJ}{\mathrm{J}} 538 | \newcommand{\rmK}{\mathrm{K}} 539 | \newcommand{\rmL}{\mathrm{L}} 540 | \newcommand{\rmM}{\mathrm{M}} 541 | \newcommand{\rmN}{\mathrm{N}} 542 | \newcommand{\rmO}{\mathrm{O}} 543 | \newcommand{\rmP}{\mathrm{P}} 544 | \newcommand{\rmQ}{\mathrm{Q}} 545 | \newcommand{\rmR}{\mathrm{R}} 546 | \newcommand{\rmS}{\mathrm{S}} 547 | \newcommand{\rmT}{\mathrm{T}} 548 | \newcommand{\rmU}{\mathrm{U}} 549 | \newcommand{\rmV}{\mathrm{V}} 550 | \newcommand{\rmW}{\mathrm{W}} 551 | \newcommand{\rmX}{\mathrm{X}} 552 | \newcommand{\rmY}{\mathrm{Y}} 553 | \newcommand{\rmZ}{\mathrm{Z}} -------------------------------------------------------------------------------- /CN/无需配置字体/Document-CN-fonts.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/CN/无需配置字体/Document-CN-fonts.pdf -------------------------------------------------------------------------------- /CN/无需配置字体/Document-CN-fonts.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt, UTF8]{ctexart} 2 | \usepackage{matnoble-doc-cn-fonts} 3 | \begin{document} 4 | \title{\bf \LaTeX 中文文档模板} 5 | \author{\bf 6 | \href{https://matnoble.me/about/}{数系家园}} 7 | \date{} 8 | 9 | \maketitle 10 | \tableofcontents 11 | \footnote{\noindent \createtext{2019 年 12 月 5 日} \newline 12 | \updatetext{\today}}. 13 | 14 | \clearpage 15 | \listoflistings 16 | 17 | \clearpage 18 | 19 | \section{随机文本} 20 | \zhlipsum[2-3] 21 | 22 | \clearpage 23 | 24 | \section{通常环境} 25 | 26 | \subsection{列表} 27 | 28 | \subsubsection{无序列表} 29 | \begin{itemize} 30 | \item Sth 31 | \item Sth 32 | \item $\cdots$ 33 | \end{itemize} 34 | \subsubsection{有序列表} 35 | \begin{itemize} 36 | \item[(1)] Sth 37 | \item[(2)] Sth 38 | \item[(3)] $\cdots$ 39 | \end{itemize} 40 | \noindent {\bf 使用 \autoref{mybox} 得到更漂亮列表环境 } 41 | \begin{mybox}{无序列表} 42 | \begin{itemize}[leftmargin = 10pt] 43 | \item Sth 44 | \item Sth 45 | \item $\cdots$ 46 | \end{itemize} 47 | \end{mybox} 48 | 49 | \begin{listing}[ht] 50 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 51 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 52 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 53 | \begin{mybox}{12} 54 | \begin{itemize}[leftmargin = 10pt] 55 | \item Sth 56 | \item Sth 57 | \item $\cdots$ 58 | \end{itemize} 59 | \end{mybox} 60 | \end{minted} 61 | \caption{\em mybox} 62 | \label{mybox} 63 | \end{listing} 64 | 65 | \clearpage 66 | \subsection{表格} 67 | \begin{table}[ht] 68 | \centering 69 | \caption{\em 这是表格} 70 | \vskip 0.1in 71 | \label{table} 72 | \begin{tabular}{c|cccc} 73 | \hline 74 | \hline 75 | \rule{0pt}{3ex} 76 | 序号 & 姓名 & 年龄 & 学号 & 性别 77 | \rule[-1.2ex]{0pt}{0pt} \\\hline 78 | 001 & * & * & * & * \\ 79 | 002 & * & * & * & * \\ 80 | 003 & * & * & * & * \\ 81 | 004 & * & * & * & * \\ 82 | \hline 83 | \hline 84 | \end{tabular} 85 | \end{table} 86 | 87 | \begin{listing}[ht] 88 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 89 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 90 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 91 | \begin{table}[ht] 92 | \centering 93 | \caption{\em 这是表格} 94 | \vskip 0.1in 95 | \label{table} 96 | \begin{tabular}{c|cccc} 97 | \hline 98 | \hline 99 | \rule{0pt}{3ex} 100 | 序号 & 姓名 & 年龄 & 学号 & 性别 101 | \rule[-1.2ex]{0pt}{0pt} \\\hline 102 | 001 & * & * & * & * \\ 103 | 002 & * & * & * & * \\ 104 | 003 & * & * & * & * \\ 105 | 004 & * & * & * & * \\ 106 | \hline 107 | \hline 108 | \end{tabular} 109 | \end{table} 110 | \end{minted} 111 | \caption{\em 表格} 112 | \label{table} 113 | \end{listing} 114 | 115 | \clearpage 116 | \subsection{图} 117 | 118 | \subsubsection{单张图} 119 | \begin{figure}[H] 120 | \centering \includegraphics[width=0.15\textwidth]{google.png} 121 | \caption{\em 单张图} 122 | \label{fig:mesh} 123 | \end{figure} 124 | 125 | \subsubsection{两张图并列} 126 | \begin{figure}[H] 127 | \centering 128 | \begin{subfigure}{.48\textwidth} 129 | \centering 130 | % include first image 131 | \includegraphics[width=.3\linewidth]{google.png} 132 | \caption{\em 子图 1} 133 | \label{fig:v21} 134 | \end{subfigure} 135 | \begin{subfigure}{.48\textwidth} 136 | \centering 137 | % include second image 138 | \includegraphics[width=.3\linewidth]{google.png} 139 | \caption{\em 子图 2} 140 | \label{fig:v22} 141 | \end{subfigure} 142 | \caption{\em 并列两张图} 143 | \label{fig:v2} 144 | \end{figure} 145 | 146 | \begin{listing}[ht] 147 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 148 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 149 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 150 | \begin{figure}[H] 151 | \centering 152 | \begin{subfigure}{.48\textwidth} 153 | \centering \includegraphics[width=.5\linewidth]{google.png} 154 | \caption{\em 子图 1} 155 | \label{fig:v21} 156 | \end{subfigure} 157 | \begin{subfigure}{.48\textwidth} 158 | \centering \includegraphics[width=.5\linewidth]{google.png} 159 | \caption{\em 子图 2} 160 | \label{fig:v22} 161 | \end{subfigure} 162 | \caption{\em 并列两张图} 163 | \label{fig:v2} 164 | \end{figure} 165 | \end{minted} 166 | \caption{\em 并列图} 167 | \label{subfigure} 168 | \end{listing} 169 | 170 | \clearpage 171 | 172 | \section{定理类环境} 173 | \begin{defn}{}{} 174 | 175 | \end{defn} 176 | 177 | \begin{lem}{}{} 178 | 179 | \end{lem} 180 | 181 | \begin{thm}{}{} 182 | \begin{case} 183 | 184 | \end{case} 185 | \begin{case} 186 | 187 | \end{case} 188 | \end{thm} 189 | 190 | \begin{rem} 191 | 192 | \end{rem} 193 | 194 | \begin{cor}{}{} 195 | 196 | \end{cor} 197 | 198 | \begin{exa} 199 | 200 | \end{exa} 201 | 202 | \begin{proof} 203 | 204 | \end{proof} 205 | 206 | \clearpage 207 | \section{数学公式} 208 | 209 | 为证 $a = b$, 需要证明 210 | 211 | {\bf 无标号} 212 | \[ 213 | a < b + \epsilon, \and b < a + \epsilon. 214 | \] 215 | 216 | {\bf 有标号} 217 | \begin{equation} 218 | \label{eq:1} 219 | a < b + \epsilon, \and b < a + \epsilon. 220 | \end{equation} 221 | 222 | \vskip2em 223 | 224 | PNP/Stokes 方程组 225 | \begin{empheq}[left=\empheqlbrace]{align} 226 | & \partial_{t} - \nabla\cdot[D_{i}(\nabla C_{i} + q_{i} \nabla 227 | \Phi C_{i}) - \bmu C_{i}] = F_{i}, 228 | \\[3pt] 229 | & -\nabla \cdot (\epsilon \nabla \Phi) = (C_{1} - C_{2}) + F_{3}, 230 | \\[3pt] 231 | & \partial_{t}\bmu - \Delta \bmu + \nabla p = -(C_{1} - 232 | C_{2})\nabla \Phi + F_{4}, 233 | \\[3pt] 234 | & \nabla \cdot \bmu = 0. 235 | \end{empheq} 236 | 237 | 矩阵 238 | \[ 239 | \begin{bmatrix} 240 | 2 & -1 & 0\\ 241 | -1& 2 &-1\\ 242 | 0 & -1 & 2 243 | \end{bmatrix} 244 | \] 245 | 246 | \clearpage 247 | \begin{thebibliography}{99} 248 | \bibitem{1} 249 | \bibitem{2} 250 | \bibitem{3} 251 | \end{thebibliography} 252 | 253 | \clearpage 254 | 255 | \begin{appendices} 256 | \section{代码} 257 | \begin{listing}[ht] 258 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 259 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 260 | fontsize=\footnotesize, linenos, mathescape, autogobble 261 | ]{python} 262 | import matplotlib.pyplot as plt import numpy as np 263 | 264 | plt.figure(num = 1, figsize=(8, 6)) n = np.linspace(1,100,100) 265 | plt.plot(n, 1/n, 'bx') plt.xlabel(r'$ n $') 266 | plt.ylabel(r'$ \frac{1}{n} $') 267 | 268 | plt.figure(num = 2, figsize=(8, 6)) n = np.linspace(1,100,100) 269 | plt.plot(n, np.sin(n)/n, 'bx') plt.xlabel(r'$ n $') 270 | plt.ylabel(r'$ \frac{\sin(n)}{n} $') 271 | 272 | plt.show() 273 | \end{minted} 274 | \caption{\em Python} 275 | \end{listing} 276 | 277 | \begin{listing}[ht] 278 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 279 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 280 | fontsize=\footnotesize, linenos, mathescape, autogobble, breaklines 281 | ]{matlab} 282 | figure() 283 | plot(XX,YY,'k-'),hold on plot(XX',YY','k-'), hold on 284 | B= plot(boundary(3,:), boundary(4,:), 'b.', 'markersize', 25); 285 | hold on 286 | I = plot(index(:,1), index(:,2), 'r.', 'markersize',25); 287 | hold off 288 | axis equal 289 | set(gca,'xtick',[],'ytick',[]) 290 | xlim(X) 291 | ylim(Y) 292 | set(gca,'looseInset',[0 0.01 0 0.01]) 293 | h = legend([B, I], 'boundary nodes', 'inside nodes', 'Location','bestoutside'); 294 | set(h, 'Fontsize', 10) 295 | \end{minted} 296 | \caption{\em Matlab} 297 | \end{listing} 298 | \end{appendices} 299 | 300 | \end{document} 301 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/03F9340E9C8BCA0AD1F256368B2EC9061CD4C17AD1028E4E8CBECFC6334E253B.pygtex: -------------------------------------------------------------------------------- 1 | \begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}] 2 | \PYG{n}{figure}\PYG{p}{()} 3 | \PYG{n}{plot}\PYG{p}{(}\PYG{n}{XX}\PYG{p}{,}\PYG{n}{YY}\PYG{p}{,}\PYG{l+s}{\PYGZsq{}k\PYGZhy{}\PYGZsq{}}\PYG{p}{),}\PYG{n}{hold} \PYG{n}{on} \PYG{n}{plot}\PYG{p}{(}\PYG{n}{XX}\PYG{o}{\PYGZsq{}}\PYG{p}{,}\PYG{n}{YY}\PYG{o}{\PYGZsq{}}\PYG{p}{,}\PYG{l+s}{\PYGZsq{}k\PYGZhy{}\PYGZsq{}}\PYG{p}{),} \PYG{n}{hold} \PYG{n}{on} 4 | \PYG{n}{B}\PYG{p}{=} \PYG{n}{plot}\PYG{p}{(}\PYG{n}{boundary}\PYG{p}{(}\PYG{l+m+mi}{3}\PYG{p}{,:),} \PYG{n}{boundary}\PYG{p}{(}\PYG{l+m+mi}{4}\PYG{p}{,:),} \PYG{l+s}{\PYGZsq{}b.\PYGZsq{}}\PYG{p}{,} \PYG{l+s}{\PYGZsq{}markersize\PYGZsq{}}\PYG{p}{,} \PYG{l+m+mi}{25}\PYG{p}{);} 5 | \PYG{n}{hold} \PYG{n}{on} 6 | \PYG{n}{I} \PYG{p}{=} \PYG{n}{plot}\PYG{p}{(}\PYG{n}{index}\PYG{p}{(:,}\PYG{l+m+mi}{1}\PYG{p}{),} \PYG{n}{index}\PYG{p}{(:,}\PYG{l+m+mi}{2}\PYG{p}{),} \PYG{l+s}{\PYGZsq{}r.\PYGZsq{}}\PYG{p}{,} \PYG{l+s}{\PYGZsq{}markersize\PYGZsq{}}\PYG{p}{,}\PYG{l+m+mi}{25}\PYG{p}{);} 7 | \PYG{n}{hold} \PYG{n}{off} 8 | \PYG{n}{axis} \PYG{n}{equal} 9 | \PYG{n}{set}\PYG{p}{(}\PYG{n}{gca}\PYG{p}{,}\PYG{l+s}{\PYGZsq{}xtick\PYGZsq{}}\PYG{p}{,[],}\PYG{l+s}{\PYGZsq{}ytick\PYGZsq{}}\PYG{p}{,[])} 10 | \PYG{n}{xlim}\PYG{p}{(}\PYG{n}{X}\PYG{p}{)} 11 | \PYG{n}{ylim}\PYG{p}{(}\PYG{n}{Y}\PYG{p}{)} 12 | \PYG{n}{set}\PYG{p}{(}\PYG{n}{gca}\PYG{p}{,}\PYG{l+s}{\PYGZsq{}looseInset\PYGZsq{}}\PYG{p}{,[}\PYG{l+m+mi}{0} \PYG{l+m+mf}{0.01} \PYG{l+m+mi}{0} \PYG{l+m+mf}{0.01}\PYG{p}{])} 13 | \PYG{n}{h} \PYG{p}{=} \PYG{n}{legend}\PYG{p}{([}\PYG{n}{B}\PYG{p}{,} \PYG{n}{I}\PYG{p}{],} \PYG{l+s}{\PYGZsq{}boundary nodes\PYGZsq{}}\PYG{p}{,} \PYG{l+s}{\PYGZsq{}inside nodes\PYGZsq{}}\PYG{p}{,} \PYG{l+s}{\PYGZsq{}Location\PYGZsq{}}\PYG{p}{,}\PYG{l+s}{\PYGZsq{}bestoutside\PYGZsq{}}\PYG{p}{);} 14 | \PYG{n}{set}\PYG{p}{(}\PYG{n}{h}\PYG{p}{,} \PYG{l+s}{\PYGZsq{}Fontsize\PYGZsq{}}\PYG{p}{,} \PYG{l+m+mi}{10}\PYG{p}{)} 15 | \end{Verbatim} 16 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/0749B9E3C2B0B56BFAB95DE6FA2E1FA6993C9DCB065B525A1D73A8F3F0996DED.pygtex: -------------------------------------------------------------------------------- 1 | \begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}] 2 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}mybox\PYG{n+nb}{\PYGZcb{}\PYGZob{}}12\PYG{n+nb}{\PYGZcb{}} 3 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}itemize\PYG{n+nb}{\PYGZcb{}}[leftmargin = 10pt] 4 | \PYG{k}{\PYGZbs{}item} Sth 5 | \PYG{k}{\PYGZbs{}item} Sth 6 | \PYG{k}{\PYGZbs{}item} \PYG{l+s}{\PYGZdl{}}\PYG{n+nv}{\PYGZbs{}cdots}\PYG{l+s}{\PYGZdl{}} 7 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}itemize\PYG{n+nb}{\PYGZcb{}} 8 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}mybox\PYG{n+nb}{\PYGZcb{}} 9 | \end{Verbatim} 10 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/5BB16A077B1890164E20C3B746E9E98346731CB8D431A159D3727D999B5E3D00.pygtex: -------------------------------------------------------------------------------- 1 | \begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}] 2 | \PYG{k+kn}{import} \PYG{n+nn}{matplotlib.pyplot} \PYG{k+kn}{as} \PYG{n+nn}{plt} \PYG{n+nn}{import} \PYG{n+nn}{numpy} \PYG{k+kn}{as} \PYG{n+nn}{np} 3 | 4 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{figure}\PYG{p}{(}\PYG{n}{num} \PYG{o}{=} \PYG{l+m+mi}{1}\PYG{p}{,} \PYG{n}{figsize}\PYG{o}{=}\PYG{p}{(}\PYG{l+m+mi}{8}\PYG{p}{,} \PYG{l+m+mi}{6}\PYG{p}{))} \PYG{n}{n} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{linspace}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{,}\PYG{l+m+mi}{100}\PYG{p}{,}\PYG{l+m+mi}{100}\PYG{p}{)} 5 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{n}{n}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{o}{/}\PYG{n}{n}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}bx\PYGZsq{}}\PYG{p}{)} \PYG{n}{plt}\PYG{o}{.}\PYG{n}{xlabel}\PYG{p}{(}\PYG{l+s+sa}{r}\PYG{l+s+s1}{\PYGZsq{}\PYGZdl{} n \PYGZdl{}\PYGZsq{}}\PYG{p}{)} 6 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{ylabel}\PYG{p}{(}\PYG{l+s+sa}{r}\PYG{l+s+s1}{\PYGZsq{}\PYGZdl{} \PYGZbs{}frac\PYGZob{}1\PYGZcb{}\PYGZob{}n\PYGZcb{} \PYGZdl{}\PYGZsq{}}\PYG{p}{)} 7 | 8 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{figure}\PYG{p}{(}\PYG{n}{num} \PYG{o}{=} \PYG{l+m+mi}{2}\PYG{p}{,} \PYG{n}{figsize}\PYG{o}{=}\PYG{p}{(}\PYG{l+m+mi}{8}\PYG{p}{,} \PYG{l+m+mi}{6}\PYG{p}{))} \PYG{n}{n} \PYG{o}{=} \PYG{n}{np}\PYG{o}{.}\PYG{n}{linspace}\PYG{p}{(}\PYG{l+m+mi}{1}\PYG{p}{,}\PYG{l+m+mi}{100}\PYG{p}{,}\PYG{l+m+mi}{100}\PYG{p}{)} 9 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{plot}\PYG{p}{(}\PYG{n}{n}\PYG{p}{,} \PYG{n}{np}\PYG{o}{.}\PYG{n}{sin}\PYG{p}{(}\PYG{n}{n}\PYG{p}{)}\PYG{o}{/}\PYG{n}{n}\PYG{p}{,} \PYG{l+s+s1}{\PYGZsq{}bx\PYGZsq{}}\PYG{p}{)} \PYG{n}{plt}\PYG{o}{.}\PYG{n}{xlabel}\PYG{p}{(}\PYG{l+s+sa}{r}\PYG{l+s+s1}{\PYGZsq{}\PYGZdl{} n \PYGZdl{}\PYGZsq{}}\PYG{p}{)} 10 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{ylabel}\PYG{p}{(}\PYG{l+s+sa}{r}\PYG{l+s+s1}{\PYGZsq{}\PYGZdl{} \PYGZbs{}frac\PYGZob{}\PYGZbs{}sin(n)\PYGZcb{}\PYGZob{}n\PYGZcb{} \PYGZdl{}\PYGZsq{}}\PYG{p}{)} 11 | 12 | \PYG{n}{plt}\PYG{o}{.}\PYG{n}{show}\PYG{p}{()} 13 | \end{Verbatim} 14 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/6BC6AA90B80DBBE410D5BA12D0C3E928993C9DCB065B525A1D73A8F3F0996DED.pygtex: -------------------------------------------------------------------------------- 1 | \begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}] 2 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}table\PYG{n+nb}{\PYGZcb{}}[ht] 3 | \PYG{k}{\PYGZbs{}centering} 4 | \PYG{k}{\PYGZbs{}caption}\PYG{n+nb}{\PYGZob{}}\PYG{k}{\PYGZbs{}em} 这是表格\PYG{n+nb}{\PYGZcb{}} 5 | \PYG{k}{\PYGZbs{}vskip} 0.1in 6 | \PYG{k}{\PYGZbs{}label}\PYG{n+nb}{\PYGZob{}}table\PYG{n+nb}{\PYGZcb{}} 7 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}tabular\PYG{n+nb}{\PYGZcb{}\PYGZob{}}c|cccc\PYG{n+nb}{\PYGZcb{}} 8 | \PYG{k}{\PYGZbs{}hline} 9 | \PYG{k}{\PYGZbs{}hline} 10 | \PYG{k}{\PYGZbs{}rule}\PYG{n+nb}{\PYGZob{}}0pt\PYG{n+nb}{\PYGZcb{}\PYGZob{}}3ex\PYG{n+nb}{\PYGZcb{}} 11 | 序号 \PYG{n+nb}{\PYGZam{}} 姓名 \PYG{n+nb}{\PYGZam{}} 年龄 \PYG{n+nb}{\PYGZam{}} 学号 \PYG{n+nb}{\PYGZam{}} 性别 12 | \PYG{k}{\PYGZbs{}rule}\PYG{n+na}{[\PYGZhy{}1.2ex]}\PYG{n+nb}{\PYGZob{}}0pt\PYG{n+nb}{\PYGZcb{}\PYGZob{}}0pt\PYG{n+nb}{\PYGZcb{}} \PYG{k}{\PYGZbs{}\PYGZbs{}\PYGZbs{}hline} 13 | 001 \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{k}{\PYGZbs{}\PYGZbs{}} 14 | 002 \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{k}{\PYGZbs{}\PYGZbs{}} 15 | 003 \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{k}{\PYGZbs{}\PYGZbs{}} 16 | 004 \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{n+nb}{\PYGZam{}} * \PYG{k}{\PYGZbs{}\PYGZbs{}} 17 | \PYG{k}{\PYGZbs{}hline} 18 | \PYG{k}{\PYGZbs{}hline} 19 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}tabular\PYG{n+nb}{\PYGZcb{}} 20 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}table\PYG{n+nb}{\PYGZcb{}} 21 | \end{Verbatim} 22 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/C711B320416CC5A6E07464DC80660DF9993C9DCB065B525A1D73A8F3F0996DED.pygtex: -------------------------------------------------------------------------------- 1 | \begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}] 2 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}figure\PYG{n+nb}{\PYGZcb{}}[H] 3 | \PYG{k}{\PYGZbs{}centering} 4 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}subfigure\PYG{n+nb}{\PYGZcb{}\PYGZob{}}.48\PYG{k}{\PYGZbs{}textwidth}\PYG{n+nb}{\PYGZcb{}} 5 | \PYG{k}{\PYGZbs{}centering} \PYG{k}{\PYGZbs{}includegraphics}\PYG{n+na}{[width=.5\PYGZbs{}linewidth]}\PYG{n+nb}{\PYGZob{}}google.png\PYG{n+nb}{\PYGZcb{}} 6 | \PYG{k}{\PYGZbs{}caption}\PYG{n+nb}{\PYGZob{}}\PYG{k}{\PYGZbs{}em} 子图 1\PYG{n+nb}{\PYGZcb{}} 7 | \PYG{k}{\PYGZbs{}label}\PYG{n+nb}{\PYGZob{}}fig:v21\PYG{n+nb}{\PYGZcb{}} 8 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}subfigure\PYG{n+nb}{\PYGZcb{}} 9 | \PYG{k}{\PYGZbs{}begin}\PYG{n+nb}{\PYGZob{}}subfigure\PYG{n+nb}{\PYGZcb{}\PYGZob{}}.48\PYG{k}{\PYGZbs{}textwidth}\PYG{n+nb}{\PYGZcb{}} 10 | \PYG{k}{\PYGZbs{}centering} \PYG{k}{\PYGZbs{}includegraphics}\PYG{n+na}{[width=.5\PYGZbs{}linewidth]}\PYG{n+nb}{\PYGZob{}}google.png\PYG{n+nb}{\PYGZcb{}} 11 | \PYG{k}{\PYGZbs{}caption}\PYG{n+nb}{\PYGZob{}}\PYG{k}{\PYGZbs{}em} 子图 2\PYG{n+nb}{\PYGZcb{}} 12 | \PYG{k}{\PYGZbs{}label}\PYG{n+nb}{\PYGZob{}}fig:v22\PYG{n+nb}{\PYGZcb{}} 13 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}subfigure\PYG{n+nb}{\PYGZcb{}} 14 | \PYG{k}{\PYGZbs{}caption}\PYG{n+nb}{\PYGZob{}}\PYG{k}{\PYGZbs{}em} 并列两张图\PYG{n+nb}{\PYGZcb{}} 15 | \PYG{k}{\PYGZbs{}label}\PYG{n+nb}{\PYGZob{}}fig:v2\PYG{n+nb}{\PYGZcb{}} 16 | \PYG{k}{\PYGZbs{}end}\PYG{n+nb}{\PYGZob{}}figure\PYG{n+nb}{\PYGZcb{}} 17 | \end{Verbatim} 18 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/default-pyg-prefix.pygstyle: -------------------------------------------------------------------------------- 1 | 2 | \makeatletter 3 | \def\PYG@reset{\let\PYG@it=\relax \let\PYG@bf=\relax% 4 | \let\PYG@ul=\relax \let\PYG@tc=\relax% 5 | \let\PYG@bc=\relax \let\PYG@ff=\relax} 6 | \def\PYG@tok#1{\csname PYG@tok@#1\endcsname} 7 | \def\PYG@toks#1+{\ifx\relax#1\empty\else% 8 | \PYG@tok{#1}\expandafter\PYG@toks\fi} 9 | \def\PYG@do#1{\PYG@bc{\PYG@tc{\PYG@ul{% 10 | \PYG@it{\PYG@bf{\PYG@ff{#1}}}}}}} 11 | \def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+\PYG@do{#2}} 12 | 13 | \expandafter\def\csname PYG@tok@w\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}} 14 | \expandafter\def\csname PYG@tok@c\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 15 | \expandafter\def\csname PYG@tok@cp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.74,0.48,0.00}{##1}}} 16 | \expandafter\def\csname PYG@tok@k\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 17 | \expandafter\def\csname PYG@tok@kp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 18 | \expandafter\def\csname PYG@tok@kt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.69,0.00,0.25}{##1}}} 19 | \expandafter\def\csname PYG@tok@o\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 20 | \expandafter\def\csname PYG@tok@ow\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 21 | \expandafter\def\csname PYG@tok@nb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 22 | \expandafter\def\csname PYG@tok@nf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 23 | \expandafter\def\csname PYG@tok@nc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 24 | \expandafter\def\csname PYG@tok@nn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 25 | \expandafter\def\csname PYG@tok@ne\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}} 26 | \expandafter\def\csname PYG@tok@nv\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 27 | \expandafter\def\csname PYG@tok@no\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}} 28 | \expandafter\def\csname PYG@tok@nl\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}} 29 | \expandafter\def\csname PYG@tok@ni\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}} 30 | \expandafter\def\csname PYG@tok@na\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.49,0.56,0.16}{##1}}} 31 | \expandafter\def\csname PYG@tok@nt\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 32 | \expandafter\def\csname PYG@tok@nd\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 33 | \expandafter\def\csname PYG@tok@s\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 34 | \expandafter\def\csname PYG@tok@sd\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 35 | \expandafter\def\csname PYG@tok@si\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} 36 | \expandafter\def\csname PYG@tok@se\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}} 37 | \expandafter\def\csname PYG@tok@sr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} 38 | \expandafter\def\csname PYG@tok@ss\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 39 | \expandafter\def\csname PYG@tok@sx\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 40 | \expandafter\def\csname PYG@tok@m\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 41 | \expandafter\def\csname PYG@tok@gh\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} 42 | \expandafter\def\csname PYG@tok@gu\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}} 43 | \expandafter\def\csname PYG@tok@gd\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}} 44 | \expandafter\def\csname PYG@tok@gi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} 45 | \expandafter\def\csname PYG@tok@gr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}} 46 | \expandafter\def\csname PYG@tok@ge\endcsname{\let\PYG@it=\textit} 47 | \expandafter\def\csname PYG@tok@gs\endcsname{\let\PYG@bf=\textbf} 48 | \expandafter\def\csname PYG@tok@gp\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} 49 | \expandafter\def\csname PYG@tok@go\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}} 50 | \expandafter\def\csname PYG@tok@gt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}} 51 | \expandafter\def\csname PYG@tok@err\endcsname{\def\PYG@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}} 52 | \expandafter\def\csname PYG@tok@kc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 53 | \expandafter\def\csname PYG@tok@kd\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 54 | \expandafter\def\csname PYG@tok@kn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 55 | \expandafter\def\csname PYG@tok@kr\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 56 | \expandafter\def\csname PYG@tok@bp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 57 | \expandafter\def\csname PYG@tok@fm\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 58 | \expandafter\def\csname PYG@tok@vc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 59 | \expandafter\def\csname PYG@tok@vg\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 60 | \expandafter\def\csname PYG@tok@vi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 61 | \expandafter\def\csname PYG@tok@vm\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.10,0.09,0.49}{##1}}} 62 | \expandafter\def\csname PYG@tok@sa\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 63 | \expandafter\def\csname PYG@tok@sb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 64 | \expandafter\def\csname PYG@tok@sc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 65 | \expandafter\def\csname PYG@tok@dl\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 66 | \expandafter\def\csname PYG@tok@s2\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 67 | \expandafter\def\csname PYG@tok@sh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 68 | \expandafter\def\csname PYG@tok@s1\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.13,0.13}{##1}}} 69 | \expandafter\def\csname PYG@tok@mb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 70 | \expandafter\def\csname PYG@tok@mf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 71 | \expandafter\def\csname PYG@tok@mh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 72 | \expandafter\def\csname PYG@tok@mi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 73 | \expandafter\def\csname PYG@tok@il\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 74 | \expandafter\def\csname PYG@tok@mo\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 75 | \expandafter\def\csname PYG@tok@ch\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 76 | \expandafter\def\csname PYG@tok@cm\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 77 | \expandafter\def\csname PYG@tok@cpf\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 78 | \expandafter\def\csname PYG@tok@c1\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 79 | \expandafter\def\csname PYG@tok@cs\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.50}{##1}}} 80 | 81 | \def\PYGZbs{\char`\\} 82 | \def\PYGZus{\char`\_} 83 | \def\PYGZob{\char`\{} 84 | \def\PYGZcb{\char`\}} 85 | \def\PYGZca{\char`\^} 86 | \def\PYGZam{\char`\&} 87 | \def\PYGZlt{\char`\<} 88 | \def\PYGZgt{\char`\>} 89 | \def\PYGZsh{\char`\#} 90 | \def\PYGZpc{\char`\%} 91 | \def\PYGZdl{\char`\$} 92 | \def\PYGZhy{\char`\-} 93 | \def\PYGZsq{\char`\'} 94 | \def\PYGZdq{\char`\"} 95 | \def\PYGZti{\char`\~} 96 | % for compatibility with earlier versions 97 | \def\PYGZat{@} 98 | \def\PYGZlb{[} 99 | \def\PYGZrb{]} 100 | \makeatother 101 | 102 | -------------------------------------------------------------------------------- /CN/无需配置字体/_minted-Document-CN-fonts/emacs.pygstyle: -------------------------------------------------------------------------------- 1 | 2 | \makeatletter 3 | \def\PYGemacs@reset{\let\PYGemacs@it=\relax \let\PYGemacs@bf=\relax% 4 | \let\PYGemacs@ul=\relax \let\PYGemacs@tc=\relax% 5 | \let\PYGemacs@bc=\relax \let\PYGemacs@ff=\relax} 6 | \def\PYGemacs@tok#1{\csname PYGemacs@tok@#1\endcsname} 7 | \def\PYGemacs@toks#1+{\ifx\relax#1\empty\else% 8 | \PYGemacs@tok{#1}\expandafter\PYGemacs@toks\fi} 9 | \def\PYGemacs@do#1{\PYGemacs@bc{\PYGemacs@tc{\PYGemacs@ul{% 10 | \PYGemacs@it{\PYGemacs@bf{\PYGemacs@ff{#1}}}}}}} 11 | \def\PYGemacs#1#2{\PYGemacs@reset\PYGemacs@toks#1+\relax+\PYGemacs@do{#2}} 12 | 13 | \expandafter\def\csname PYGemacs@tok@w\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}} 14 | \expandafter\def\csname PYGemacs@tok@c\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 15 | \expandafter\def\csname PYGemacs@tok@cp\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 16 | \expandafter\def\csname PYGemacs@tok@cs\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 17 | \expandafter\def\csname PYGemacs@tok@k\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 18 | \expandafter\def\csname PYGemacs@tok@kp\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 19 | \expandafter\def\csname PYGemacs@tok@kt\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.73,0.00}{##1}}} 20 | \expandafter\def\csname PYGemacs@tok@o\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 21 | \expandafter\def\csname PYGemacs@tok@ow\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 22 | \expandafter\def\csname PYGemacs@tok@nb\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 23 | \expandafter\def\csname PYGemacs@tok@nf\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} 24 | \expandafter\def\csname PYGemacs@tok@nc\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 25 | \expandafter\def\csname PYGemacs@tok@nn\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.00,1.00}{##1}}} 26 | \expandafter\def\csname PYGemacs@tok@ne\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.82,0.25,0.23}{##1}}} 27 | \expandafter\def\csname PYGemacs@tok@nv\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 28 | \expandafter\def\csname PYGemacs@tok@no\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.53,0.00,0.00}{##1}}} 29 | \expandafter\def\csname PYGemacs@tok@nl\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.63,0.63,0.00}{##1}}} 30 | \expandafter\def\csname PYGemacs@tok@ni\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.60,0.60,0.60}{##1}}} 31 | \expandafter\def\csname PYGemacs@tok@na\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 32 | \expandafter\def\csname PYGemacs@tok@nt\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 33 | \expandafter\def\csname PYGemacs@tok@nd\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 34 | \expandafter\def\csname PYGemacs@tok@s\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 35 | \expandafter\def\csname PYGemacs@tok@sd\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 36 | \expandafter\def\csname PYGemacs@tok@si\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} 37 | \expandafter\def\csname PYGemacs@tok@se\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.40,0.13}{##1}}} 38 | \expandafter\def\csname PYGemacs@tok@sr\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.40,0.53}{##1}}} 39 | \expandafter\def\csname PYGemacs@tok@ss\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 40 | \expandafter\def\csname PYGemacs@tok@sx\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.50,0.00}{##1}}} 41 | \expandafter\def\csname PYGemacs@tok@m\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 42 | \expandafter\def\csname PYGemacs@tok@gh\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} 43 | \expandafter\def\csname PYGemacs@tok@gu\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}} 44 | \expandafter\def\csname PYGemacs@tok@gd\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}} 45 | \expandafter\def\csname PYGemacs@tok@gi\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} 46 | \expandafter\def\csname PYGemacs@tok@gr\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}} 47 | \expandafter\def\csname PYGemacs@tok@ge\endcsname{\let\PYGemacs@it=\textit} 48 | \expandafter\def\csname PYGemacs@tok@gs\endcsname{\let\PYGemacs@bf=\textbf} 49 | \expandafter\def\csname PYGemacs@tok@gp\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}} 50 | \expandafter\def\csname PYGemacs@tok@go\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.53,0.53,0.53}{##1}}} 51 | \expandafter\def\csname PYGemacs@tok@gt\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}} 52 | \expandafter\def\csname PYGemacs@tok@err\endcsname{\def\PYGemacs@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}} 53 | \expandafter\def\csname PYGemacs@tok@kc\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 54 | \expandafter\def\csname PYGemacs@tok@kd\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 55 | \expandafter\def\csname PYGemacs@tok@kn\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 56 | \expandafter\def\csname PYGemacs@tok@kr\endcsname{\let\PYGemacs@bf=\textbf\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 57 | \expandafter\def\csname PYGemacs@tok@bp\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.67,0.13,1.00}{##1}}} 58 | \expandafter\def\csname PYGemacs@tok@fm\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}} 59 | \expandafter\def\csname PYGemacs@tok@vc\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 60 | \expandafter\def\csname PYGemacs@tok@vg\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 61 | \expandafter\def\csname PYGemacs@tok@vi\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 62 | \expandafter\def\csname PYGemacs@tok@vm\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.72,0.53,0.04}{##1}}} 63 | \expandafter\def\csname PYGemacs@tok@sa\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 64 | \expandafter\def\csname PYGemacs@tok@sb\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 65 | \expandafter\def\csname PYGemacs@tok@sc\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 66 | \expandafter\def\csname PYGemacs@tok@dl\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 67 | \expandafter\def\csname PYGemacs@tok@s2\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 68 | \expandafter\def\csname PYGemacs@tok@sh\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 69 | \expandafter\def\csname PYGemacs@tok@s1\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.73,0.27,0.27}{##1}}} 70 | \expandafter\def\csname PYGemacs@tok@mb\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 71 | \expandafter\def\csname PYGemacs@tok@mf\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 72 | \expandafter\def\csname PYGemacs@tok@mh\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 73 | \expandafter\def\csname PYGemacs@tok@mi\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 74 | \expandafter\def\csname PYGemacs@tok@il\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 75 | \expandafter\def\csname PYGemacs@tok@mo\endcsname{\def\PYGemacs@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}} 76 | \expandafter\def\csname PYGemacs@tok@ch\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 77 | \expandafter\def\csname PYGemacs@tok@cm\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 78 | \expandafter\def\csname PYGemacs@tok@cpf\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 79 | \expandafter\def\csname PYGemacs@tok@c1\endcsname{\let\PYGemacs@it=\textit\def\PYGemacs@tc##1{\textcolor[rgb]{0.00,0.53,0.00}{##1}}} 80 | 81 | \def\PYGemacsZbs{\char`\\} 82 | \def\PYGemacsZus{\char`\_} 83 | \def\PYGemacsZob{\char`\{} 84 | \def\PYGemacsZcb{\char`\}} 85 | \def\PYGemacsZca{\char`\^} 86 | \def\PYGemacsZam{\char`\&} 87 | \def\PYGemacsZlt{\char`\<} 88 | \def\PYGemacsZgt{\char`\>} 89 | \def\PYGemacsZsh{\char`\#} 90 | \def\PYGemacsZpc{\char`\%} 91 | \def\PYGemacsZdl{\char`\$} 92 | \def\PYGemacsZhy{\char`\-} 93 | \def\PYGemacsZsq{\char`\'} 94 | \def\PYGemacsZdq{\char`\"} 95 | \def\PYGemacsZti{\char`\~} 96 | % for compatibility with earlier versions 97 | \def\PYGemacsZat{@} 98 | \def\PYGemacsZlb{[} 99 | \def\PYGemacsZrb{]} 100 | \makeatother 101 | 102 | -------------------------------------------------------------------------------- /CN/无需配置字体/images/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/CN/无需配置字体/images/google.png -------------------------------------------------------------------------------- /CN/无需配置字体/matnoble-doc-cn-fonts.sty: -------------------------------------------------------------------------------- 1 | % 2 | % 个人自用文档样式 3 | % 4 | % 无需刻意配置字体 5 | \ProvidesPackage{matnoble-doc-cn-fonts}[2020/03/02 v1.2] 6 | 7 | \usepackage{xeCJK} 8 | %================================== 设置中文字体 ===========================% 9 | % 将系统字体名映射为逻辑字体名称, 主要是为了维护的方便 10 | \newcommand\fontnamehei{SimHei} 11 | \newcommand\fontnamesong{SimSun} 12 | \newcommand\fontnamekai{KaiTi} 13 | % \newcommand\fontnamemono{Adobe Fangsong Std} 14 | \setCJKmainfont[BoldFont=\fontnamehei]{\fontnamesong} % 设置 CJK 主字体 15 | \setCJKsansfont[BoldFont=\fontnamehei]{\fontnamekai} % 设置 CJK 无衬线的字体 16 | % \setCJKmonofont{\fontnamemono} % 设置 CJK 的等宽字体 17 | \punctstyle{kaiming} 18 | %================================== 设置中文字体 ===========================% 19 | %================================== 设置英文字体 ===========================% 20 | \setmainfont[Mapping=tex-text]{Times New Roman} % 西文默认衬线字体(serif) 21 | \setsansfont[Mapping=tex-text]{Arial} % 西文默认无衬线字体(sans serif) 22 | % \setmonofont{DejaVu Sans Mono} % 西文默认的等宽字体 23 | %================================== 设置英文字体 ===========================% 24 | \setCJKfamilyfont{adhei}{SimHei} % 开源的思源黑体 25 | \newcommand{\adheiti}{\CJKfamily{adhei}} 26 | \setCJKfamilyfont{adkai}{KaiTi} 27 | \newcommand{\adkaiti}{\CJKfamily{adkai}} 28 | 29 | % 自定义公式字体 30 | \usepackage{newtxtext,newtxmath} 31 | % \usepackage{mathptmx} % 打印 32 | % \usepackage{charter} % 屏读 33 | % \usepackage{fourier} 34 | 35 | \RequirePackage{amsmath, amsthm, amsfonts, amssymb, bm} 36 | \RequirePackage{calrsfs, wasysym, verbatim, graphicx, geometry, empheq} 37 | \RequirePackage[nottoc]{tocbibind} 38 | %% 长表格 39 | \RequirePackage{longtable} 40 | %% booktabs 提供了\toprule 等命令. 41 | \RequirePackage{booktabs} 42 | %% multirow 支持在表格中跨行 43 | \RequirePackage{multirow} 44 | %% 调整间隔, 让表格更好看些 45 | \RequirePackage{bigstrut} 46 | %% 在跨行表格中输入定界符 47 | \RequirePackage{bigdelim} 48 | % 首行缩进 49 | \RequirePackage{indentfirst} 50 | % 设置浮动体的标题 51 | \RequirePackage{subcaption} 52 | \RequirePackage{hyperref} 53 | % 页眉页脚 54 | \RequirePackage{fancyhdr} 55 | % item 56 | \RequirePackage{enumitem} 57 | \RequirePackage{anysize} 58 | 59 | % 中文随机文本 60 | \RequirePackage{zhlipsum} 61 | 62 | % 调色板 63 | \RequirePackage{xcolor-material} 64 | \colorlet{PrimaryColor}{GoogleBlue} 65 | % 代码提示 66 | \RequirePackage{listings} 67 | % 更加现代定理、引用提示 68 | \RequirePackage{tcolorbox} 69 | % 书签 70 | \RequirePackage[open, openlevel=2, atend]{bookmark} 71 | % 链接 72 | \RequirePackage{hyperref} 73 | % 选项相关 74 | \RequirePackage{xkeyval} 75 | \RequirePackage[title,titletoc]{appendix} 76 | % 代码提示 77 | \RequirePackage{listings} 78 | %%% 代码高亮设置 %%% 79 | \tcbuselibrary{listings} 80 | % 代码高亮 81 | \RequirePackage{minted} 82 | \usemintedstyle{emacs} 83 | \renewcommand\listoflistingscaption{源码列表} 84 | % 页面边距 85 | \geometry{tmargin=.75in, bmargin=.75in, lmargin=.75in, rmargin = .75in} 86 | % 行距 87 | \RequirePackage{setspace} 88 | \setstretch{1.38} 89 | 90 | \RequirePackage{tcolorbox} 91 | %%% tcolorbox %%% 92 | \tcbuselibrary{theorems} 93 | \tcbuselibrary{skins} 94 | \tcbsetforeverylayer{enhanced} 95 | \newtcolorbox{mybox}[2][]{colbacktitle=red!10!white, colback=blue!10!white,coltitle=red!70!black, title={#2},fonttitle=\bfseries,#1} 96 | 97 | % caption 98 | \RequirePackage[font=small, labelfont={bf, color=PrimaryColor}]{caption} 99 | \DeclareCaptionFont{kai}{\normalsize \adkaiti} 100 | \captionsetup{labelsep=quad} 101 | \captionsetup{font={kai,singlespacing}} 102 | \captionsetup[figure]{position=bottom,skip={2pt}} 103 | \captionsetup[table]{position=top,skip={2pt}} 104 | 105 | \allowdisplaybreaks 106 | \textwidth 6.3in \textheight 9in 107 | \topmargin -0.4in 108 | \oddsidemargin 0.1in \evensidemargin 0.0in 109 | 110 | % 中文断行 111 | \XeTeXlinebreaklocale "zh" 112 | \XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt 113 | 114 | % 中文句号改为英文句点 115 | \catcode`\。=\active 116 | \newcommand{。}{\ifmmode\text{.}\else .\fi} 117 | 118 | % Section 居中 119 | % \CTEXsetup[format={\Large\bfseries}]{section} 120 | %%% CTEX格式设置 %% 121 | \ctexset{ 122 | today=small, 123 | contentsname={文章导航}, 124 | section/format=\Large\bfseries\centering\color{PrimaryColor}, 125 | % subsection/number={\textcolor{MaterialBlue900}{\thesubsection}}, 126 | } 127 | %%% 页眉页脚设置 %%% 128 | \pagestyle{fancy} 129 | \fancyhead[L]{\textcolor{PrimaryColor}{\leftmark}} 130 | \fancyhead[C]{\textcolor{PrimaryColor}{第\zhnumber{\thepage}页}} 131 | \fancyhead[R]{\textcolor{PrimaryColor}{\rightmark}} 132 | \fancyfoot{} 133 | \renewcommand{\headrule}{\color{PrimaryColor}\hrule width\textwidth height\headrulewidth\hfill} 134 | \renewcommand{\headrulewidth}{1.2pt} 135 | \renewcommand{\footrulewidth}{0pt} 136 | 137 | \newtheoremstyle{plain}{3pt}{3pt}{\itshape}{}{\color{PrimaryColor}\bfseries}{}{0.5em}{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} 138 | 139 | \fancypagestyle{plain} 140 | { 141 | \renewcommand{\headrulewidth}{0pt}% 142 | \renewcommand{\headrule}{\hrule height\headrulewidth\hfill} 143 | \fancyhf{}% 144 | % \fancyfoot[C]{\footnotesize \textcolor{MaterialGrey}{\thepage}}% 145 | } 146 | 147 | % 关于图片 graphicx 148 | % 如果图片没有指定后缀, 依次按下列顺序搜索 149 | \DeclareGraphicsExtensions{.eps,.pdf,.jpg,.png} 150 | % 设置图表搜索路径, 可以给图表文件夹取如下名字 151 | \graphicspath{{figures/}{figure/}{pictures/}% 152 | {picture/}{pic/}{pics/}{image/}{images/}} 153 | 154 | %%% 链接设置 %%% 155 | \hypersetup{ 156 | colorlinks=true, 157 | linkcolor=GoogleRed, 158 | urlcolor=GoogleBlue, 159 | filecolor=GoogleGreen, 160 | } 161 | 162 | \newtheoremstyle{thmm}{1.5ex plus 1ex minus .2ex}{1.5ex plus 1ex minus 163 | .2ex}{\rmfamily}{}{\bfseries}{}{1em}{} 164 | \theoremstyle{thmm} 165 | \newtcbtheorem[number within=section]{thm}{\bf 定理}{ 166 | boxrule=0.1mm, 167 | before upper={\parindent2em}, 168 | colback=MaterialGreen50, 169 | colframe=GoogleGreen, 170 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 171 | boxed title style={colback=GoogleGreen} 172 | }{} 173 | \newtcbtheorem[number within=section]{lem}{\bf 引理}{ 174 | boxrule=0.1mm, 175 | before upper={\parindent2em}, 176 | colback=MaterialYellow50, 177 | colframe=GoogleYellow, 178 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 179 | boxed title style={colback=GoogleYellow} 180 | }{} 181 | \newtcbtheorem[number within=section]{cor}{\bf 推论}{ 182 | boxrule=0.1mm, 183 | before upper={\parindent2em}, 184 | colback=MaterialRed50, 185 | colframe=GoogleRed, 186 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 187 | boxed title style={colback=GoogleRed} 188 | }{} 189 | \theoremstyle{definition} % 190 | \newtcbtheorem[number within=section]{defn}{\bf 定义}{ 191 | boxrule=0.1mm, 192 | before upper={\parindent2em}, 193 | colback=MaterialBlue50, 194 | colframe=GoogleBlue, 195 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 196 | boxed title style={colback=GoogleBlue} 197 | }{} 198 | \newtheorem{exa}{\bf 例题}[section] 199 | \theoremstyle{remark} 200 | \newtheorem{rem}{\bf 记号}[section] 201 | \newtheorem*{note}{Note} 202 | \newtheorem{case}{\bf 情形} 203 | 204 | \renewenvironment{proof}[1][Proof]{\noindent\textit{#1. } }{\hfill$\square$} 205 | \def \endproof{\hspace{2pt}\vrule height8pt width 5pt depth 0pt} 206 | \def\refe#1{(\ref{#1})} 207 | \def\proof{\noindent{\bf 证明.}\hskip2mm} 208 | 209 | 210 | % 引入脚注的包 211 | \RequirePackage[marginal]{footmisc} 212 | \renewcommand{\thefootnote}{} 213 | \newcommand\createtext{创建于: }% 214 | \newcommand\updatetext{更新于: }% 215 | 216 | %%% 代码高亮设置 %%% 217 | \tcbuselibrary{listings} 218 | 219 | \lstset{ 220 | frame=single, 221 | frameround=tttt, 222 | framesep=1pt, 223 | framextopmargin=6pt, 224 | framexbottommargin=6pt, 225 | tabsize=4, 226 | breaklines=true, 227 | upquote=true, 228 | captionpos=b, 229 | basicstyle=\footnotesize, 230 | backgroundcolor=\color{MaterialBlue50}, 231 | rulecolor=\color{MaterialBlue}, 232 | identifierstyle=\color{MaterialBlue800}, 233 | commentstyle=\itshape\color{MaterialGreen700}, 234 | stringstyle=\bfseries\color{MaterialAmber800}, 235 | keywordstyle=\bfseries\color{MaterialPurple700}, 236 | numberstyle=\bfseries\color{MaterialGrey800}, 237 | } 238 | 239 | % mathbb 240 | \newcommand{\bba}{\mathbb{a}} 241 | \newcommand{\bbb}{\mathbb{b}} 242 | \newcommand{\bbc}{\mathbb{c}} 243 | \newcommand{\bbd}{\mathbb{d}} 244 | \newcommand{\bbe}{\mathbb{e}} 245 | \newcommand{\bbf}{\mathbb{f}} 246 | \newcommand{\bbg}{\mathbb{g}} 247 | \newcommand{\bbh}{\mathbb{h}} 248 | \newcommand{\bbi}{\mathbb{i}} 249 | \newcommand{\bbj}{\mathbb{j}} 250 | \newcommand{\bbk}{\mathbb{k}} 251 | \newcommand{\bbl}{\mathbb{l}} 252 | \newcommand{\bbm}{\mathbb{m}} 253 | \newcommand{\bbn}{\mathbb{n}} 254 | \newcommand{\bbo}{\mathbb{o}} 255 | \newcommand{\bbp}{\mathbb{p}} 256 | \newcommand{\bbq}{\mathbb{q}} 257 | \newcommand{\bbr}{\mathbb{r}} 258 | \newcommand{\bbs}{\mathbb{s}} 259 | \newcommand{\bbt}{\mathbb{t}} 260 | \newcommand{\bbu}{\mathbb{u}} 261 | \newcommand{\bbv}{\mathbb{v}} 262 | \newcommand{\bbw}{\mathbb{w}} 263 | \newcommand{\bbx}{\mathbb{x}} 264 | \newcommand{\bby}{\mathbb{y}} 265 | \newcommand{\bbz}{\mathbb{z}} 266 | \newcommand{\bbA}{\mathbb{A}} 267 | \newcommand{\bbB}{\mathbb{B}} 268 | \newcommand{\bbC}{\mathbb{C}} 269 | \newcommand{\bbD}{\mathbb{D}} 270 | \newcommand{\bbE}{\mathbb{E}} 271 | \newcommand{\bbF}{\mathbb{F}} 272 | \newcommand{\bbG}{\mathbb{G}} 273 | \newcommand{\bbH}{\mathbb{H}} 274 | \newcommand{\bbI}{\mathbb{I}} 275 | \newcommand{\bbJ}{\mathbb{J}} 276 | \newcommand{\bbK}{\mathbb{K}} 277 | \newcommand{\bbL}{\mathbb{L}} 278 | \newcommand{\bbM}{\mathbb{M}} 279 | \newcommand{\bbN}{\mathbb{N}} 280 | \newcommand{\bbO}{\mathbb{O}} 281 | \newcommand{\bbP}{\mathbb{P}} 282 | \newcommand{\bbQ}{\mathbb{Q}} 283 | \newcommand{\bbR}{\mathbb{R}} 284 | \newcommand{\bbS}{\mathbb{S}} 285 | \newcommand{\bbT}{\mathbb{T}} 286 | \newcommand{\bbU}{\mathbb{U}} 287 | \newcommand{\bbV}{\mathbb{V}} 288 | \newcommand{\bbW}{\mathbb{W}} 289 | \newcommand{\bbX}{\mathbb{X}} 290 | \newcommand{\bbY}{\mathbb{Y}} 291 | \newcommand{\bbZ}{\mathbb{Z}} 292 | 293 | % mathbf 294 | \newcommand{\bfa}{\mathbf{a}} 295 | \newcommand{\bfb}{\mathbf{b}} 296 | \newcommand{\bfc}{\mathbf{c}} 297 | \newcommand{\bfd}{\mathbf{d}} 298 | \newcommand{\bfe}{\mathbf{e}} 299 | \newcommand{\bff}{\mathbf{f}} 300 | \newcommand{\bfg}{\mathbf{g}} 301 | \newcommand{\bfh}{\mathbf{h}} 302 | \newcommand{\bfi}{\mathbf{i}} 303 | \newcommand{\bfj}{\mathbf{j}} 304 | \newcommand{\bfk}{\mathbf{k}} 305 | \newcommand{\bfl}{\mathbf{l}} 306 | \newcommand{\bfm}{\mathbf{m}} 307 | \newcommand{\bfn}{\mathbf{n}} 308 | \newcommand{\bfo}{\mathbf{o}} 309 | \newcommand{\bfp}{\mathbf{p}} 310 | \newcommand{\bfq}{\mathbf{q}} 311 | \newcommand{\bfr}{\mathbf{r}} 312 | \newcommand{\bfs}{\mathbf{s}} 313 | \newcommand{\bft}{\mathbf{t}} 314 | \newcommand{\bfu}{\mathbf{u}} 315 | \newcommand{\bfv}{\mathbf{v}} 316 | \newcommand{\bfw}{\mathbf{w}} 317 | \newcommand{\bfx}{\mathbf{x}} 318 | \newcommand{\bfy}{\mathbf{y}} 319 | \newcommand{\bfz}{\mathbf{z}} 320 | \newcommand{\bfA}{\mathbf{A}} 321 | \newcommand{\bfB}{\mathbf{B}} 322 | \newcommand{\bfC}{\mathbf{C}} 323 | \newcommand{\bfD}{\mathbf{D}} 324 | \newcommand{\bfE}{\mathbf{E}} 325 | \newcommand{\bfF}{\mathbf{F}} 326 | \newcommand{\bfG}{\mathbf{G}} 327 | \newcommand{\bfH}{\mathbf{H}} 328 | \newcommand{\bfI}{\mathbf{I}} 329 | \newcommand{\bfJ}{\mathbf{J}} 330 | \newcommand{\bfK}{\mathbf{K}} 331 | \newcommand{\bfL}{\mathbf{L}} 332 | \newcommand{\bfM}{\mathbf{M}} 333 | \newcommand{\bfN}{\mathbf{N}} 334 | \newcommand{\bfO}{\mathbf{O}} 335 | \newcommand{\bfP}{\mathbf{P}} 336 | \newcommand{\bfQ}{\mathbf{Q}} 337 | \newcommand{\bfR}{\mathbf{R}} 338 | \newcommand{\bfS}{\mathbf{S}} 339 | \newcommand{\bfT}{\mathbf{T}} 340 | \newcommand{\bfU}{\mathbf{U}} 341 | \newcommand{\bfV}{\mathbf{V}} 342 | \newcommand{\bfW}{\mathbf{W}} 343 | \newcommand{\bfX}{\mathbf{X}} 344 | \newcommand{\bfY}{\mathbf{Y}} 345 | \newcommand{\bfZ}{\mathbf{Z}} 346 | 347 | % mathbfit (bm) 348 | \newcommand{\bma}{\bm{a}} 349 | \newcommand{\bmb}{\bm{b}} 350 | \newcommand{\bmc}{\bm{c}} 351 | \newcommand{\bmd}{\bm{d}} 352 | \newcommand{\bme}{\bm{e}} 353 | \newcommand{\bmf}{\bm{f}} 354 | \newcommand{\bmg}{\bm{g}} 355 | \newcommand{\bmh}{\bm{h}} 356 | \newcommand{\bmi}{\bm{i}} 357 | \newcommand{\bmj}{\bm{j}} 358 | \newcommand{\bmk}{\bm{k}} 359 | \newcommand{\bml}{\bm{l}} 360 | \newcommand{\bmm}{\bm{m}} 361 | \newcommand{\bmn}{\bm{n}} 362 | \newcommand{\bmo}{\bm{o}} 363 | \newcommand{\bmp}{\bm{p}} 364 | \newcommand{\bmq}{\bm{q}} 365 | \newcommand{\bmr}{\bm{r}} 366 | \newcommand{\bms}{\bm{s}} 367 | \newcommand{\bmt}{\bm{t}} 368 | \newcommand{\bmu}{\bm{u}} 369 | \newcommand{\bmv}{\bm{v}} 370 | \newcommand{\bmw}{\bm{w}} 371 | \newcommand{\bmx}{\bm{x}} 372 | \newcommand{\bmy}{\bm{y}} 373 | \newcommand{\bmz}{\bm{z}} 374 | \newcommand{\bmA}{\bm{A}} 375 | \newcommand{\bmB}{\bm{B}} 376 | \newcommand{\bmC}{\bm{C}} 377 | \newcommand{\bmD}{\bm{D}} 378 | \newcommand{\bmE}{\bm{E}} 379 | \newcommand{\bmF}{\bm{F}} 380 | \newcommand{\bmG}{\bm{G}} 381 | \newcommand{\bmH}{\bm{H}} 382 | \newcommand{\bmI}{\bm{I}} 383 | \newcommand{\bmJ}{\bm{J}} 384 | \newcommand{\bmK}{\bm{K}} 385 | \newcommand{\bmL}{\bm{L}} 386 | \newcommand{\bmM}{\bm{M}} 387 | \newcommand{\bmN}{\bm{N}} 388 | \newcommand{\bmO}{\bm{O}} 389 | \newcommand{\bmP}{\bm{P}} 390 | \newcommand{\bmQ}{\bm{Q}} 391 | \newcommand{\bmR}{\bm{R}} 392 | \newcommand{\bmS}{\bm{S}} 393 | \newcommand{\bmT}{\bm{T}} 394 | \newcommand{\bmU}{\bm{U}} 395 | \newcommand{\bmV}{\bm{V}} 396 | \newcommand{\bmW}{\bm{W}} 397 | \newcommand{\bmX}{\bm{X}} 398 | \newcommand{\bmY}{\bm{Y}} 399 | \newcommand{\bmZ}{\bm{Z}} 400 | 401 | % mathcal 402 | \newcommand{\calA}{\mathcal{A}} 403 | \newcommand{\calB}{\mathcal{B}} 404 | \newcommand{\calC}{\mathcal{C}} 405 | \newcommand{\calD}{\mathcal{D}} 406 | \newcommand{\calE}{\mathcal{E}} 407 | \newcommand{\calF}{\mathcal{F}} 408 | \newcommand{\calG}{\mathcal{G}} 409 | \newcommand{\calH}{\mathcal{H}} 410 | \newcommand{\calI}{\mathcal{I}} 411 | \newcommand{\calJ}{\mathcal{J}} 412 | \newcommand{\calK}{\mathcal{K}} 413 | \newcommand{\calL}{\mathcal{L}} 414 | \newcommand{\calM}{\mathcal{M}} 415 | \newcommand{\calN}{\mathcal{N}} 416 | \newcommand{\calO}{\mathcal{O}} 417 | \newcommand{\calP}{\mathcal{P}} 418 | \newcommand{\calQ}{\mathcal{Q}} 419 | \newcommand{\calR}{\mathcal{R}} 420 | \newcommand{\calS}{\mathcal{S}} 421 | \newcommand{\calT}{\mathcal{T}} 422 | \newcommand{\calU}{\mathcal{U}} 423 | \newcommand{\calV}{\mathcal{V}} 424 | \newcommand{\calW}{\mathcal{W}} 425 | \newcommand{\calX}{\mathcal{X}} 426 | \newcommand{\calY}{\mathcal{Y}} 427 | \newcommand{\calZ}{\mathcal{Z}} 428 | 429 | % mathfrak 430 | \newcommand{\fraka}{\mathfrak{a}} 431 | \newcommand{\frakb}{\mathfrak{b}} 432 | \newcommand{\frakc}{\mathfrak{c}} 433 | \newcommand{\frakd}{\mathfrak{d}} 434 | \newcommand{\frake}{\mathfrak{e}} 435 | \newcommand{\frakf}{\mathfrak{f}} 436 | \newcommand{\frakg}{\mathfrak{g}} 437 | \newcommand{\frakh}{\mathfrak{h}} 438 | \newcommand{\fraki}{\mathfrak{i}} 439 | \newcommand{\frakj}{\mathfrak{j}} 440 | \newcommand{\frakk}{\mathfrak{k}} 441 | \newcommand{\frakl}{\mathfrak{l}} 442 | \newcommand{\frakm}{\mathfrak{m}} 443 | \newcommand{\frakn}{\mathfrak{n}} 444 | \newcommand{\frako}{\mathfrak{o}} 445 | \newcommand{\frakp}{\mathfrak{p}} 446 | \newcommand{\frakq}{\mathfrak{q}} 447 | \newcommand{\frakr}{\mathfrak{r}} 448 | \newcommand{\fraks}{\mathfrak{s}} 449 | \newcommand{\frakt}{\mathfrak{t}} 450 | \newcommand{\fraku}{\mathfrak{u}} 451 | \newcommand{\frakv}{\mathfrak{v}} 452 | \newcommand{\frakw}{\mathfrak{w}} 453 | \newcommand{\frakx}{\mathfrak{x}} 454 | \newcommand{\fraky}{\mathfrak{y}} 455 | \newcommand{\frakz}{\mathfrak{z}} 456 | \newcommand{\frakA}{\mathfrak{A}} 457 | \newcommand{\frakB}{\mathfrak{B}} 458 | \newcommand{\frakC}{\mathfrak{C}} 459 | \newcommand{\frakD}{\mathfrak{D}} 460 | \newcommand{\frakE}{\mathfrak{E}} 461 | \newcommand{\frakF}{\mathfrak{F}} 462 | \newcommand{\frakG}{\mathfrak{G}} 463 | \newcommand{\frakH}{\mathfrak{H}} 464 | \newcommand{\frakI}{\mathfrak{I}} 465 | \newcommand{\frakJ}{\mathfrak{J}} 466 | \newcommand{\frakK}{\mathfrak{K}} 467 | \newcommand{\frakL}{\mathfrak{L}} 468 | \newcommand{\frakM}{\mathfrak{M}} 469 | \newcommand{\frakN}{\mathfrak{N}} 470 | \newcommand{\frakO}{\mathfrak{O}} 471 | \newcommand{\frakP}{\mathfrak{P}} 472 | \newcommand{\frakQ}{\mathfrak{Q}} 473 | \newcommand{\frakR}{\mathfrak{R}} 474 | \newcommand{\frakS}{\mathfrak{S}} 475 | \newcommand{\frakT}{\mathfrak{T}} 476 | \newcommand{\frakU}{\mathfrak{U}} 477 | \newcommand{\frakV}{\mathfrak{V}} 478 | \newcommand{\frakW}{\mathfrak{W}} 479 | \newcommand{\frakX}{\mathfrak{X}} 480 | \newcommand{\frakY}{\mathfrak{Y}} 481 | \newcommand{\frakZ}{\mathfrak{Z}} 482 | 483 | % mathrm 484 | \newcommand{\rma}{\mathrm{a}} 485 | \newcommand{\rmb}{\mathrm{b}} 486 | \newcommand{\rmc}{\mathrm{c}} 487 | \newcommand{\rmd}{\mathrm{d}} 488 | \newcommand{\rme}{\mathrm{e}} 489 | \newcommand{\rmf}{\mathrm{f}} 490 | \newcommand{\rmg}{\mathrm{g}} 491 | \newcommand{\rmh}{\mathrm{h}} 492 | \newcommand{\rmi}{\mathrm{i}} 493 | \newcommand{\rmj}{\mathrm{j}} 494 | \newcommand{\rmk}{\mathrm{k}} 495 | \newcommand{\rml}{\mathrm{l}} 496 | \newcommand{\rmm}{\mathrm{m}} 497 | \newcommand{\rmn}{\mathrm{n}} 498 | \newcommand{\rmo}{\mathrm{o}} 499 | \newcommand{\rmp}{\mathrm{p}} 500 | \newcommand{\rmq}{\mathrm{q}} 501 | \newcommand{\rmr}{\mathrm{r}} 502 | \newcommand{\rms}{\mathrm{s}} 503 | \newcommand{\rmt}{\mathrm{t}} 504 | \newcommand{\rmu}{\mathrm{u}} 505 | \newcommand{\rmv}{\mathrm{v}} 506 | \newcommand{\rmw}{\mathrm{w}} 507 | \newcommand{\rmx}{\mathrm{x}} 508 | \newcommand{\rmy}{\mathrm{y}} 509 | \newcommand{\rmz}{\mathrm{z}} 510 | \newcommand{\rmA}{\mathrm{A}} 511 | \newcommand{\rmB}{\mathrm{B}} 512 | \newcommand{\rmC}{\mathrm{C}} 513 | \newcommand{\rmD}{\mathrm{D}} 514 | \newcommand{\rmE}{\mathrm{E}} 515 | \newcommand{\rmF}{\mathrm{F}} 516 | \newcommand{\rmG}{\mathrm{G}} 517 | \newcommand{\rmH}{\mathrm{H}} 518 | \newcommand{\rmI}{\mathrm{I}} 519 | \newcommand{\rmJ}{\mathrm{J}} 520 | \newcommand{\rmK}{\mathrm{K}} 521 | \newcommand{\rmL}{\mathrm{L}} 522 | \newcommand{\rmM}{\mathrm{M}} 523 | \newcommand{\rmN}{\mathrm{N}} 524 | \newcommand{\rmO}{\mathrm{O}} 525 | \newcommand{\rmP}{\mathrm{P}} 526 | \newcommand{\rmQ}{\mathrm{Q}} 527 | \newcommand{\rmR}{\mathrm{R}} 528 | \newcommand{\rmS}{\mathrm{S}} 529 | \newcommand{\rmT}{\mathrm{T}} 530 | \newcommand{\rmU}{\mathrm{U}} 531 | \newcommand{\rmV}{\mathrm{V}} 532 | \newcommand{\rmW}{\mathrm{W}} 533 | \newcommand{\rmX}{\mathrm{X}} 534 | \newcommand{\rmY}{\mathrm{Y}} 535 | \newcommand{\rmZ}{\mathrm{Z}} -------------------------------------------------------------------------------- /EN/Document-EN.bbl: -------------------------------------------------------------------------------- 1 | % Generated by IEEEtran.bst, version: 1.14 (2015/08/26) 2 | \begin{thebibliography}{1} 3 | \providecommand{\url}[1]{#1} 4 | \csname url@samestyle\endcsname 5 | \providecommand{\newblock}{\relax} 6 | \providecommand{\bibinfo}[2]{#2} 7 | \providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax} 8 | \providecommand{\BIBentryALTinterwordstretchfactor}{4} 9 | \providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus 10 | \BIBentryALTinterwordstretchfactor\fontdimen3\font minus 11 | \fontdimen4\font\relax} 12 | \providecommand{\BIBforeignlanguage}[2]{{% 13 | \expandafter\ifx\csname l@#1\endcsname\relax 14 | \typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}% 15 | \typeout{** loaded for the language `#1'. Using the pattern for}% 16 | \typeout{** the default language instead.}% 17 | \else 18 | \language=\csname l@#1\endcsname 19 | \fi 20 | #2}} 21 | \providecommand{\BIBdecl}{\relax} 22 | \BIBdecl 23 | 24 | \bibitem{fenics} 25 | A.~Logg, K.-A. Mardal, and G.~Wells, \emph{Automated solution of differential 26 | equations by the finite element method: The FEniCS book}.\hskip 1em plus 27 | 0.5em minus 0.4em\relax Springer Science \& Business Media, 2012, vol.~84. 28 | 29 | \bibitem{thomee} 30 | V.~Thomée, \emph{Galerkin Finite Element Methods for Parabolic Problems 31 | (Springer Series in Computational Mathematics)}.\hskip 1em plus 0.5em minus 32 | 0.4em\relax Springer-Verlag, 1984. 33 | 34 | \end{thebibliography} 35 | -------------------------------------------------------------------------------- /EN/Document-EN.blg: -------------------------------------------------------------------------------- 1 | This is BibTeX, Version 0.99d (TeX Live 2020) 2 | Capacity: max_strings=200000, hash_size=200000, hash_prime=170003 3 | The top-level auxiliary file: Document-EN.aux 4 | The style file: IEEEtran.bst 5 | Reallocated singl_function (elt_size=4) to 100 items from 50. 6 | Reallocated singl_function (elt_size=4) to 100 items from 50. 7 | Reallocated singl_function (elt_size=4) to 100 items from 50. 8 | Reallocated wiz_functions (elt_size=4) to 6000 items from 3000. 9 | Reallocated singl_function (elt_size=4) to 100 items from 50. 10 | Database file #1: refe.bib 11 | -- IEEEtran.bst version 1.14 (2015/08/26) by Michael Shell. 12 | -- http://www.michaelshell.org/tex/ieeetran/bibtex/ 13 | -- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information. 14 | 15 | Done. 16 | You've used 2 entries, 17 | 4087 wiz_defined-function locations, 18 | 832 strings with 7623 characters, 19 | and the built_in function-call counts, 897 in all, are: 20 | = -- 53 21 | > -- 17 22 | < -- 1 23 | + -- 8 24 | - -- 4 25 | * -- 48 26 | := -- 160 27 | add.period$ -- 4 28 | call.type$ -- 2 29 | change.case$ -- 0 30 | chr.to.int$ -- 0 31 | cite$ -- 2 32 | duplicate$ -- 62 33 | empty$ -- 98 34 | format.name$ -- 5 35 | if$ -- 191 36 | int.to.chr$ -- 0 37 | int.to.str$ -- 2 38 | missing$ -- 13 39 | newline$ -- 29 40 | num.names$ -- 2 41 | pop$ -- 38 42 | preamble$ -- 1 43 | purify$ -- 0 44 | quote$ -- 2 45 | skip$ -- 69 46 | stack$ -- 0 47 | substring$ -- 0 48 | swap$ -- 36 49 | text.length$ -- 1 50 | text.prefix$ -- 0 51 | top$ -- 5 52 | type$ -- 2 53 | warning$ -- 0 54 | while$ -- 2 55 | width$ -- 3 56 | write$ -- 37 57 | -------------------------------------------------------------------------------- /EN/Document-EN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/EN/Document-EN.pdf -------------------------------------------------------------------------------- /EN/Document-EN.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt]{article} 2 | \usepackage{matnoble-doc-en} 3 | \begin{document} 4 | 5 | \title{\bf {A \LaTeX{} Document Templates}} \author{\bf 6 | \href{https://matnoble.me/about/}{Ross}} \date{} 7 | 8 | \pagestyle{fancy} \fancyhead[L]{\textcolor{PrimaryColor}{\LaTeX{} 9 | Templates}} \fancyhead[R]{\textcolor{PrimaryColor}{Ross}} 10 | 11 | \maketitle 12 | \tableofcontents 13 | 14 | % footnote 15 | \footnote{\noindent \createtext{November 26, 2019} \newline 16 | \updatetext{\today}}. 17 | 18 | \clearpage 19 | \listoflistings 20 | 21 | \clearpage 22 | 23 | \section{Random Text} 24 | \lipsum[2-4] 25 | \clearpage 26 | 27 | \section{Common Eenvironment} 28 | 29 | \subsection{List} 30 | 31 | \subsubsection{Unordered list} 32 | \begin{itemize} 33 | \item Sth 34 | \item Sth 35 | \item $\cdots$ 36 | \end{itemize} 37 | \subsubsection{Ordered list} 38 | \begin{itemize} 39 | \item[(1)] Sth 40 | \item[(2)] Sth 41 | \item[(3)] $\cdots$ 42 | \end{itemize} 43 | \noindent {\bf More beautiful by using \autoref{mybox}} 44 | \begin{mybox}{12} 45 | \begin{itemize}[leftmargin = 10pt] 46 | \item Sth 47 | \item Sth 48 | \item $\cdots$ 49 | \end{itemize} 50 | \end{mybox} 51 | 52 | \begin{listing}[ht] 53 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 54 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 55 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 56 | \begin{mybox}{12} 57 | \begin{itemize}[leftmargin = 10pt] 58 | \item Sth 59 | \item Sth 60 | \item $\cdots$ 61 | \end{itemize} 62 | \end{mybox} 63 | \end{minted} 64 | \caption{\em mybox} 65 | \label{mybox} 66 | \end{listing} 67 | 68 | \clearpage 69 | \subsection{Table} 70 | \begin{table}[ht] 71 | \centering 72 | \begin{center} 73 | \caption{\em This is a table} 74 | \vskip 0.1in 75 | \label{table} 76 | \begin{tabular}{c|cccc} 77 | \hline 78 | \hline 79 | \rule{0pt}{3ex} 80 | NUMBER & NAME & AGE & ID & GENDER 81 | \rule[-1.2ex]{0pt}{0pt} \\\hline 82 | 001 & * & * & * & * \\ 83 | 002 & * & * & * & * \\ 84 | 003 & * & * & * & * \\ 85 | 004 & * & * & * & * \\ 86 | 005 & * & * & * & * \\ 87 | \hline 88 | \hline 89 | \end{tabular} 90 | \end{center} 91 | \end{table} 92 | 93 | \begin{listing}[ht] 94 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 95 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 96 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 97 | \begin{table}[ht] 98 | \centering 99 | \begin{center} 100 | \caption{\em This is a table} 101 | \vskip 0.1in 102 | \label{table} 103 | \begin{tabular}{c|cccc} 104 | \hline 105 | \hline 106 | \rule{0pt}{3ex} 107 | NUMBER & NAME & AGE & ID & GENDER 108 | \rule[-1.2ex]{0pt}{0pt} \\\hline 109 | 001 & * & * & * & * \\ 110 | 002 & * & * & * & * \\ 111 | 003 & * & * & * & * \\ 112 | 004 & * & * & * & * \\ 113 | 005 & * & * & * & * \\ 114 | \hline 115 | \hline 116 | \end{tabular} 117 | \end{center} 118 | \end{table} 119 | \end{minted} 120 | \caption{\em Table} 121 | \label{table} 122 | \end{listing} 123 | 124 | \clearpage 125 | \subsection{Figure} 126 | 127 | \subsubsection{figure} 128 | \begin{figure}[H] 129 | \centering \includegraphics[width=0.15\textwidth]{logo.png} 130 | \caption{\em figure} 131 | \label{fig:mesh} 132 | \end{figure} 133 | 134 | \subsubsection{subfigure} 135 | \begin{figure}[H] 136 | \centering 137 | \begin{subfigure}{.48\textwidth} 138 | \centering 139 | % include first image 140 | \includegraphics[width=.3\linewidth]{logo.png} 141 | \caption{\em subfigure 1} 142 | \label{fig:v21} 143 | \end{subfigure} 144 | \begin{subfigure}{.48\textwidth} 145 | \centering 146 | % include second image 147 | \includegraphics[width=.3\linewidth]{logo.png} 148 | \caption{\em subfigure 2} 149 | \label{fig:v22} 150 | \end{subfigure} 151 | \caption{\em subfigure} 152 | \label{fig:v2} 153 | \end{figure} 154 | 155 | \begin{listing}[ht] 156 | \begin{minted}[ frame=single, framesep=2mm, baselinestretch=1.2, 157 | bgcolor=MaterialBlue50, rulecolor=MaterialBlue, 158 | fontsize=\footnotesize, mathescape, autogobble ]{tex} 159 | \begin{figure}[H] 160 | \centering 161 | \begin{subfigure}{.48\textwidth} 162 | \centering 163 | % include first image 164 | \includegraphics[width=.5\linewidth]{google.png} 165 | \caption{\em subfigure 1} 166 | \label{fig:v21} 167 | \end{subfigure} 168 | \begin{subfigure}{.48\textwidth} 169 | \centering 170 | % include second image 171 | \includegraphics[width=.5\linewidth]{google.png} 172 | \caption{\em subfigure 2} 173 | \label{fig:v22} 174 | \end{subfigure} 175 | \caption{\em subfigure} 176 | \label{fig:v2} 177 | \end{figure} 178 | \end{minted} 179 | \caption{\em Subfigure} 180 | \label{subfigure} 181 | \end{listing} 182 | 183 | \clearpage 184 | 185 | \section{Theorem Class Environments} 186 | \begin{defn}{}{} 187 | 188 | \end{defn} 189 | 190 | \begin{lem}{}{} 191 | 192 | \end{lem} 193 | 194 | \begin{thm}{}{} 195 | \begin{case} 196 | 197 | \end{case} 198 | \begin{case} 199 | 200 | \end{case} 201 | \end{thm} 202 | 203 | \begin{rem} 204 | 205 | \end{rem} 206 | 207 | \begin{cor}{}{} 208 | 209 | \end{cor} 210 | 211 | \begin{exa} 212 | 213 | \end{exa} 214 | 215 | \begin{proof} 216 | 217 | \end{proof} 218 | 219 | \clearpage 220 | \section{Math Equations} 221 | 222 | \[ 223 | \int x^{2} \dif x 224 | \] 225 | 226 | To prove $a = b$, we need to prove 227 | 228 | {\bf No number} 229 | \[ 230 | a < b + \epsilon, \and b < a + \epsilon. 231 | \] 232 | 233 | {\bf Numbered} 234 | \begin{equation} 235 | \label{eq:1} 236 | a < b + \epsilon, \and b < a + \epsilon. 237 | \end{equation} 238 | 239 | \vskip2em 240 | 241 | PNP/Stokes equations 242 | \begin{empheq}[left=\empheqlbrace]{align} 243 | & \partial_{t} - \nabla\cdot[D_{i}(\nabla C_{i} + q_{i} \nabla 244 | \Phi C_{i}) - \bmu C_{i}] = F_{i}, 245 | \\[3pt] 246 | & -\nabla \cdot (\epsilon \nabla \Phi) = (C_{1} - C_{2}) + F_{3}, 247 | \\[3pt] 248 | & \partial_{t}\bmu - \Delta \bmu + \nabla p = -(C_{1} - 249 | C_{2})\nabla \Phi + F_{4}, 250 | \\[3pt] 251 | & \nabla \cdot \bmu = 0. 252 | \end{empheq} 253 | 254 | Matrix 255 | \[ 256 | \begin{bmatrix} 257 | 2 & -1 & 0\\ 258 | -1& 2 &-1\\ 259 | 0 & -1 & 2 260 | \end{bmatrix} 261 | \] 262 | 263 | \[ 264 | \left[ 265 | \begin{array}{c;{2pt/2pt}c} 266 | \begin{matrix} 267 | 1 & 12 & 3 & 8 \\ 268 | 14 & 5 & 16 &21\\ 269 | 7 & 18 & 9 &7 \\ \hdashline[2pt/2pt] 270 | 23 & 0 & -1 &8\\ 271 | \end{matrix} & 272 | \begin{matrix} 273 | 1 & 4 \\ 274 | 2 & 5 \\ 275 | 3 & 6 \\ \hdashline[2pt/2pt] 276 | 13 & 26 \\ 277 | \end{matrix} 278 | \end{array} 279 | \right] 280 | \] 281 | 282 | \[ 283 | \begin{bmatrix} 284 | \begin{array}{c | c} 285 | \boldsymbol{A} & \bm{\beta} \\ \hline 286 | \bm{\alpha}^{\mathsf T} & 0 287 | \end{array} 288 | \end{bmatrix} 289 | \] 290 | 291 | \clearpage 292 | \section{BibTeX Style Refereences} 293 | 294 | FeniCS \cite{fenics} 295 | 296 | Garlerkin Finite Element Methonds for Parabolic Problems \cite{thomee} 297 | 298 | \clearpage 299 | % -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-% 300 | % References -%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-%-% 301 | 302 | \bibliographystyle{IEEEtran} \bibliography{refe} 303 | 304 | \clearpage 305 | 306 | \begin{appendices} 307 | \section{Codes} 308 | \begin{listing}[ht] 309 | \begin{minted}[ frame=single, framesep=2mm, 310 | baselinestretch=1.2, bgcolor=MaterialBlue50, 311 | rulecolor=MaterialBlue, fontsize=\footnotesize, linenos, 312 | mathescape, autogobble ]{python} 313 | import matplotlib.pyplot as plt import numpy as np 314 | 315 | plt.figure(num = 1, figsize=(8, 6)) n = 316 | np.linspace(1,100,100) plt.plot(n, 1/n, 'bx') 317 | plt.xlabel(r'$ n $') plt.ylabel(r'$ \frac{1}{n} $') 318 | 319 | plt.figure(num = 2, figsize=(8, 6)) n = 320 | np.linspace(1,100,100) plt.plot(n, np.sin(n)/n, 'bx') 321 | plt.xlabel(r'$ n $') plt.ylabel(r'$ \frac{\sin(n)}{n} $') 322 | 323 | plt.show() 324 | \end{minted} 325 | \caption{\em Python} 326 | \end{listing} 327 | 328 | \begin{listing}[ht] 329 | \begin{minted}[ frame=single, framesep=2mm, 330 | baselinestretch=1.2, bgcolor=MaterialBlue50, 331 | rulecolor=MaterialBlue, fontsize=\footnotesize, linenos, 332 | mathescape, autogobble ]{matlab} 333 | figure() plot(XX,YY,'k-'),hold on plot(XX',YY','k-'), hold 334 | on B= plot(boundary(3,:), boundary(4,:), 'b.', 335 | 'markersize', 25); hold on I = plot(index(:,1), 336 | index(:,2), 'r.', 'markersize',25); hold off axis equal 337 | set(gca,'xtick',[],'ytick',[]) xlim(X) ylim(Y) 338 | set(gca,'looseInset',[0 0.01 0 0.01]) h = legend([B, I], 339 | 'boundary nodes', 'inside nodes', 340 | 'Location','bestoutside'); set(h, 'Fontsize', 10) 341 | \end{minted} 342 | \caption{\em Matlab} 343 | \end{listing} 344 | \end{appendices} 345 | 346 | \end{document} 347 | -------------------------------------------------------------------------------- /EN/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/EN/images/logo.png -------------------------------------------------------------------------------- /EN/matnoble-doc-en.sty: -------------------------------------------------------------------------------- 1 | % 2 | % 个人自用文档样式 3 | % 4 | \NeedsTeXFormat{LaTeX2e} 5 | \ProvidesPackage{matnoble-doc-en}[2020/08/11 v1.5 updated by Ross] 6 | %% Blog 7 | % https://matnoble.me 8 | %% Gmail 9 | % hustmatnoble@gmail.com 10 | %% GitHub 11 | % https://github.com/MatNoble 12 | 13 | \usepackage[T1]{fontenc} 14 | \usepackage[english]{babel} 15 | 16 | % 数学宏包 17 | \usepackage{amsmath,amsthm,amsfonts,amssymb,bm} 18 | 19 | % 公式字体 20 | % \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo,amsbb,eucal]{mtpro2} 21 | \usepackage{newtxmath} % 打印 times 22 | % \usepackage{charter} % 屏读 23 | % \usepackage{fourier} 24 | 25 | % 英文字体 26 | \usepackage{fontspec} 27 | % \setmainfont{TeX Gyre Termes} 28 | % \setsansfont{TeX Gyre Heros} 29 | % \setmonofont{TeX Gyre Cursor} 30 | % 西文字体 31 | \setmainfont{Times New Roman} 32 | \setsansfont{Helvetica} % Windows 下可使用类似的 Arial 字体 33 | \setmonofont{Courier New} 34 | 35 | % 页面设置 36 | \RequirePackage{geometry} 37 | \RequirePackage{calrsfs, wasysym, verbatim, empheq} 38 | \RequirePackage[nottoc]{tocbibind} 39 | 40 | % 代码高亮 41 | \RequirePackage{minted} 42 | \usemintedstyle{emacs} 43 | \renewcommand\listoflistingscaption{List of source codes} 44 | 45 | \RequirePackage{titlesec} 46 | \RequirePackage{titletoc} 47 | \usepackage{tocloft} 48 | % \setlength\cftparskip{-2pt} 49 | % \setlength\cftbeforesecskip{1pt} 50 | % \setlength\cftaftertoctitleskip{2pt} 51 | 52 | % 代码提示 53 | \RequirePackage{listings} 54 | % 设置颜色 55 | \RequirePackage{xcolor-material} 56 | \colorlet{PrimaryColor}{GoogleBlue} 57 | \colorlet{mc}{GoogleRed} 58 | 59 | % 更加现代定理、引用提示 60 | \RequirePackage{tcolorbox} 61 | %%% tcolorbox %%% 62 | \tcbuselibrary{theorems} 63 | \tcbuselibrary{skins} 64 | \tcbsetforeverylayer{enhanced} 65 | % 表格 66 | \RequirePackage{tabularx,array} 67 | %% 长表格 68 | \RequirePackage{longtable} 69 | %% booktabs 提供了\toprule 等命令. 70 | \RequirePackage{booktabs} 71 | %% multirow 支持在表格中跨行 72 | \RequirePackage{multirow} 73 | %% 调整间隔, 让表格更好看些 74 | \RequirePackage{bigstrut} 75 | %% 在跨行表格中输入定界符 76 | \RequirePackage{bigdelim} 77 | % 首行缩进 78 | \RequirePackage{indentfirst} 79 | % 设置浮动体的标题 80 | \RequirePackage{subcaption} 81 | \RequirePackage{float} 82 | % ref 83 | \RequirePackage{hyperref} 84 | % 页眉 85 | \RequirePackage{fancyhdr} 86 | % item 87 | \RequirePackage[shortlabels,inline]{enumitem} 88 | \setlist{nolistsep} 89 | % 英文随机文本 90 | \RequirePackage{lipsum} 91 | % 矩阵虚线 92 | \RequirePackage{arydshln} 93 | 94 | \RequirePackage[title,titletoc]{appendix} 95 | 96 | % 引入脚注的包 97 | \RequirePackage[marginal]{footmisc} 98 | \renewcommand{\thefootnote}{} 99 | 100 | \geometry{tmargin=.85in, bmargin=.85in, lmargin=.75in, rmargin = .75in} 101 | 102 | % 行距设置 103 | \RequirePackage{setspace} 104 | \setstretch{1.2} 105 | 106 | \setlength{\parskip}{3mm} 107 | \setlength{\parindent}{2em} 108 | 109 | \fancyhf{} 110 | \pagestyle{fancy} 111 | % \fancyhead[L]{\textcolor{PrimaryColor}{\leftmark}} 112 | \fancyfoot[C]{\footnotesize\textcolor{MaterialGrey}{\thepage}} 113 | % \fancyhead[R]{\textcolor{PrimaryColor}{\rightmark}} 114 | \renewcommand{\headrule}{\color{PrimaryColor}\hrule width\textwidth height\headrulewidth\hfill} 115 | \renewcommand{\headrulewidth}{1.2pt} 116 | \renewcommand{\footrulewidth}{0pt} 117 | 118 | \newtheoremstyle{plain}{3pt}{3pt}{\itshape}{}{\color{PrimaryColor}\bfseries}{}{0.5em}{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} 119 | 120 | \fancypagestyle{plain}{% 121 | \renewcommand{\headrulewidth}{0pt}% 122 | \renewcommand{\headrule}{\hrule height\headrulewidth\hfill} 123 | \fancyhf{}% 124 | \fancyfoot[C]{\footnotesize \textcolor{MaterialGrey}{\thepage}}% 125 | } 126 | 127 | % 关于图片 graphicx 128 | \RequirePackage{graphicx} 129 | % 如果图片没有指定后缀, 依次按下列顺序搜索 130 | \DeclareGraphicsExtensions{.eps,.pdf,.jpg,.png} 131 | % 设置图表搜索路径, 可以给图表文件夹取如下名字 132 | \graphicspath{{figures/}{figure/}{pictures/}% 133 | {picture/}{pic/}{pics/}{image/}{images/}} 134 | 135 | % caption settings 136 | \RequirePackage[font=small, labelfont={bf, color=PrimaryColor}]{caption} 137 | \captionsetup{labelsep=quad} 138 | \captionsetup[figure]{position=bottom,skip={2pt}} 139 | \captionsetup[table]{position=top,skip={2pt}} 140 | 141 | \allowdisplaybreaks 142 | 143 | % \renewcommand{\theequation}{\thesection.\arabic{equation}} 144 | 145 | \newtheoremstyle{thmm}{1.5ex plus 1ex minus .2ex}{1.5ex plus 1ex minus 146 | .2ex}{\rmfamily}{}{\bfseries}{}{1em}{} 147 | \theoremstyle{thmm} 148 | \newtcbtheorem[number within=section]{thm}{\bf Theorem}{ 149 | boxrule=0.1mm, 150 | before upper={\parindent2em}, 151 | colback=MaterialGreen50, 152 | colframe=GoogleGreen, 153 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 154 | boxed title style={colback=GoogleGreen} 155 | }{} 156 | \newtcbtheorem[number within=section]{lem}{\bf Lemma}{ 157 | boxrule=0.1mm, 158 | before upper={\parindent2em}, 159 | colback=MaterialYellow50, 160 | colframe=GoogleYellow, 161 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 162 | boxed title style={colback=GoogleYellow} 163 | }{} 164 | \newtcbtheorem[number within=section]{cor}{\bf Corollary}{ 165 | boxrule=0.1mm, 166 | before upper={\parindent2em}, 167 | colback=MaterialRed50, 168 | colframe=GoogleRed, 169 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 170 | boxed title style={colback=GoogleRed} 171 | }{} 172 | \theoremstyle{definition} % 173 | \newtcbtheorem[number within=section]{defn}{\bf Definition}{ 174 | boxrule=0.1mm, 175 | before upper={\parindent2em}, 176 | colback=MaterialBlue50, 177 | colframe=GoogleBlue, 178 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 179 | boxed title style={colback=GoogleBlue} 180 | }{} 181 | \newtheorem{exa}{Example}[section] 182 | \theoremstyle{remark} 183 | \newtheorem{rem}{Remark}[section] 184 | \newtheorem*{note}{Note} 185 | \newtheorem{case}{Case} 186 | 187 | \renewenvironment{proof}[1][Proof]{\noindent\textit{#1. } }{\hfill$\square$} 188 | \def \endproof{\vrule height8pt width 5pt depth 0pt} 189 | \def\refe#1{(\ref{#1})} 190 | \def\proof{\noindent{\bf Proof.}\hskip2mm} 191 | 192 | \newcommand\createtext{Created: }% 193 | \newcommand\updatetext{Last Updated: }% 194 | 195 | \setcounter{secnumdepth}{3} 196 | \setcounter{tocdepth}{3} 197 | \renewcommand{\contentsname}{\LARGE \textcolor{PrimaryColor}{Contents}} 198 | \titleformat{\section} 199 | {\Large\bfseries\centering\color{PrimaryColor}}{\thesection.}{0.5em}{} 200 | 201 | \newtcolorbox{mybox}[2][]{colbacktitle=red!10!white, colback=blue!10!white,coltitle=red!70!black, title={#2},fonttitle=\bfseries,#1} 202 | 203 | %%% 链接设置 %%% 204 | \hypersetup{ 205 | colorlinks=true, 206 | linkcolor=GoogleRed, 207 | urlcolor=GoogleBlue, 208 | % filecolor=GoogleGreen, 209 | } 210 | 211 | %%% 代码高亮设置 %%% 212 | \tcbuselibrary{listings} 213 | 214 | \lstset{ 215 | frame=single, 216 | frameround=tttt, 217 | framesep=1pt, 218 | framextopmargin=6pt, 219 | framexbottommargin=6pt, 220 | tabsize=4, 221 | breaklines=true, 222 | upquote=true, 223 | captionpos=b, 224 | basicstyle=\footnotesize, 225 | backgroundcolor=\color{MaterialBlue50}, 226 | rulecolor=\color{MaterialBlue}, 227 | identifierstyle=\color{MaterialBlue800}, 228 | commentstyle=\itshape\color{MaterialGreen700}, 229 | stringstyle=\bfseries\color{MaterialAmber800}, 230 | keywordstyle=\bfseries\color{MaterialPurple700}, 231 | numberstyle=\bfseries\color{MaterialGrey800}, 232 | } 233 | 234 | \RequirePackage{accents} 235 | \newcommand{\dbtilde}[1]{\accentset{\approx}{#1}} 236 | \newcommand{\Cdot}{\boldsymbol{\cdot}} 237 | 238 | % equation 239 | \newcommand*{\dif}{\mathop{}\!\mathrm{d}} 240 | 241 | % mathbb 242 | \newcommand{\bba}{\mathbb{a}} 243 | \newcommand{\bbb}{\mathbb{b}} 244 | \newcommand{\bbc}{\mathbb{c}} 245 | \newcommand{\bbd}{\mathbb{d}} 246 | \newcommand{\bbe}{\mathbb{e}} 247 | \newcommand{\bbf}{\mathbb{f}} 248 | \newcommand{\bbg}{\mathbb{g}} 249 | \newcommand{\bbh}{\mathbb{h}} 250 | \newcommand{\bbi}{\mathbb{i}} 251 | \newcommand{\bbj}{\mathbb{j}} 252 | \newcommand{\bbk}{\mathbb{k}} 253 | \newcommand{\bbl}{\mathbb{l}} 254 | \newcommand{\bbm}{\mathbb{m}} 255 | \newcommand{\bbn}{\mathbb{n}} 256 | \newcommand{\bbo}{\mathbb{o}} 257 | \newcommand{\bbp}{\mathbb{p}} 258 | \newcommand{\bbq}{\mathbb{q}} 259 | \newcommand{\bbr}{\mathbb{r}} 260 | \newcommand{\bbs}{\mathbb{s}} 261 | \newcommand{\bbt}{\mathbb{t}} 262 | \newcommand{\bbu}{\mathbb{u}} 263 | \newcommand{\bbv}{\mathbb{v}} 264 | \newcommand{\bbw}{\mathbb{w}} 265 | \newcommand{\bbx}{\mathbb{x}} 266 | \newcommand{\bby}{\mathbb{y}} 267 | \newcommand{\bbz}{\mathbb{z}} 268 | \newcommand{\bbA}{\mathbb{A}} 269 | \newcommand{\bbB}{\mathbb{B}} 270 | \newcommand{\bbC}{\mathbb{C}} 271 | \newcommand{\bbD}{\mathbb{D}} 272 | \newcommand{\bbE}{\mathbb{E}} 273 | \newcommand{\bbF}{\mathbb{F}} 274 | \newcommand{\bbG}{\mathbb{G}} 275 | \newcommand{\bbH}{\mathbb{H}} 276 | \newcommand{\bbI}{\mathbb{I}} 277 | \newcommand{\bbJ}{\mathbb{J}} 278 | \newcommand{\bbK}{\mathbb{K}} 279 | \newcommand{\bbL}{\mathbb{L}} 280 | \newcommand{\bbM}{\mathbb{M}} 281 | \newcommand{\bbN}{\mathbb{N}} 282 | \newcommand{\bbO}{\mathbb{O}} 283 | \newcommand{\bbP}{\mathbb{P}} 284 | \newcommand{\bbQ}{\mathbb{Q}} 285 | \newcommand{\bbR}{\mathbb{R}} 286 | \newcommand{\bbS}{\mathbb{S}} 287 | \newcommand{\bbT}{\mathbb{T}} 288 | \newcommand{\bbU}{\mathbb{U}} 289 | \newcommand{\bbV}{\mathbb{V}} 290 | \newcommand{\bbW}{\mathbb{W}} 291 | \newcommand{\bbX}{\mathbb{X}} 292 | \newcommand{\bbY}{\mathbb{Y}} 293 | \newcommand{\bbZ}{\mathbb{Z}} 294 | 295 | % mathbf 296 | \newcommand{\bfa}{\mathbf{a}} 297 | \newcommand{\bfb}{\mathbf{b}} 298 | \newcommand{\bfc}{\mathbf{c}} 299 | \newcommand{\bfd}{\mathbf{d}} 300 | \newcommand{\bfe}{\mathbf{e}} 301 | \newcommand{\bff}{\mathbf{f}} 302 | \newcommand{\bfg}{\mathbf{g}} 303 | \newcommand{\bfh}{\mathbf{h}} 304 | \newcommand{\bfi}{\mathbf{i}} 305 | \newcommand{\bfj}{\mathbf{j}} 306 | \newcommand{\bfk}{\mathbf{k}} 307 | \newcommand{\bfl}{\mathbf{l}} 308 | \newcommand{\bfm}{\mathbf{m}} 309 | \newcommand{\bfn}{\mathbf{n}} 310 | \newcommand{\bfo}{\mathbf{o}} 311 | \newcommand{\bfp}{\mathbf{p}} 312 | \newcommand{\bfq}{\mathbf{q}} 313 | \newcommand{\bfr}{\mathbf{r}} 314 | \newcommand{\bfs}{\mathbf{s}} 315 | \newcommand{\bft}{\mathbf{t}} 316 | \newcommand{\bfu}{\mathbf{u}} 317 | \newcommand{\bfv}{\mathbf{v}} 318 | \newcommand{\bfw}{\mathbf{w}} 319 | \newcommand{\bfx}{\mathbf{x}} 320 | \newcommand{\bfy}{\mathbf{y}} 321 | \newcommand{\bfz}{\mathbf{z}} 322 | \newcommand{\bfA}{\mathbf{A}} 323 | \newcommand{\bfB}{\mathbf{B}} 324 | \newcommand{\bfC}{\mathbf{C}} 325 | \newcommand{\bfD}{\mathbf{D}} 326 | \newcommand{\bfE}{\mathbf{E}} 327 | \newcommand{\bfF}{\mathbf{F}} 328 | \newcommand{\bfG}{\mathbf{G}} 329 | \newcommand{\bfH}{\mathbf{H}} 330 | \newcommand{\bfI}{\mathbf{I}} 331 | \newcommand{\bfJ}{\mathbf{J}} 332 | \newcommand{\bfK}{\mathbf{K}} 333 | \newcommand{\bfL}{\mathbf{L}} 334 | \newcommand{\bfM}{\mathbf{M}} 335 | \newcommand{\bfN}{\mathbf{N}} 336 | \newcommand{\bfO}{\mathbf{O}} 337 | \newcommand{\bfP}{\mathbf{P}} 338 | \newcommand{\bfQ}{\mathbf{Q}} 339 | \newcommand{\bfR}{\mathbf{R}} 340 | \newcommand{\bfS}{\mathbf{S}} 341 | \newcommand{\bfT}{\mathbf{T}} 342 | \newcommand{\bfU}{\mathbf{U}} 343 | \newcommand{\bfV}{\mathbf{V}} 344 | \newcommand{\bfW}{\mathbf{W}} 345 | \newcommand{\bfX}{\mathbf{X}} 346 | \newcommand{\bfY}{\mathbf{Y}} 347 | \newcommand{\bfZ}{\mathbf{Z}} 348 | 349 | % mathbfit (bm) 350 | \newcommand{\bma}{\bm{a}} 351 | \newcommand{\bmb}{\bm{b}} 352 | \newcommand{\bmc}{\bm{c}} 353 | \newcommand{\bmd}{\bm{d}} 354 | \newcommand{\bme}{\bm{e}} 355 | \newcommand{\bmf}{\bm{f}} 356 | \newcommand{\bmg}{\bm{g}} 357 | \newcommand{\bmh}{\bm{h}} 358 | \newcommand{\bmi}{\bm{i}} 359 | \newcommand{\bmj}{\bm{j}} 360 | \newcommand{\bmk}{\bm{k}} 361 | \newcommand{\bml}{\bm{l}} 362 | \newcommand{\bmm}{\bm{m}} 363 | \newcommand{\bmn}{\bm{n}} 364 | \newcommand{\bmo}{\bm{o}} 365 | \newcommand{\bmp}{\bm{p}} 366 | \newcommand{\bmq}{\bm{q}} 367 | \newcommand{\bmr}{\bm{r}} 368 | \newcommand{\bms}{\bm{s}} 369 | \newcommand{\bmt}{\bm{t}} 370 | \newcommand{\bmu}{\bm{u}} 371 | \newcommand{\bmv}{\bm{v}} 372 | \newcommand{\bmw}{\bm{w}} 373 | \newcommand{\bmx}{\bm{x}} 374 | \newcommand{\bmy}{\bm{y}} 375 | \newcommand{\bmz}{\bm{z}} 376 | \newcommand{\bmA}{\bm{A}} 377 | \newcommand{\bmB}{\bm{B}} 378 | \newcommand{\bmC}{\bm{C}} 379 | \newcommand{\bmD}{\bm{D}} 380 | \newcommand{\bmE}{\bm{E}} 381 | \newcommand{\bmF}{\bm{F}} 382 | \newcommand{\bmG}{\bm{G}} 383 | \newcommand{\bmH}{\bm{H}} 384 | \newcommand{\bmI}{\bm{I}} 385 | \newcommand{\bmJ}{\bm{J}} 386 | \newcommand{\bmK}{\bm{K}} 387 | \newcommand{\bmL}{\bm{L}} 388 | \newcommand{\bmM}{\bm{M}} 389 | \newcommand{\bmN}{\bm{N}} 390 | \newcommand{\bmO}{\bm{O}} 391 | \newcommand{\bmP}{\bm{P}} 392 | \newcommand{\bmQ}{\bm{Q}} 393 | \newcommand{\bmR}{\bm{R}} 394 | \newcommand{\bmS}{\bm{S}} 395 | \newcommand{\bmT}{\bm{T}} 396 | \newcommand{\bmU}{\bm{U}} 397 | \newcommand{\bmV}{\bm{V}} 398 | \newcommand{\bmW}{\bm{W}} 399 | \newcommand{\bmX}{\bm{X}} 400 | \newcommand{\bmY}{\bm{Y}} 401 | \newcommand{\bmZ}{\bm{Z}} 402 | 403 | % mathcal 404 | \newcommand{\calA}{\mathcal{A}} 405 | \newcommand{\calB}{\mathcal{B}} 406 | \newcommand{\calC}{\mathcal{C}} 407 | \newcommand{\calD}{\mathcal{D}} 408 | \newcommand{\calE}{\mathcal{E}} 409 | \newcommand{\calF}{\mathcal{F}} 410 | \newcommand{\calG}{\mathcal{G}} 411 | \newcommand{\calH}{\mathcal{H}} 412 | \newcommand{\calI}{\mathcal{I}} 413 | \newcommand{\calJ}{\mathcal{J}} 414 | \newcommand{\calK}{\mathcal{K}} 415 | \newcommand{\calL}{\mathcal{L}} 416 | \newcommand{\calM}{\mathcal{M}} 417 | \newcommand{\calN}{\mathcal{N}} 418 | \newcommand{\calO}{\mathcal{O}} 419 | \newcommand{\calP}{\mathcal{P}} 420 | \newcommand{\calQ}{\mathcal{Q}} 421 | \newcommand{\calR}{\mathcal{R}} 422 | \newcommand{\calS}{\mathcal{S}} 423 | \newcommand{\calT}{\mathcal{T}} 424 | \newcommand{\calU}{\mathcal{U}} 425 | \newcommand{\calV}{\mathcal{V}} 426 | \newcommand{\calW}{\mathcal{W}} 427 | \newcommand{\calX}{\mathcal{X}} 428 | \newcommand{\calY}{\mathcal{Y}} 429 | \newcommand{\calZ}{\mathcal{Z}} 430 | 431 | % mathfrak 432 | \newcommand{\fraka}{\mathfrak{a}} 433 | \newcommand{\frakb}{\mathfrak{b}} 434 | \newcommand{\frakc}{\mathfrak{c}} 435 | \newcommand{\frakd}{\mathfrak{d}} 436 | \newcommand{\frake}{\mathfrak{e}} 437 | \newcommand{\frakf}{\mathfrak{f}} 438 | \newcommand{\frakg}{\mathfrak{g}} 439 | \newcommand{\frakh}{\mathfrak{h}} 440 | \newcommand{\fraki}{\mathfrak{i}} 441 | \newcommand{\frakj}{\mathfrak{j}} 442 | \newcommand{\frakk}{\mathfrak{k}} 443 | \newcommand{\frakl}{\mathfrak{l}} 444 | \newcommand{\frakm}{\mathfrak{m}} 445 | \newcommand{\frakn}{\mathfrak{n}} 446 | \newcommand{\frako}{\mathfrak{o}} 447 | \newcommand{\frakp}{\mathfrak{p}} 448 | \newcommand{\frakq}{\mathfrak{q}} 449 | \newcommand{\frakr}{\mathfrak{r}} 450 | \newcommand{\fraks}{\mathfrak{s}} 451 | \newcommand{\frakt}{\mathfrak{t}} 452 | \newcommand{\fraku}{\mathfrak{u}} 453 | \newcommand{\frakv}{\mathfrak{v}} 454 | \newcommand{\frakw}{\mathfrak{w}} 455 | \newcommand{\frakx}{\mathfrak{x}} 456 | \newcommand{\fraky}{\mathfrak{y}} 457 | \newcommand{\frakz}{\mathfrak{z}} 458 | \newcommand{\frakA}{\mathfrak{A}} 459 | \newcommand{\frakB}{\mathfrak{B}} 460 | \newcommand{\frakC}{\mathfrak{C}} 461 | \newcommand{\frakD}{\mathfrak{D}} 462 | \newcommand{\frakE}{\mathfrak{E}} 463 | \newcommand{\frakF}{\mathfrak{F}} 464 | \newcommand{\frakG}{\mathfrak{G}} 465 | \newcommand{\frakH}{\mathfrak{H}} 466 | \newcommand{\frakI}{\mathfrak{I}} 467 | \newcommand{\frakJ}{\mathfrak{J}} 468 | \newcommand{\frakK}{\mathfrak{K}} 469 | \newcommand{\frakL}{\mathfrak{L}} 470 | \newcommand{\frakM}{\mathfrak{M}} 471 | \newcommand{\frakN}{\mathfrak{N}} 472 | \newcommand{\frakO}{\mathfrak{O}} 473 | \newcommand{\frakP}{\mathfrak{P}} 474 | \newcommand{\frakQ}{\mathfrak{Q}} 475 | \newcommand{\frakR}{\mathfrak{R}} 476 | \newcommand{\frakS}{\mathfrak{S}} 477 | \newcommand{\frakT}{\mathfrak{T}} 478 | \newcommand{\frakU}{\mathfrak{U}} 479 | \newcommand{\frakV}{\mathfrak{V}} 480 | \newcommand{\frakW}{\mathfrak{W}} 481 | \newcommand{\frakX}{\mathfrak{X}} 482 | \newcommand{\frakY}{\mathfrak{Y}} 483 | \newcommand{\frakZ}{\mathfrak{Z}} 484 | 485 | % mathrm 486 | \newcommand{\rma}{\mathrm{a}} 487 | \newcommand{\rmb}{\mathrm{b}} 488 | \newcommand{\rmc}{\mathrm{c}} 489 | \newcommand{\rmd}{\mathrm{d}} 490 | \newcommand{\rme}{\mathrm{e}} 491 | \newcommand{\rmf}{\mathrm{f}} 492 | \newcommand{\rmg}{\mathrm{g}} 493 | \newcommand{\rmh}{\mathrm{h}} 494 | \newcommand{\rmi}{\mathrm{i}} 495 | \newcommand{\rmj}{\mathrm{j}} 496 | \newcommand{\rmk}{\mathrm{k}} 497 | \newcommand{\rml}{\mathrm{l}} 498 | \newcommand{\rmm}{\mathrm{m}} 499 | \newcommand{\rmn}{\mathrm{n}} 500 | \newcommand{\rmo}{\mathrm{o}} 501 | \newcommand{\rmp}{\mathrm{p}} 502 | \newcommand{\rmq}{\mathrm{q}} 503 | \newcommand{\rmr}{\mathrm{r}} 504 | \newcommand{\rms}{\mathrm{s}} 505 | \newcommand{\rmt}{\mathrm{t}} 506 | \newcommand{\rmu}{\mathrm{u}} 507 | \newcommand{\rmv}{\mathrm{v}} 508 | \newcommand{\rmw}{\mathrm{w}} 509 | \newcommand{\rmx}{\mathrm{x}} 510 | \newcommand{\rmy}{\mathrm{y}} 511 | \newcommand{\rmz}{\mathrm{z}} 512 | \newcommand{\rmA}{\mathrm{A}} 513 | \newcommand{\rmB}{\mathrm{B}} 514 | \newcommand{\rmC}{\mathrm{C}} 515 | \newcommand{\rmD}{\mathrm{D}} 516 | \newcommand{\rmE}{\mathrm{E}} 517 | \newcommand{\rmF}{\mathrm{F}} 518 | \newcommand{\rmG}{\mathrm{G}} 519 | \newcommand{\rmH}{\mathrm{H}} 520 | \newcommand{\rmI}{\mathrm{I}} 521 | \newcommand{\rmJ}{\mathrm{J}} 522 | \newcommand{\rmK}{\mathrm{K}} 523 | \newcommand{\rmL}{\mathrm{L}} 524 | \newcommand{\rmM}{\mathrm{M}} 525 | \newcommand{\rmN}{\mathrm{N}} 526 | \newcommand{\rmO}{\mathrm{O}} 527 | \newcommand{\rmP}{\mathrm{P}} 528 | \newcommand{\rmQ}{\mathrm{Q}} 529 | \newcommand{\rmR}{\mathrm{R}} 530 | \newcommand{\rmS}{\mathrm{S}} 531 | \newcommand{\rmT}{\mathrm{T}} 532 | \newcommand{\rmU}{\mathrm{U}} 533 | \newcommand{\rmV}{\mathrm{V}} 534 | \newcommand{\rmW}{\mathrm{W}} 535 | \newcommand{\rmX}{\mathrm{X}} 536 | \newcommand{\rmY}{\mathrm{Y}} 537 | \newcommand{\rmZ}{\mathrm{Z}} -------------------------------------------------------------------------------- /EN/refe.bib: -------------------------------------------------------------------------------- 1 | @book{fenics, 2 | title={Automated solution of differential equations by the finite element method: The FEniCS book}, 3 | author={Logg, Anders and Mardal, Kent-Andre and Wells, Garth}, 4 | volume=84, 5 | year=2012, 6 | publisher={Springer Science \& Business Media} 7 | } 8 | @book{thomee, 9 | title={Galerkin Finite Element Methods for Parabolic Problems (Springer Series in Computational Mathematics)}, 10 | author={Thomée, Vidar}, 11 | publisher={Springer-Verlag}, 12 | year={1984}, 13 | } -------------------------------------------------------------------------------- /Example/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/Example/.DS_Store -------------------------------------------------------------------------------- /Example/八一数学竞赛/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/Example/八一数学竞赛/.DS_Store -------------------------------------------------------------------------------- /Example/八一数学竞赛/M-competition.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/Example/八一数学竞赛/M-competition.pdf -------------------------------------------------------------------------------- /Example/八一数学竞赛/M-competition.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt, UTF8]{ctexart} 2 | \usepackage{matnoble-doc-cn} 3 | \begin{document} 4 | \title{第二届八一杯网络大学生数学竞赛} \author{{\Large --- 代数题目若干}\\ \bf 5 | \href{https://matnoble.me/about/}{MatNoble}} \date{} 6 | 7 | \maketitle 8 | \tableofcontents 9 | 10 | \begin{figure*}[b] 11 | \centering 12 | \includegraphics[width = .25\textwidth]{images/logo.png} 13 | \end{figure*} 14 | 15 | % \clearpage 16 | 17 | % \begin{table}[ht] 18 | % \normalsize 19 | % \centering 20 | % \caption{\em 命题汇总} 21 | % \vskip 0.1in 22 | % \label{table} 23 | % \begin{tabular}{c|l} 24 | % \hline 25 | % \hline 26 | % \rule{0pt}{3ex} 27 | % 组别 & 题目编号 28 | % \rule[-1.2ex]{0pt}{0pt} \\\hline 29 | % 非数 & 26, 27, 53, 78 \\ 30 | % 数 A (高) & 12 \\ 31 | % 数 A (低) & 6, 7 \\ 32 | % 数 B (高) & 3, 4, 5 \\ 33 | % 数 B (低) & 5 \\ 34 | % \hline 35 | % \hline 36 | % \end{tabular} 37 | % \end{table} 38 | 39 | \clearpage 40 | 41 | \section{线性无关的应用} 42 | 43 | \begin{exa} 44 | 某班级有 $n$ 位同学,共参加了 $m$ 个社团.每个社团中,该班学生的数目都是奇数;任意两个社团中,共同学生的数目是偶数.试证明: $m \leq n$. 45 | \end{exa} 46 | {\color{GoogleRed} 47 | \begin{proof} 48 | 令 $\bm{v}_{i} \in \mathbb{F}_{2}^{n}(i = 1, \cdots, m)$ 表示 49 | 第 $i$ 个社团的成员信息, $\bm{v}_{i}$ 的第 $j$ 个分量 50 | 为 $1$ 表示: 编号为 $j$ 的同学在 $i$ 社团, 反之为 $0$. 如此, 51 | $\bm{v}_{i}\cdot\bm{v}_{i}$ 表示第 $i$ 个社团中的人数, 由题意可 52 | 知, 人数为偶数, 所以, 在 $\mathbb{F}_{2}$ 中, 53 | $\bm{v}_{i}\cdot\bm{v}_{i}=1$; 类似的, 54 | $\bm{v}_{i}\cdot\bm{v}_{j}(i \neq j)$ 表示同时在 $i$ 社团与 $j$ 55 | 社团的人数, 由题意可知, 人数为奇数, 所以, 在 $\mathbb{F}_{2}$ 中, 56 | $\bm{v}_{i}\cdot\bm{v}_{j}=0(i\neq j)$ 57 | 58 | 下面证明 $\{ \bm{v}_{1}, \cdots ,\bm{v}_{m}\}$ 是线性无关的. 假设 59 | 存在 $c_{1}, \cdots, c_{m} \in \mathbb{F}_{2}$ 满足 60 | \[ 61 | c_{1}\bm{v}_{1} + \cdots + c_{m}\bm{v}_{m} = 0. 62 | \] 63 | 将 $\bm{v}_{i}(i=1,\cdots,m)$ 分别与上式作内积, 得到 $c_{i}=0(i=1,\cdots,m)$, 即 $m$ 个 $n$ 维向量线性无关, 进而得到 $m \leq n$. 64 | 65 | \end{proof} 66 | } 67 | 68 | {\color{GoogleGreen} 非数 26} 69 | 70 | \clearpage 71 | \begin{exa} 72 | 某班级有 $n$ 位同学,共参加了 $m$ 个社团.任意两个社团中,共同学生的 73 | 数目恰 好都是 $k$ 个 $(k>0)$. 试证明: $m \leq n$. 74 | \end{exa} {\color{GoogleRed} \begin{proof} 75 | 令 $\bm{v}_{i}(i = 1, \cdots, m)$ 表示 76 | 第 $i$ 个社团的成员信息, $\bm{v}_{i}$ 的第 $j$ 个向量 77 | 为 $1$ 表示: 编号为 $j$ 的同学在 $i$ 社团, 反之为 $0$. 由题意知, $\bm{v}_{i}\cdot \bm{v}_{j} = k(i\neq j)$. 78 | 79 | 我们知道向量 $\{\bm{v}_{1}, \cdots, \bm{v}_{m} \}$ 线性无关, 则 $m \leq n$ 成立. 反之, 则成立不全为零的 $c_{i}(i=1,\cdots,m)$ 满足 80 | \[ 81 | c_{1}\bm{v}_{1} + \cdots + c_{m}\bm{v}_{m} = \bm{0}. 82 | \] 83 | 对上式作如下内积, 84 | \[ 85 | \begin{aligned} 86 | 0 &= (c_{1}\bm{v}_{1} + \cdots + c_{m}\bm{v}_{m}) \cdot (c_{1}\bm{v}_{1} + \cdots + c_{m}\bm{v}_{m}) \\[3pt] 87 | &= \sum_{i=1}^{m}c_{i}^{2}\bm{v}_{i}\cdot\bm{v}_{i} + 2\sum_{i 0$,试计算系数 $c_{k},d_{k}$ 123 | \item[(ii)] 试将 $\boldsymbol{A}^{-1}$ 写成 $\boldsymbol{I}$ 和 $\boldsymbol{A}$ 的线性组合 124 | \end{itemize} 125 | \end{exa} 126 | 127 | \begin{lem}{}{} 128 | {\adkaiti 本题考察矩阵幂的相关知识, 意在说明矩阵是由一组数按一定顺序排列形成, 但有时可以``囫囵吞枣''地认为矩阵就是一个数. 但由于笔者决定使用本题时, ``画蛇添足''地修改了数据, 导致手算很费劲, 所以, 解析中使用原数据$ 129 | \boldsymbol{A} = \bigl[\begin{smallmatrix} 130 | 5 & 1\\ 131 | -2& 0 132 | \end{smallmatrix} \bigr] 133 | $. 本题推荐非数学或者数学系低年级同学做一做, 增加对矩阵的理解.} 134 | \end{lem} 135 | 136 | {\color{GoogleRed} 137 | \begin{solution} 138 | \begin{itemize} 139 | \item[(i)] 140 | 矩阵 $\boldsymbol{A}$ 的特征多项式是 141 | $p(\lambda) = \lambda^{2} - 3\lambda + 142 | 2$, 由 Cayley-Hamilton 定理知: 143 | $\boldsymbol{A}^{2} - 3\boldsymbol{A} + 2\boldsymbol{I} = 0$ 或 $\boldsymbol{A}^{2} = 3\boldsymbol{A} - 144 | 2\boldsymbol{I}$ 145 | 146 | 已知 147 | $\boldsymbol{A}^{k} = c_{k}\boldsymbol{A} + 148 | d_{k}\boldsymbol{I}$, 那么 149 | $\boldsymbol{A}^{k+1} = c_{k}\boldsymbol{A}^{2} + 150 | d_{k}\boldsymbol{A} = c_{k}(3\boldsymbol{A} - 151 | 2\boldsymbol{I}) + d_{k}\boldsymbol{A} = (3c_{k} + 152 | d_{k})\boldsymbol{A} - 2c_{k}\boldsymbol{I}$, 于是 153 | \[ 154 | \begin{cases} 155 | c_{k+1} &= 3c_{k} + d_{k} \\[3pt] 156 | d_{k+1} &= -2c_{k} 157 | \end{cases} 158 | \] 159 | 写成矩阵形式 160 | \[ 161 | \begin{bmatrix} 162 | c_{k+1}\\d_{k+1} 163 | \end{bmatrix} = 164 | \begin{bmatrix} 165 | 3 & 1 \\ -2 & 0 166 | \end{bmatrix} 167 | \begin{bmatrix} 168 | c_{k} \\ d_{k} 169 | \end{bmatrix} = \boldsymbol{A} 170 | \begin{bmatrix} 171 | c_{k} \\ d_{k} 172 | \end{bmatrix} 173 | \] 174 | 其中, $\boldsymbol{A}$ 可以对角化 175 | \[ 176 | \boldsymbol{A} = \begin{bmatrix} 3 & 1 \\ -2 & 0 177 | \end{bmatrix} = \boldsymbol{S\Lambda S}^{-1} = 178 | \begin{bmatrix} 179 | 1 & -1 \\ -1 & 2 180 | \end{bmatrix} 181 | \begin{bmatrix} 182 | 2 & 0 \\ 0 & 1 183 | \end{bmatrix} 184 | \begin{bmatrix} 185 | 2 & 1 \\ 1 & 1 186 | \end{bmatrix} 187 | \] 188 | 由 $c_{0} = 0, d_{0}=1$, 得 189 | \[ 190 | \begin{aligned} 191 | \begin{bmatrix} 192 | c_{k} \\d_{k} 193 | \end{bmatrix} &= \boldsymbol{A}^{k} 194 | \begin{bmatrix} 195 | c_{0} \\ d_{0} 196 | \end{bmatrix} = 197 | \boldsymbol{S\Lambda}^{k}\boldsymbol{S}^{-1} 198 | \begin{bmatrix} 199 | c_{0} \\ d_{0} 200 | \end{bmatrix} \\ 201 | &= \begin{bmatrix} 1 & -1 \\ -1 & 2 202 | \end{bmatrix} 203 | \begin{bmatrix} 204 | 2^{k} & 0 \\ 0 & 1^{k} 205 | \end{bmatrix} 206 | \begin{bmatrix} 207 | 2 & 1 \\ 1 & 1 208 | \end{bmatrix} 209 | \begin{bmatrix} 210 | 0 \\ 1 211 | \end{bmatrix} 212 | = 213 | \begin{bmatrix} 214 | 2^{k} - 1 \\ -2^{k} + 2 215 | \end{bmatrix} 216 | \end{aligned} 217 | \] 218 | \item[(ii)] 仍然利用 $\boldsymbol{A}^{2} - 3\boldsymbol{A} + 2\boldsymbol{I} = 0$, 移项 219 | \[ 220 | \boldsymbol{I} = \boldsymbol{A}\biggl[ \frac{1}{2}(-2\boldsymbol{A} + 3 \boldsymbol{I}) \biggr] 221 | \] 222 | 故 $\boldsymbol{A}^{-1} = \biggl[ \frac{1}{2}(-2\boldsymbol{A} + 3 \boldsymbol{I}) \biggr]$. 另外, 将 $k=-1$ 带入 (i) 中公式也可以. 223 | \end{itemize} 224 | \end{solution} 225 | } 226 | 227 | {\color{GoogleGreen} 数 B 高 4, 非数 53 228 | 229 | } 230 | 231 | \clearpage 232 | \begin{exa} 233 | 假设 $\boldsymbol{A, B}$ 和 $\boldsymbol{M}$ 是 $n\times n$ 的实矩阵,满足 $\boldsymbol{AM = MB}$,并且矩阵 $\boldsymbol{A}$ 和矩阵 $\boldsymbol{B}$ 有 相同的特征多项式. 试证明: 对于任意 $n$ 阶实矩阵 $\boldsymbol{X}$ 满足 $\det(\boldsymbol{A} − \boldsymbol{MX}) = \det(\boldsymbol{B}−\boldsymbol{XM})$ 234 | \end{exa} 235 | 236 | {\color{GoogleRed} 237 | \begin{proof} 238 | 令 $\boldsymbol{A}_{\lambda} = \boldsymbol{A} - \lambda\boldsymbol{I}$, $\boldsymbol{B}_{\lambda} = \boldsymbol{B} - \lambda\boldsymbol{I}$, 由题意知, $\det (\boldsymbol{A}_{\lambda}) = \det (\boldsymbol{B}_{\lambda})$. 又因为 $\boldsymbol{AM = MB}$, 所以 $\boldsymbol{A}_{\lambda}\boldsymbol{M} = \boldsymbol{M}\boldsymbol{B}_{\lambda}$, 当 $\lambda$ 取合适值时, $\boldsymbol{A}_{\lambda}, \boldsymbol{B}_{\lambda}$ 是可逆的. 所以, $\boldsymbol{M} = \boldsymbol{A}_{\lambda}\boldsymbol{M}\boldsymbol{B}_{\lambda}^{-1}$. 令 $\boldsymbol{X}_{t} = \boldsymbol{X} + t\boldsymbol{I}$, 239 | \[ 240 | \begin{aligned} 241 | \det(\boldsymbol{A}_{\lambda} - 242 | \boldsymbol{M}\boldsymbol{X}_{t}) &= \det(\boldsymbol{A}_{\lambda} - 243 | \boldsymbol{A}_{\lambda}\boldsymbol{M}\boldsymbol{B}_{\lambda}^{-1}\boldsymbol{X}_{t}) \\[3pt] 244 | &= \det(\boldsymbol{A}_{\lambda}) \det(\boldsymbol{I} - \boldsymbol{M}\boldsymbol{B}_{\lambda}^{-1}\boldsymbol{X}_{t}) \\[3pt] 245 | &= \det(\boldsymbol{A}_{\lambda})\det(\boldsymbol{B}_{\lambda})^{-1}\det(\boldsymbol{X}_{t})\det(\boldsymbol{X}_{t}^{-1}\boldsymbol{B}_{\lambda} - \boldsymbol{M}) \\[3pt] 246 | &= \det(\boldsymbol{X}_{t})\det(\boldsymbol{X}_{t}^{-1}\boldsymbol{B}_{\lambda} - \boldsymbol{M}) \\ 247 | & = \det(\boldsymbol{B}_{\lambda} - 248 | \boldsymbol{X}_{t}\boldsymbol{M}) 249 | \end{aligned} 250 | \] 251 | 上式是关于 $\lambda$ 和 $t$ 的恒等式, 取 $\lambda = t = 0$ 等式仍成立, 得证.(或者, 取 $t=0$, 上式即表明 $\boldsymbol{A} − \boldsymbol{MX}$ 和 $\boldsymbol{B} − \boldsymbol{XM}$ 有相同特征多项式, 从而行列式相等) 252 | 253 | 还可以用分块矩阵来解此题, 步骤略. 254 | 255 | \end{proof} 256 | } 257 | 258 | {\color{GoogleGreen} 数 B 高 5 259 | 260 | } 261 | 262 | \clearpage 263 | \begin{exa} 264 | 设 $\boldsymbol{M} =\Bigl[ 265 | \begin{smallmatrix} 266 | \bm{0} & \bm{I}_{n}\\ 267 | -\bm{I}_{n} & \bm{0} 268 | \end{smallmatrix}\Bigr] 269 | $.如果实方阵 $\boldsymbol{A}$ 满足 $\boldsymbol{M}=\boldsymbol{A}^{\mathsf{T}}\boldsymbol{MA}$, 求证 $\det \boldsymbol{A} = 1$. 270 | \end{exa} 271 | {\color{GoogleRed} 272 | \begin{proof} 273 | 假设所有满足 $\boldsymbol{M}=\boldsymbol{A}^{\mathsf{T}}\boldsymbol{MA}$ 的方阵 $\boldsymbol{A}$ 全体组成的集合为 $S$. 显然若 $\boldsymbol{A} \in S, \boldsymbol{B} \in S$, 那么就有 $\boldsymbol{AB}\in S$. 接下来, 依次证明 274 | \begin{itemize} 275 | \item[(1)] 若 $\boldsymbol{A} \in S$, 那么 $\boldsymbol{A}^{-1} \in S, \boldsymbol{A}^{\mathsf T} \in S$. 276 | 277 | $\boldsymbol{A}^{-1} \in S$ 是显然的. 注意到 $\boldsymbol{M}^{2} = -\boldsymbol{I}_{2n}$, 所以 278 | \[ 279 | \begin{cases} 280 | (\boldsymbol{AM})\boldsymbol{M} = (\boldsymbol{AM})\boldsymbol{A}^{\mathsf T}\boldsymbol{MA} = (\boldsymbol{AMA}^{\mathsf T})\boldsymbol{MA}\\ 281 | (\boldsymbol{AM})\boldsymbol{M} = -\boldsymbol{AI}_{2n} = \boldsymbol{MMA} 282 | \end{cases} \Longrightarrow \boldsymbol{M} = \boldsymbol{AMA}^{\mathsf T} 283 | \] 284 | 所以, $\boldsymbol{A}^{\mathsf T} \in S$. 285 | \item[(2)] 若正定矩阵 $\boldsymbol{H} \in S$, 那么 $\boldsymbol{H}$ 的平方根 $\boldsymbol{P} \in S$. 286 | 287 | 由已知得 $\boldsymbol{M} = \boldsymbol{HMH}, \boldsymbol{H}^{-1}\boldsymbol{M} = \boldsymbol{MH}$, 从而对任何多项式 $f(x)$ 有 $f(\boldsymbol{H}^{-1})\boldsymbol{M} = \boldsymbol{M}f(\boldsymbol{H})$. 设 $\boldsymbol{H}$ 特征值为 $\{ \lambda_{1}^{2}, \dots, \lambda_{2n}^{2} \}$, 正交矩阵 $\boldsymbol{O}$ 使得 $\boldsymbol{O}^{\mathsf T}\boldsymbol{HO} = {\rm diag}\{ \lambda_{1}^{2}, \dots, \lambda_{2n}^{2} \}$, 那么 $\boldsymbol{O}^{\mathsf T}\boldsymbol{PO} = {\rm diag}\{ \lambda_{1}, \dots, \lambda_{2n} \}$. 可利用拉格朗日插值法使 $f$ 满足 $f{\lambda_{i}^{2}} = \lambda_{i}, f(1/\lambda_{i}^{2})=1/\lambda_{i}$. 这样就有 $f(\boldsymbol{H}) = \boldsymbol{P}, f(\boldsymbol{H}^{-1}) = \boldsymbol{P}^{-1}$, 从而 $\boldsymbol{P} \in \boldsymbol{S}$. 288 | \item[(3)] 设 $\boldsymbol{A} \in S$, $\boldsymbol{A}$ 的极分解为 $\boldsymbol{A} = \boldsymbol{HQ}$, 这里 $\boldsymbol{H}$ 正定, $\boldsymbol{Q}$ 正交, 则 $\boldsymbol{H}\in S, \boldsymbol{Q}\in S$. 289 | 290 | $\boldsymbol{A} \in S, \boldsymbol{A}^{\mathsf T} \in S \Rightarrow \boldsymbol{AA}^{\mathsf T} \in S \Rightarrow \sqrt{\boldsymbol{AA}^{\mathsf T}} = \boldsymbol{H} \in S \Rightarrow \boldsymbol{Q} = \boldsymbol{AH}^{-1} \in S$. 291 | \item[(4)] 设 $\boldsymbol{Q} \in S$, $\boldsymbol{Q}$ 正交, 则 $\det \boldsymbol{Q} = 1$. 292 | 293 | 设 $\boldsymbol{Q} =\Bigl[ 294 | \begin{smallmatrix} 295 | \boldsymbol{C} & \boldsymbol{D}\\ 296 | \boldsymbol{E} & \boldsymbol{F} 297 | \end{smallmatrix}\Bigr] 298 | $, 则 $\boldsymbol{MQ} = \boldsymbol{QM}$, 从而 $\boldsymbol{C}=\boldsymbol{F}, \boldsymbol{D} = \boldsymbol{-E}$, 所以, $\boldsymbol{Q} =\Bigl[ 299 | \begin{smallmatrix} 300 | \boldsymbol{C} & \boldsymbol{D}\\ 301 | \boldsymbol{-D} & \boldsymbol{C} 302 | \end{smallmatrix}\Bigr] 303 | $. $\boldsymbol{Q}$ 正交说明 $\boldsymbol{C}\boldsymbol{C}^{\mathsf T} + \boldsymbol{D}\boldsymbol{D}^{\mathsf T} = \boldsymbol{I}_{n}$, $\boldsymbol{CD}^{\mathsf T} = \boldsymbol{DC}^{\mathsf T}$. 从而 $(\boldsymbol{C} + i\boldsymbol{D})(\boldsymbol{C}^{\mathsf T} - i\boldsymbol{D}^{\mathsf T}) = \boldsymbol{I}_{n}$, 则 304 | \[ 305 | \begin{vmatrix} 306 | \boldsymbol{C} & \boldsymbol{D}\\ - \boldsymbol{D} & \boldsymbol{C} 307 | \end{vmatrix} = \lvert \boldsymbol{C} + i\boldsymbol{D} \rvert \cdot \lvert \boldsymbol{C} - i\boldsymbol{D} \rvert = 1. 308 | \] 309 | 从而 $\det \boldsymbol{Q} = 1$. 310 | \item[(5)] 设 $\boldsymbol{H} \in S$, $\boldsymbol{H}$ 正交, 则 $\det \boldsymbol{H} = 1$. 311 | 312 | 由 $\boldsymbol{M} = \boldsymbol{HMH}$ 可得 $(\det \boldsymbol{H})^{2}=1$, 又因为 $\boldsymbol{H}$ 正定, 所以 $\det \boldsymbol{H} = 1$ 313 | \end{itemize} 314 | 综合 (3), (4), (5), 就得到了问题的证明. 315 | \end{proof} 316 | } 317 | 318 | {\color{GoogleGreen} 数 A 高 12, 非数 78 319 | 320 | } 321 | 322 | \noindent {\adheiti 优秀解答}(来自\ 戴银\ 武汉大学) 323 | 324 | {\centering 325 | \includegraphics[width = \textwidth]{images/solution2.pdf} 326 | } 327 | 328 | \vspace{4em} 329 | 330 | \begin{thm}{}{} 331 | {\adkaiti 矩阵是线性代数或者高等代数中的重要内容, 几乎占了半壁江山. 相应地, 矩阵的题目也是层出不穷. 作为数学竞赛, 理应相对难一些, 但考虑到全面性, 导致前两道题目稍简单, 但我认为还算有趣, 同时, 可以增加做竞赛题的信心. 332 | 333 | 分块矩阵, 特征值, 特征向量, 特征多项式, 矩阵相似, 矩阵相抵, 矩阵相合, 矩阵对角化, 矩阵可交换, 正交矩阵, 正定矩阵, 秩 1 矩阵 ... 都是矩阵专题中重要的研究内容. 334 | 335 | 感兴趣的同学可以买本习题集做一做(推荐亲测过的王品超的高等代数新方法) 336 | 337 | } 338 | \end{thm} 339 | 340 | \clearpage 341 | \section{空间} 342 | 343 | \begin{exa} 344 | 设 $\boldsymbol{M}$ 是 $\boldsymbol{M}_{n}(\mathbb{C})$ 的一个子空 345 | 间,如果 $\boldsymbol{M}$ 中的矩阵两两可以交换,求 346 | 证 $\boldsymbol{M}$ 的维数最大是的 $\left[ \frac{n^{2}}{4} 347 | \right]+1$($\left[ \cdot \right]$ 表示高斯取整函数). 348 | \end{exa} 349 | 350 | {\color{GoogleRed} 351 | \begin{proof} 352 | 对 $n$ 归纳, $n=1$ 结论显然成立, 设小于 $n$ 时结论也成立. 下面, 353 | 讨论 $n$ 的情形: 354 | 355 | 由于 $\boldsymbol{M}$ 中的矩阵两两可以交换, 所以他们可以同时上三 356 | 角化, 所以不妨假设 $\boldsymbol{M}$ 中的每一个矩阵都是上三角矩 357 | 阵. 对于每个 $\boldsymbol{A} \in \boldsymbol{M}$, 我们截 358 | 取 $\boldsymbol{A}$ 左上角的 $n-1$ 阶主子阵, 把这个矩阵记 359 | 为 $f(\boldsymbol{A})$, 同时截取 $\boldsymbol{A}$ 的右下角 360 | 的 $n-1$ 阶主子阵, 把它记作 $g(\boldsymbol{A})$. 那么所有 361 | 的 $f(\boldsymbol{A})$ 之间两两可以交换, 所有 362 | 的 $g(\boldsymbol{A})$ 两两之间可以交换. 由于 $f$ 和 $g$ 都可以看 363 | 作是 $\boldsymbol{M}$ 到 $\boldsymbol{M}_{n-1}$ 的交换子空间的线 364 | 性映射, 所以有归纳假设, 365 | $\dim f \leq \left[ \frac{(n-1)^{2}}{4} \right]+1, \dim g \leq 366 | \left[ \frac{(n-1)^{2}}{4} \right]+1$. 367 | 368 | 不难看出, ${\rm Ker} f$ 中的元素形如 $ 369 | \begin{bmatrix} 370 | \boldsymbol{0}_{n\times n-1} & \bm{\alpha} 371 | \end{bmatrix}$, ${\rm Ker} g$ 中的元素形如 372 | $\begin{bmatrix} \bm{\beta}^{\mathsf T} \\ 373 | \boldsymbol{0}_{n-1\times n} 374 | \end{bmatrix}$. 这里的 $\bm{\alpha}, \bm{\beta}$ 都是 $n$ 维列向 375 | 量. 两者可交换意味着 $\bm{\beta}^{\mathsf T} \bm{\alpha} = 376 | 0$, 即 ${\rm Ker} f\perp {\rm Ker} g$, 所以 377 | $\dim {\rm Ker} f + \dim {\rm Ker} g \geq n$, 从而 378 | \[ 379 | \begin{aligned} 380 | \dim \boldsymbol{M} & = \dim {\rm Ker} f + \dim f = \dim {\rm Ker} g + \dim g \\[3pt] 381 | &\leq \frac{\dim {\rm Ker} f + \dim {\rm Ker} g}{2} + \left[ \frac{(n-1)^{2}}{4} \right] + 1 \\[3pt] 382 | &\leq \frac{n}{2} + \left[ \frac{(n-1)^{2}}{4} \right] + 1 \leq \left[ \frac{(n)^{2}}{4} \right] + 1. 383 | \end{aligned} 384 | \] 385 | 386 | 当 $n = 2m$ 是偶数时, 取形如 387 | \[ 388 | \begin{bmatrix} 389 | \lambda \boldsymbol{I}_{m} & \boldsymbol{N} 390 | \\ 391 | \boldsymbol{0} & \lambda\boldsymbol{I}_{m} 392 | \end{bmatrix} 393 | \] 394 | 的矩阵. 当 $n = 2m+1$ 是奇数时, 取形如 395 | \[ 396 | \begin{bmatrix} 397 | \lambda \boldsymbol{I}_{m} & \boldsymbol{N} 398 | \\ 399 | \boldsymbol{0} & \lambda\boldsymbol{I}_{m+1} 400 | \end{bmatrix} 401 | \] 402 | 的矩阵. 403 | 404 | \end{proof} 405 | } 406 | 407 | {\color{GoogleGreen} 数 A 低 6, 数 B 低 5 408 | 409 | } 410 | 411 | \noindent{\adheiti 优秀解答}(来自 Cherry 杭州师范大学) 412 | 413 | {\centering 414 | \includegraphics[width = .9\textwidth]{images/solution1.pdf} 415 | 416 | } 417 | 418 | \vspace{4em} 419 | 420 | \begin{thm}{}{}{\adkaiti 421 | ``空间为体, 矩阵为用'', 空间是线性代数或高等代数中除矩阵外的又一个重要研究对象, 包括向量空间, 矩阵的四个基本空间, 子空间, 直和, 最小二乘法, 内积空间等等内容. 422 | 423 | 类似上面的问题, 还有: 424 | \begin{itemize} 425 | \item 如果 $\boldsymbol{M}$ 中的所有矩阵的秩都不超过 $r$, 这里 $0 4 | 5 | > **特色:** 为文章增加红, 蓝, 黄, 绿四色(Google 配色), 使文章不再单调. 定理部分借鉴 [这里](https://github.com/kalxd/morelull) 6 | 7 | 8 | 9 | 模板源代码有适当注释, 简单易懂, 易上手, 易自定义. 有问题, 欢迎提交 [Issues](https://github.com/MatNoble/LaTeX-Document/issues) 10 | 11 | ### 使用说明 12 | 13 | ```shell 14 | git clone git@github.com:MatNoble/LaTeX-Document.git 15 | ``` 16 | 克隆到本地即可使用. 17 | 18 |
19 | 预览 20 | 21 | ### 英文预览 22 | 23 | 数系家园LaTeX英文文档 24 | 25 | 数系家园LaTeX英文文档 26 | 27 | [更多预览](https://drive.google.com/file/d/1aq4GngbqB-ty3wNo9SMGSE3o_c6jwWtd/view) 28 | 29 | ### 中文预览 30 | 31 | 数系家园LaTeX中文文档 32 | 33 | 数系家园LaTeX中文文档 34 | 35 | [更多预览](https://drive.google.com/file/d/1Ox999cE1c-ULVYXXrcWTJJ_JSN8Ymidm/view) 36 | 37 |
38 | 39 |
40 | 字体问题 41 | 42 | ### 公式字体 43 | 44 | ``` 45 | \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo,amsbb,eucal]{mtpro2} 46 | % \usepackage{newtxtext,newtxmath} % New Times Roman 47 | % \usepackage{mathptmx} % 打印 times 48 | % \usepackage{charter} % 屏读 49 | % \usepackage{fourier} 50 | ``` 51 | 52 | *注: mtpro2 字体需自行安装* 53 | 54 | ### 中文字体 55 | 56 | 中文版需要下载并安装下列字体 57 | 58 | - [思源宋体](https://github.com/adobe-fonts/source-han-serif/releases/tag/1.001R) 59 | 60 | - [思源黑体](https://github.com/adobe-fonts/source-han-sans/releases/tag/2.001R) 61 | 62 | 思源字体是开源的,更好看的宋体和黑体。[由 Adobe 和 Google 合作开发](https://source.typekit.com/source-han-serif/cn/) 63 | 64 |
65 | 66 |
67 | 代码环境 68 | 69 | [Minted](https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted) 是 Latex 上非常好用的代码高亮工具, 可以借助 Python 包 Pygement 根据不同的语法高亮. 70 | 需要安装 python, 然后使用工具安装 pygments. 这里假设你已经安装了 pip 和相关 Python. 71 | 72 | 1. `pip install Pygments`; 73 | 2. 使用 xelatex 编译的时候需要加上参数 `–shell-escape`. 74 | 75 | 效果如下: 76 | 77 | 78 | 79 | 若不使用代码环境, 在对应的 `.sty` 文件中把对应代码注释掉即可. 80 | 81 | ``` 82 | % 代码高亮 83 | % \RequirePackage{minted} 84 | % \usemintedstyle{emacs} 85 | ``` 86 | 87 |
88 | 89 | ## 授权情况 90 | 本模板代码按 [LPPL v1.3c 协议](https://github.com/MatNoble/LaTeX-Document/blob/master/LICENSE) 授权 91 | 92 | ## 联系方式 93 | - Blog: [matnoble.github.io](https://matnoble.github.io/) 94 | - Mail: [hustmatnoble@gmail.com](mailto:hustmatnoble@gmail.com) 95 | -------------------------------------------------------------------------------- /mini/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/mini/.DS_Store -------------------------------------------------------------------------------- /mini/doc-mini.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/mini/doc-mini.pdf -------------------------------------------------------------------------------- /mini/doc-mini.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt]{article} 2 | \usepackage{matnoble-doc-mini} 3 | \pagestyle{empty} 4 | 5 | \begin{document} 6 | \title{\bf A simple tex templates} \author{MatNoble} \date{\today} 7 | 8 | \maketitle 9 | \tableofcontents 10 | 11 | \clearpage 12 | 13 | \section{The first section} 14 | 15 | bla bla 16 | 17 | \clearpage 18 | 19 | % $\bsA^{\mathsf{T}}$ 20 | 21 | $\pm$ \quad $\mp$ 22 | 23 | $\partial$ \quad $\dif$ 24 | 25 | $\int$ \quad $\oint$ 26 | 27 | $\sum$ \quad $\prod$ 28 | 29 | $\nabla$ \quad $\Delta$ 30 | 31 | $x$ \quad $y$ \quad $z$ 32 | 33 | $\pi$ \quad $\rme$ \quad $\rmi$ 34 | 35 | $\alpha$ \quad $\beta$ \quad $\gamma$ 36 | 37 | $\sin$ \quad $\cos$ \quad $\tan$ 38 | 39 | \vskip 1em 40 | 41 | $ \left\{ 42 | \begin{aligned} 43 | a_{11} x_{1} + a_{12} x_{2} + a_{13} x_{2} = b_{1} 44 | \\[3pt] 45 | a_{22} x_{3} + a_{23} x_{3} = b_{2} 46 | \end{aligned} 47 | \right. $ 48 | 49 | \vskip 1em 50 | 51 | $\lVert \bmx \rVert_{2} = \sqrt{x_{1}^{2} + x_{2}^{2} + \cdots + 52 | x_{n}^{2}}$ 53 | 54 | \clearpage 55 | 56 | \[ 57 | \sin{x}=\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)!}{x}^{2n+1}=x-\frac{x^{3}}{3!} 58 | +\frac{x^{5}}{5!}-\frac{x^{7}}{7!}+{}\cdots 59 | \] 60 | 61 | \[ 62 | \ln{(x+1)}=\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n}{x}^{n}=x-\frac{x^{2}}{2!} 63 | +\frac{x^{3}}{3!}-\frac{x^{4}}{4!}+{}\cdots 64 | \] 65 | 66 | Euler Equation: 67 | \begin{equation} 68 | \mathrm{e}^{\mathrm{i}x}=\cos{x}+\mathrm{i}\sin{x} 69 | \end{equation} 70 | 71 | \[ 72 | \lim_{x\to0}\frac{\sqrt{1+2\tan{x}}-\sqrt{1+2\sin{x}}}{x\ln(1+x)-x^2} 73 | \] 74 | 75 | \[ 76 | \iint\limits_{D}\frac{1+xy}{1+x^2++y^2}\dif x\dif y. 77 | \] 78 | 79 | \begin{equation} 80 | \sqrt{\sum_{i=1}^n (y^i -x^i )^2 } 81 | \end{equation} 82 | 83 | \end{document} 84 | -------------------------------------------------------------------------------- /mini/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/mini/images/logo.png -------------------------------------------------------------------------------- /mini/matnoble-doc-mini.sty: -------------------------------------------------------------------------------- 1 | % 2 | % 个人自用文档样式 3 | % 4 | \NeedsTeXFormat{LaTeX2e} 5 | \ProvidesPackage{matnoble-doc-mini}[2020/08/12 v1.0 updated by Ross] 6 | %% Blog 7 | % https://matnoble.me 8 | %% Gmail 9 | % hustmatnoble@gmail.com 10 | %% GitHub 11 | % https://github.com/MatNoble 12 | 13 | \usepackage[T1]{fontenc} 14 | \usepackage[english]{babel} 15 | 16 | % 数学宏包 17 | \usepackage{amsmath,amsthm,amsfonts,amssymb,bm} 18 | 19 | % 公式字体 20 | \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo,amsbb,eucal]{mtpro2} 21 | % \usepackage{newtxmath} % 打印 times 22 | % \usepackage{charter} % 屏读 23 | % \usepackage{fourier} 24 | 25 | % 英文字体 26 | \usepackage{fontspec} 27 | % \setmainfont{TeX Gyre Termes} 28 | % \setsansfont{TeX Gyre Heros} 29 | % \setmonofont{TeX Gyre Cursor} 30 | \setmainfont{Times New Roman} 31 | \setsansfont{Helvetica} % Windows 下可使用类似的 Arial 字体 32 | \setmonofont{Courier New} 33 | 34 | % 页面设置 35 | \RequirePackage{geometry} 36 | \RequirePackage{calrsfs, wasysym, verbatim, empheq} 37 | \RequirePackage[nottoc]{tocbibind} 38 | 39 | % 设置颜色 40 | \RequirePackage{xcolor-material} 41 | 42 | % 表格 43 | \RequirePackage{tabularx,array} 44 | %% 长表格 45 | \RequirePackage{longtable} 46 | %% booktabs 提供了\toprule 等命令. 47 | \RequirePackage{booktabs} 48 | %% multirow 支持在表格中跨行 49 | \RequirePackage{multirow} 50 | %% 调整间隔, 让表格更好看些 51 | \RequirePackage{bigstrut} 52 | %% 在跨行表格中输入定界符 53 | \RequirePackage{bigdelim} 54 | % 首行缩进 55 | \RequirePackage{indentfirst} 56 | % 设置浮动体的标题 57 | \RequirePackage{subcaption} 58 | \RequirePackage{float} 59 | % ref 60 | \RequirePackage{hyperref} 61 | % item 62 | \RequirePackage[shortlabels,inline]{enumitem} 63 | \setlist{nolistsep} 64 | % 矩阵虚线 65 | \RequirePackage{arydshln} 66 | 67 | \RequirePackage[title,titletoc]{appendix} 68 | 69 | \geometry{tmargin=.85in, bmargin=.85in, lmargin=.75in, rmargin = .75in} 70 | 71 | % 行距设置 72 | \RequirePackage{setspace} 73 | \setstretch{1.2} 74 | 75 | % 关于图片 graphicx 76 | \RequirePackage{graphicx} 77 | % 如果图片没有指定后缀, 依次按下列顺序搜索 78 | \DeclareGraphicsExtensions{.eps,.pdf,.jpg,.png} 79 | % 设置图表搜索路径, 可以给图表文件夹取如下名字 80 | \graphicspath{{figures/}{figure/}{pictures/}% 81 | {picture/}{pic/}{pics/}{image/}{images/}} 82 | 83 | % caption settings 84 | \RequirePackage[font=small, labelfont={bf, color=PrimaryColor}]{caption} 85 | \captionsetup{labelsep=quad} 86 | \captionsetup[figure]{position=bottom,skip={2pt}} 87 | \captionsetup[table]{position=top,skip={2pt}} 88 | 89 | \allowdisplaybreaks 90 | 91 | \setcounter{secnumdepth}{3} 92 | \setcounter{tocdepth}{3} 93 | 94 | \RequirePackage{accents} 95 | \newcommand{\dbtilde}[1]{\accentset{\approx}{#1}} 96 | \newcommand{\Cdot}{\boldsymbol{\cdot}} 97 | 98 | % equation 99 | \newcommand*{\dif}{\mathop{}\!\mathrm{d}} 100 | 101 | % mathbb 102 | \newcommand{\bba}{\mathbb{a}} 103 | \newcommand{\bbb}{\mathbb{b}} 104 | \newcommand{\bbc}{\mathbb{c}} 105 | \newcommand{\bbd}{\mathbb{d}} 106 | \newcommand{\bbe}{\mathbb{e}} 107 | \newcommand{\bbf}{\mathbb{f}} 108 | \newcommand{\bbg}{\mathbb{g}} 109 | \newcommand{\bbh}{\mathbb{h}} 110 | \newcommand{\bbi}{\mathbb{i}} 111 | \newcommand{\bbj}{\mathbb{j}} 112 | \newcommand{\bbk}{\mathbb{k}} 113 | \newcommand{\bbl}{\mathbb{l}} 114 | \newcommand{\bbm}{\mathbb{m}} 115 | \newcommand{\bbn}{\mathbb{n}} 116 | \newcommand{\bbo}{\mathbb{o}} 117 | \newcommand{\bbp}{\mathbb{p}} 118 | \newcommand{\bbq}{\mathbb{q}} 119 | \newcommand{\bbr}{\mathbb{r}} 120 | \newcommand{\bbs}{\mathbb{s}} 121 | \newcommand{\bbt}{\mathbb{t}} 122 | \newcommand{\bbu}{\mathbb{u}} 123 | \newcommand{\bbv}{\mathbb{v}} 124 | \newcommand{\bbw}{\mathbb{w}} 125 | \newcommand{\bbx}{\mathbb{x}} 126 | \newcommand{\bby}{\mathbb{y}} 127 | \newcommand{\bbz}{\mathbb{z}} 128 | \newcommand{\bbA}{\mathbb{A}} 129 | \newcommand{\bbB}{\mathbb{B}} 130 | \newcommand{\bbC}{\mathbb{C}} 131 | \newcommand{\bbD}{\mathbb{D}} 132 | \newcommand{\bbE}{\mathbb{E}} 133 | \newcommand{\bbF}{\mathbb{F}} 134 | \newcommand{\bbG}{\mathbb{G}} 135 | \newcommand{\bbH}{\mathbb{H}} 136 | \newcommand{\bbI}{\mathbb{I}} 137 | \newcommand{\bbJ}{\mathbb{J}} 138 | \newcommand{\bbK}{\mathbb{K}} 139 | \newcommand{\bbL}{\mathbb{L}} 140 | \newcommand{\bbM}{\mathbb{M}} 141 | \newcommand{\bbN}{\mathbb{N}} 142 | \newcommand{\bbO}{\mathbb{O}} 143 | \newcommand{\bbP}{\mathbb{P}} 144 | \newcommand{\bbQ}{\mathbb{Q}} 145 | \newcommand{\bbR}{\mathbb{R}} 146 | \newcommand{\bbS}{\mathbb{S}} 147 | \newcommand{\bbT}{\mathbb{T}} 148 | \newcommand{\bbU}{\mathbb{U}} 149 | \newcommand{\bbV}{\mathbb{V}} 150 | \newcommand{\bbW}{\mathbb{W}} 151 | \newcommand{\bbX}{\mathbb{X}} 152 | \newcommand{\bbY}{\mathbb{Y}} 153 | \newcommand{\bbZ}{\mathbb{Z}} 154 | 155 | % mathbf 156 | \newcommand{\bfa}{\mathbf{a}} 157 | \newcommand{\bfb}{\mathbf{b}} 158 | \newcommand{\bfc}{\mathbf{c}} 159 | \newcommand{\bfd}{\mathbf{d}} 160 | \newcommand{\bfe}{\mathbf{e}} 161 | \newcommand{\bff}{\mathbf{f}} 162 | \newcommand{\bfg}{\mathbf{g}} 163 | \newcommand{\bfh}{\mathbf{h}} 164 | \newcommand{\bfi}{\mathbf{i}} 165 | \newcommand{\bfj}{\mathbf{j}} 166 | \newcommand{\bfk}{\mathbf{k}} 167 | \newcommand{\bfl}{\mathbf{l}} 168 | \newcommand{\bfm}{\mathbf{m}} 169 | \newcommand{\bfn}{\mathbf{n}} 170 | \newcommand{\bfo}{\mathbf{o}} 171 | \newcommand{\bfp}{\mathbf{p}} 172 | \newcommand{\bfq}{\mathbf{q}} 173 | \newcommand{\bfr}{\mathbf{r}} 174 | \newcommand{\bfs}{\mathbf{s}} 175 | \newcommand{\bft}{\mathbf{t}} 176 | \newcommand{\bfu}{\mathbf{u}} 177 | \newcommand{\bfv}{\mathbf{v}} 178 | \newcommand{\bfw}{\mathbf{w}} 179 | \newcommand{\bfx}{\mathbf{x}} 180 | \newcommand{\bfy}{\mathbf{y}} 181 | \newcommand{\bfz}{\mathbf{z}} 182 | \newcommand{\bfA}{\mathbf{A}} 183 | \newcommand{\bfB}{\mathbf{B}} 184 | \newcommand{\bfC}{\mathbf{C}} 185 | \newcommand{\bfD}{\mathbf{D}} 186 | \newcommand{\bfE}{\mathbf{E}} 187 | \newcommand{\bfF}{\mathbf{F}} 188 | \newcommand{\bfG}{\mathbf{G}} 189 | \newcommand{\bfH}{\mathbf{H}} 190 | \newcommand{\bfI}{\mathbf{I}} 191 | \newcommand{\bfJ}{\mathbf{J}} 192 | \newcommand{\bfK}{\mathbf{K}} 193 | \newcommand{\bfL}{\mathbf{L}} 194 | \newcommand{\bfM}{\mathbf{M}} 195 | \newcommand{\bfN}{\mathbf{N}} 196 | \newcommand{\bfO}{\mathbf{O}} 197 | \newcommand{\bfP}{\mathbf{P}} 198 | \newcommand{\bfQ}{\mathbf{Q}} 199 | \newcommand{\bfR}{\mathbf{R}} 200 | \newcommand{\bfS}{\mathbf{S}} 201 | \newcommand{\bfT}{\mathbf{T}} 202 | \newcommand{\bfU}{\mathbf{U}} 203 | \newcommand{\bfV}{\mathbf{V}} 204 | \newcommand{\bfW}{\mathbf{W}} 205 | \newcommand{\bfX}{\mathbf{X}} 206 | \newcommand{\bfY}{\mathbf{Y}} 207 | \newcommand{\bfZ}{\mathbf{Z}} 208 | 209 | % mathbfit (boldsymbol) 210 | \newcommand{\bsa}{\boldsymbol{a}} 211 | \newcommand{\bsb}{\boldsymbol{b}} 212 | \newcommand{\bsc}{\boldsymbol{c}} 213 | \newcommand{\bsd}{\boldsymbol{d}} 214 | \newcommand{\bse}{\boldsymbol{e}} 215 | \newcommand{\bsf}{\boldsymbol{f}} 216 | \newcommand{\bsg}{\boldsymbol{g}} 217 | \newcommand{\bsh}{\boldsymbol{h}} 218 | \newcommand{\bsi}{\boldsymbol{i}} 219 | \newcommand{\bsj}{\boldsymbol{j}} 220 | \newcommand{\bsk}{\boldsymbol{k}} 221 | \newcommand{\bsl}{\boldsymbol{l}} 222 | \newcommand{\bsm}{\boldsymbol{m}} 223 | \newcommand{\bsn}{\boldsymbol{n}} 224 | \newcommand{\bso}{\boldsymbol{o}} 225 | \newcommand{\bsp}{\boldsymbol{p}} 226 | \newcommand{\bsq}{\boldsymbol{q}} 227 | \newcommand{\bsr}{\boldsymbol{r}} 228 | \newcommand{\bss}{\boldsymbol{s}} 229 | \newcommand{\bst}{\boldsymbol{t}} 230 | \newcommand{\bsu}{\boldsymbol{u}} 231 | \newcommand{\bsv}{\boldsymbol{v}} 232 | \newcommand{\bsw}{\boldsymbol{w}} 233 | \newcommand{\bsx}{\boldsymbol{x}} 234 | \newcommand{\bsy}{\boldsymbol{y}} 235 | \newcommand{\bsz}{\boldsymbol{z}} 236 | \newcommand{\bsA}{\boldsymbol{A}} 237 | \newcommand{\bsB}{\boldsymbol{B}} 238 | \newcommand{\bsC}{\boldsymbol{C}} 239 | \newcommand{\bsD}{\boldsymbol{D}} 240 | \newcommand{\bsE}{\boldsymbol{E}} 241 | \newcommand{\bsF}{\boldsymbol{F}} 242 | \newcommand{\bsG}{\boldsymbol{G}} 243 | \newcommand{\bsH}{\boldsymbol{H}} 244 | \newcommand{\bsI}{\boldsymbol{I}} 245 | \newcommand{\bsJ}{\boldsymbol{J}} 246 | \newcommand{\bsK}{\boldsymbol{K}} 247 | \newcommand{\bsL}{\boldsymbol{L}} 248 | \newcommand{\bsM}{\boldsymbol{M}} 249 | \newcommand{\bsN}{\boldsymbol{N}} 250 | \newcommand{\bsO}{\boldsymbol{O}} 251 | \newcommand{\bsP}{\boldsymbol{P}} 252 | \newcommand{\bsQ}{\boldsymbol{Q}} 253 | \newcommand{\bsR}{\boldsymbol{R}} 254 | \newcommand{\bsS}{\boldsymbol{S}} 255 | \newcommand{\bsT}{\boldsymbol{T}} 256 | \newcommand{\bsU}{\boldsymbol{U}} 257 | \newcommand{\bsV}{\boldsymbol{V}} 258 | \newcommand{\bsW}{\boldsymbol{W}} 259 | \newcommand{\bsX}{\boldsymbol{X}} 260 | \newcommand{\bsY}{\boldsymbol{Y}} 261 | \newcommand{\bsZ}{\boldsymbol{Z}} 262 | 263 | % mathbfit (bm) 264 | \newcommand{\bma}{\bm{a}} 265 | \newcommand{\bmb}{\bm{b}} 266 | \newcommand{\bmc}{\bm{c}} 267 | \newcommand{\bmd}{\bm{d}} 268 | \newcommand{\bme}{\bm{e}} 269 | \newcommand{\bmf}{\bm{f}} 270 | \newcommand{\bmg}{\bm{g}} 271 | \newcommand{\bmh}{\bm{h}} 272 | \newcommand{\bmi}{\bm{i}} 273 | \newcommand{\bmj}{\bm{j}} 274 | \newcommand{\bmk}{\bm{k}} 275 | \newcommand{\bml}{\bm{l}} 276 | \newcommand{\bmm}{\bm{m}} 277 | \newcommand{\bmn}{\bm{n}} 278 | \newcommand{\bmo}{\bm{o}} 279 | \newcommand{\bmp}{\bm{p}} 280 | \newcommand{\bmq}{\bm{q}} 281 | \newcommand{\bmr}{\bm{r}} 282 | \newcommand{\bms}{\bm{s}} 283 | \newcommand{\bmt}{\bm{t}} 284 | \newcommand{\bmu}{\bm{u}} 285 | \newcommand{\bmv}{\bm{v}} 286 | \newcommand{\bmw}{\bm{w}} 287 | \newcommand{\bmx}{\bm{x}} 288 | \newcommand{\bmy}{\bm{y}} 289 | \newcommand{\bmz}{\bm{z}} 290 | \newcommand{\bmA}{\bm{A}} 291 | \newcommand{\bmB}{\bm{B}} 292 | \newcommand{\bmC}{\bm{C}} 293 | \newcommand{\bmD}{\bm{D}} 294 | \newcommand{\bmE}{\bm{E}} 295 | \newcommand{\bmF}{\bm{F}} 296 | \newcommand{\bmG}{\bm{G}} 297 | \newcommand{\bmH}{\bm{H}} 298 | \newcommand{\bmI}{\bm{I}} 299 | \newcommand{\bmJ}{\bm{J}} 300 | \newcommand{\bmK}{\bm{K}} 301 | \newcommand{\bmL}{\bm{L}} 302 | \newcommand{\bmM}{\bm{M}} 303 | \newcommand{\bmN}{\bm{N}} 304 | \newcommand{\bmO}{\bm{O}} 305 | \newcommand{\bmP}{\bm{P}} 306 | \newcommand{\bmQ}{\bm{Q}} 307 | \newcommand{\bmR}{\bm{R}} 308 | \newcommand{\bmS}{\bm{S}} 309 | \newcommand{\bmT}{\bm{T}} 310 | \newcommand{\bmU}{\bm{U}} 311 | \newcommand{\bmV}{\bm{V}} 312 | \newcommand{\bmW}{\bm{W}} 313 | \newcommand{\bmX}{\bm{X}} 314 | \newcommand{\bmY}{\bm{Y}} 315 | \newcommand{\bmZ}{\bm{Z}} 316 | 317 | % mathcal 318 | \newcommand{\calA}{\mathcal{A}} 319 | \newcommand{\calB}{\mathcal{B}} 320 | \newcommand{\calC}{\mathcal{C}} 321 | \newcommand{\calD}{\mathcal{D}} 322 | \newcommand{\calE}{\mathcal{E}} 323 | \newcommand{\calF}{\mathcal{F}} 324 | \newcommand{\calG}{\mathcal{G}} 325 | \newcommand{\calH}{\mathcal{H}} 326 | \newcommand{\calI}{\mathcal{I}} 327 | \newcommand{\calJ}{\mathcal{J}} 328 | \newcommand{\calK}{\mathcal{K}} 329 | \newcommand{\calL}{\mathcal{L}} 330 | \newcommand{\calM}{\mathcal{M}} 331 | \newcommand{\calN}{\mathcal{N}} 332 | \newcommand{\calO}{\mathcal{O}} 333 | \newcommand{\calP}{\mathcal{P}} 334 | \newcommand{\calQ}{\mathcal{Q}} 335 | \newcommand{\calR}{\mathcal{R}} 336 | \newcommand{\calS}{\mathcal{S}} 337 | \newcommand{\calT}{\mathcal{T}} 338 | \newcommand{\calU}{\mathcal{U}} 339 | \newcommand{\calV}{\mathcal{V}} 340 | \newcommand{\calW}{\mathcal{W}} 341 | \newcommand{\calX}{\mathcal{X}} 342 | \newcommand{\calY}{\mathcal{Y}} 343 | \newcommand{\calZ}{\mathcal{Z}} 344 | 345 | % mathfrak 346 | \newcommand{\fraka}{\mathfrak{a}} 347 | \newcommand{\frakb}{\mathfrak{b}} 348 | \newcommand{\frakc}{\mathfrak{c}} 349 | \newcommand{\frakd}{\mathfrak{d}} 350 | \newcommand{\frake}{\mathfrak{e}} 351 | \newcommand{\frakf}{\mathfrak{f}} 352 | \newcommand{\frakg}{\mathfrak{g}} 353 | \newcommand{\frakh}{\mathfrak{h}} 354 | \newcommand{\fraki}{\mathfrak{i}} 355 | \newcommand{\frakj}{\mathfrak{j}} 356 | \newcommand{\frakk}{\mathfrak{k}} 357 | \newcommand{\frakl}{\mathfrak{l}} 358 | \newcommand{\frakm}{\mathfrak{m}} 359 | \newcommand{\frakn}{\mathfrak{n}} 360 | \newcommand{\frako}{\mathfrak{o}} 361 | \newcommand{\frakp}{\mathfrak{p}} 362 | \newcommand{\frakq}{\mathfrak{q}} 363 | \newcommand{\frakr}{\mathfrak{r}} 364 | \newcommand{\fraks}{\mathfrak{s}} 365 | \newcommand{\frakt}{\mathfrak{t}} 366 | \newcommand{\fraku}{\mathfrak{u}} 367 | \newcommand{\frakv}{\mathfrak{v}} 368 | \newcommand{\frakw}{\mathfrak{w}} 369 | \newcommand{\frakx}{\mathfrak{x}} 370 | \newcommand{\fraky}{\mathfrak{y}} 371 | \newcommand{\frakz}{\mathfrak{z}} 372 | \newcommand{\frakA}{\mathfrak{A}} 373 | \newcommand{\frakB}{\mathfrak{B}} 374 | \newcommand{\frakC}{\mathfrak{C}} 375 | \newcommand{\frakD}{\mathfrak{D}} 376 | \newcommand{\frakE}{\mathfrak{E}} 377 | \newcommand{\frakF}{\mathfrak{F}} 378 | \newcommand{\frakG}{\mathfrak{G}} 379 | \newcommand{\frakH}{\mathfrak{H}} 380 | \newcommand{\frakI}{\mathfrak{I}} 381 | \newcommand{\frakJ}{\mathfrak{J}} 382 | \newcommand{\frakK}{\mathfrak{K}} 383 | \newcommand{\frakL}{\mathfrak{L}} 384 | \newcommand{\frakM}{\mathfrak{M}} 385 | \newcommand{\frakN}{\mathfrak{N}} 386 | \newcommand{\frakO}{\mathfrak{O}} 387 | \newcommand{\frakP}{\mathfrak{P}} 388 | \newcommand{\frakQ}{\mathfrak{Q}} 389 | \newcommand{\frakR}{\mathfrak{R}} 390 | \newcommand{\frakS}{\mathfrak{S}} 391 | \newcommand{\frakT}{\mathfrak{T}} 392 | \newcommand{\frakU}{\mathfrak{U}} 393 | \newcommand{\frakV}{\mathfrak{V}} 394 | \newcommand{\frakW}{\mathfrak{W}} 395 | \newcommand{\frakX}{\mathfrak{X}} 396 | \newcommand{\frakY}{\mathfrak{Y}} 397 | \newcommand{\frakZ}{\mathfrak{Z}} 398 | 399 | % mathrm 400 | \newcommand{\rma}{\mathrm{a}} 401 | \newcommand{\rmb}{\mathrm{b}} 402 | \newcommand{\rmc}{\mathrm{c}} 403 | \newcommand{\rmd}{\mathrm{d}} 404 | \newcommand{\rme}{\mathrm{e}} 405 | \newcommand{\rmf}{\mathrm{f}} 406 | \newcommand{\rmg}{\mathrm{g}} 407 | \newcommand{\rmh}{\mathrm{h}} 408 | \newcommand{\rmi}{\mathrm{i}} 409 | \newcommand{\rmj}{\mathrm{j}} 410 | \newcommand{\rmk}{\mathrm{k}} 411 | \newcommand{\rml}{\mathrm{l}} 412 | \newcommand{\rmm}{\mathrm{m}} 413 | \newcommand{\rmn}{\mathrm{n}} 414 | \newcommand{\rmo}{\mathrm{o}} 415 | \newcommand{\rmp}{\mathrm{p}} 416 | \newcommand{\rmq}{\mathrm{q}} 417 | \newcommand{\rmr}{\mathrm{r}} 418 | \newcommand{\rms}{\mathrm{s}} 419 | \newcommand{\rmt}{\mathrm{t}} 420 | \newcommand{\rmu}{\mathrm{u}} 421 | \newcommand{\rmv}{\mathrm{v}} 422 | \newcommand{\rmw}{\mathrm{w}} 423 | \newcommand{\rmx}{\mathrm{x}} 424 | \newcommand{\rmy}{\mathrm{y}} 425 | \newcommand{\rmz}{\mathrm{z}} 426 | \newcommand{\rmA}{\mathrm{A}} 427 | \newcommand{\rmB}{\mathrm{B}} 428 | \newcommand{\rmC}{\mathrm{C}} 429 | \newcommand{\rmD}{\mathrm{D}} 430 | \newcommand{\rmE}{\mathrm{E}} 431 | \newcommand{\rmF}{\mathrm{F}} 432 | \newcommand{\rmG}{\mathrm{G}} 433 | \newcommand{\rmH}{\mathrm{H}} 434 | \newcommand{\rmI}{\mathrm{I}} 435 | \newcommand{\rmJ}{\mathrm{J}} 436 | \newcommand{\rmK}{\mathrm{K}} 437 | \newcommand{\rmL}{\mathrm{L}} 438 | \newcommand{\rmM}{\mathrm{M}} 439 | \newcommand{\rmN}{\mathrm{N}} 440 | \newcommand{\rmO}{\mathrm{O}} 441 | \newcommand{\rmP}{\mathrm{P}} 442 | \newcommand{\rmQ}{\mathrm{Q}} 443 | \newcommand{\rmR}{\mathrm{R}} 444 | \newcommand{\rmS}{\mathrm{S}} 445 | \newcommand{\rmT}{\mathrm{T}} 446 | \newcommand{\rmU}{\mathrm{U}} 447 | \newcommand{\rmV}{\mathrm{V}} 448 | \newcommand{\rmW}{\mathrm{W}} 449 | \newcommand{\rmX}{\mathrm{X}} 450 | \newcommand{\rmY}{\mathrm{Y}} 451 | \newcommand{\rmZ}{\mathrm{Z}} -------------------------------------------------------------------------------- /table-test/images/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/table-test/images/google.png -------------------------------------------------------------------------------- /table-test/matnoble-doc-cn.sty: -------------------------------------------------------------------------------- 1 | % 2 | % 个人自用文档样式 3 | % 4 | \ProvidesPackage{matnoble-doc-cn}[2019/12/05 v1.1] 5 | 6 | %================================== 设置中文字体 ===========================% 7 | % 将系统字体名映射为逻辑字体名称, 主要是为了维护的方便 8 | \newcommand\fontnamehei{SourceHanSansSC-Regular} 9 | \newcommand\fontnamesong{SourceHanSerifSC-Regular} 10 | \newcommand\fontnamekai{Adobe Kaiti Std} 11 | \newcommand\fontnamemono{Adobe Fangsong Std} 12 | \setCJKmainfont[BoldFont=\fontnamehei]{\fontnamesong} % 设置 CJK 主字体 13 | \setCJKsansfont[BoldFont=\fontnamehei]{\fontnamekai} % 设置 CJK 无衬线的字体 14 | \setCJKmonofont{\fontnamemono} % 设置 CJK 的等宽字体 15 | \punctstyle{kaiming} 16 | %================================== 设置中文字体 ===========================% 17 | %================================== 设置英文字体 ===========================% 18 | \setmainfont[Mapping=tex-text]{Times New Roman} % 西文默认衬线字体(serif) 19 | \setsansfont[Mapping=tex-text]{Arial} % 西文默认无衬线字体(sans serif) 20 | \setmonofont{DejaVu Sans Mono} % 西文默认的等宽字体 21 | %================================== 设置英文字体 ===========================% 22 | \setCJKfamilyfont{adhei}{SourceHanSansSC-Regular} % 开源的思源黑体 23 | \newcommand{\adheiti}{\CJKfamily{adhei}} 24 | \setCJKfamilyfont{adkai}{Adobe Kaiti Std} 25 | \newcommand{\adkaiti}{\CJKfamily{adkai}} 26 | 27 | % % \usepackage{mathptmx} % 打印 28 | \usepackage{charter} % 屏读 29 | 30 | \RequirePackage{amsmath, amsthm, amsfonts, amssymb, bm} 31 | \RequirePackage{calrsfs, wasysym, verbatim, graphicx, geometry, empheq} 32 | \RequirePackage[nottoc]{tocbibind} 33 | %% 长表格 34 | \RequirePackage{longtable} 35 | %% booktabs 提供了\toprule 等命令. 36 | \RequirePackage{booktabs} 37 | %% multirow 支持在表格中跨行 38 | \RequirePackage{multirow} 39 | %% 调整间隔, 让表格更好看些 40 | \RequirePackage{bigstrut} 41 | %% 在跨行表格中输入定界符 42 | \RequirePackage{bigdelim} 43 | % 界面微调算法, 更好看 44 | \RequirePackage{microtype} 45 | % 首行缩进 46 | \RequirePackage{indentfirst} 47 | % 设置浮动体的标题 48 | \RequirePackage{subcaption} 49 | \RequirePackage{hyperref} 50 | % 页眉页脚 51 | \RequirePackage{fancyhdr} 52 | % item 53 | \RequirePackage{enumitem} 54 | \RequirePackage{anysize} 55 | % 中文随机文本 56 | \RequirePackage{zhlipsum} 57 | 58 | % 调色板 59 | \RequirePackage{xcolor-material} 60 | \colorlet{PrimaryColor}{GoogleBlue} 61 | % 代码提示 62 | \RequirePackage{listings} 63 | % 更加现代定理、引用提示 64 | \RequirePackage{tcolorbox} 65 | % 书签 66 | \RequirePackage[open, openlevel=2, atend]{bookmark} 67 | % 链接 68 | \RequirePackage{hyperref} 69 | % 选项相关 70 | \RequirePackage{xkeyval} 71 | \RequirePackage[title,titletoc]{appendix} 72 | % 代码提示 73 | \RequirePackage{listings} 74 | %%% 代码高亮设置 %%% 75 | \tcbuselibrary{listings} 76 | % 代码高亮 77 | % \RequirePackage{minted} 78 | % \usemintedstyle{emacs} 79 | % \renewcommand\listoflistingscaption{源码列表} 80 | \RequirePackage{makecell} 81 | % 页面边距 82 | \geometry{tmargin=.75in, bmargin=.75in, lmargin=.75in, rmargin = .75in} 83 | % 行距 84 | \RequirePackage{setspace} 85 | \setstretch{1.38} 86 | 87 | \RequirePackage{tcolorbox} 88 | %%% tcolorbox %%% 89 | \tcbuselibrary{theorems} 90 | \tcbuselibrary{skins} 91 | \tcbsetforeverylayer{enhanced} 92 | \newtcolorbox{mybox}[2][]{colbacktitle=red!10!white, colback=blue!10!white,coltitle=red!70!black, title={#2},fonttitle=\bfseries,#1} 93 | 94 | % caption 95 | \RequirePackage[font=small, labelfont={bf, color=PrimaryColor}]{caption} 96 | \DeclareCaptionFont{kai}{\normalsize \adkaiti} 97 | \captionsetup{labelsep=quad} 98 | \captionsetup{font={kai,singlespacing}} 99 | \captionsetup[figure]{position=bottom,skip={2pt}} 100 | \captionsetup[table]{position=top,skip={2pt}} 101 | 102 | \allowdisplaybreaks 103 | \textwidth 6.3in \textheight 9in 104 | \topmargin -0.4in 105 | \oddsidemargin 0.1in \evensidemargin 0.0in 106 | 107 | % 中文断行 108 | \XeTeXlinebreaklocale "zh" 109 | \XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt 110 | 111 | % 中文句号改为英文句点 112 | \catcode`\。=\active 113 | \newcommand{。}{\ifmmode\text{.}\else .\fi} 114 | 115 | % Section 居中 116 | % \CTEXsetup[format={\Large\bfseries}]{section} 117 | %%% CTEX格式设置 %% 118 | \ctexset{ 119 | today=small, 120 | contentsname={文章导航}, 121 | section/format=\Large\bfseries\centering\color{PrimaryColor}, 122 | % subsection/number={\textcolor{MaterialBlue900}{\thesubsection}}, 123 | } 124 | %%% 页眉页脚设置 %%% 125 | \pagestyle{fancy} 126 | \fancyhead[L]{\textcolor{PrimaryColor}{\leftmark}} 127 | \fancyhead[C]{\textcolor{PrimaryColor}{第\zhnumber{\thepage}页}} 128 | \fancyhead[R]{\textcolor{PrimaryColor}{\rightmark}} 129 | \fancyfoot{} 130 | \renewcommand{\headrule}{\color{PrimaryColor}\hrule width\textwidth height\headrulewidth\hfill} 131 | \renewcommand{\headrulewidth}{1.2pt} 132 | \renewcommand{\footrulewidth}{0pt} 133 | 134 | \newtheoremstyle{plain}{3pt}{3pt}{\itshape}{}{\color{PrimaryColor}\bfseries}{}{0.5em}{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} 135 | 136 | \fancypagestyle{plain} 137 | { 138 | \renewcommand{\headrulewidth}{0pt}% 139 | \renewcommand{\headrule}{\hrule height\headrulewidth\hfill} 140 | \fancyhf{}% 141 | % \fancyfoot[C]{\footnotesize \textcolor{MaterialGrey}{\thepage}}% 142 | } 143 | 144 | % 关于图片 graphicx 145 | % 如果图片没有指定后缀, 依次按下列顺序搜索 146 | \DeclareGraphicsExtensions{.eps,.pdf,.jpg,.png} 147 | % 设置图表搜索路径, 可以给图表文件夹取如下名字 148 | \graphicspath{{figures/}{figure/}{pictures/}% 149 | {picture/}{pic/}{pics/}{image/}{images/}} 150 | 151 | %%% 链接设置 %%% 152 | \hypersetup{ 153 | colorlinks=true, 154 | linkcolor=GoogleRed, 155 | urlcolor=GoogleBlue, 156 | filecolor=GoogleGreen, 157 | } 158 | 159 | \newtheoremstyle{thmm}{1.5ex plus 1ex minus .2ex}{1.5ex plus 1ex minus 160 | .2ex}{\rmfamily}{}{\bfseries}{}{1em}{} 161 | \theoremstyle{thmm} 162 | \newtcbtheorem[number within=section]{thm}{\bf 定理}{ 163 | boxrule=0.1mm, 164 | before upper={\parindent2em}, 165 | colback=MaterialGreen50, 166 | colframe=GoogleGreen, 167 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 168 | boxed title style={colback=GoogleGreen} 169 | }{} 170 | \newtcbtheorem[number within=section]{lem}{\bf 引理}{ 171 | boxrule=0.1mm, 172 | before upper={\parindent2em}, 173 | colback=MaterialYellow50, 174 | colframe=GoogleYellow, 175 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 176 | boxed title style={colback=GoogleYellow} 177 | }{} 178 | \newtcbtheorem[number within=section]{cor}{\bf 推论}{ 179 | boxrule=0.1mm, 180 | before upper={\parindent2em}, 181 | colback=MaterialRed50, 182 | colframe=GoogleRed, 183 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 184 | boxed title style={colback=GoogleRed} 185 | }{} 186 | \theoremstyle{definition} % 187 | \newtcbtheorem[number within=section]{defn}{\bf 定义}{ 188 | boxrule=0.1mm, 189 | before upper={\parindent2em}, 190 | colback=MaterialBlue50, 191 | colframe=GoogleBlue, 192 | attach boxed title to top left={xshift=12pt, yshift*=-\tcboxedtitleheight/2}, 193 | boxed title style={colback=GoogleBlue} 194 | }{} 195 | \newtheorem{exa}{\bf 例题}[section] 196 | \theoremstyle{remark} 197 | \newtheorem{rem}{\bf 记号}[section] 198 | \newtheorem*{note}{Note} 199 | \newtheorem{case}{\bf 情形} 200 | 201 | \renewenvironment{proof}[1][Proof]{\noindent\textit{#1. } }{\hfill$\square$} 202 | \def \endproof{\hspace{2pt}\vrule height8pt width 5pt depth 0pt} 203 | \def\refe#1{(\ref{#1})} 204 | \def\proof{\noindent{\bf 证明.}\hskip2mm} 205 | 206 | 207 | % 引入脚注的包 208 | \RequirePackage[marginal]{footmisc} 209 | \renewcommand{\thefootnote}{} 210 | \newcommand\createtext{创建于: }% 211 | \newcommand\updatetext{更新于: }% 212 | 213 | %%% 代码高亮设置 %%% 214 | \tcbuselibrary{listings} 215 | 216 | \lstset{ 217 | frame=single, 218 | frameround=tttt, 219 | framesep=1pt, 220 | framextopmargin=6pt, 221 | framexbottommargin=6pt, 222 | tabsize=4, 223 | breaklines=true, 224 | upquote=true, 225 | captionpos=b, 226 | basicstyle=\footnotesize, 227 | backgroundcolor=\color{MaterialBlue50}, 228 | rulecolor=\color{MaterialBlue}, 229 | identifierstyle=\color{MaterialBlue800}, 230 | commentstyle=\itshape\color{MaterialGreen700}, 231 | stringstyle=\bfseries\color{MaterialAmber800}, 232 | keywordstyle=\bfseries\color{MaterialPurple700}, 233 | numberstyle=\bfseries\color{MaterialGrey800}, 234 | } 235 | 236 | % 公式 237 | \newcommand*{\dif}{\mathop{}\!\mathrm{d}} 238 | 239 | % mathbb 240 | \newcommand{\bba}{\mathbb{a}} 241 | \newcommand{\bbb}{\mathbb{b}} 242 | \newcommand{\bbc}{\mathbb{c}} 243 | \newcommand{\bbd}{\mathbb{d}} 244 | \newcommand{\bbe}{\mathbb{e}} 245 | \newcommand{\bbf}{\mathbb{f}} 246 | \newcommand{\bbg}{\mathbb{g}} 247 | \newcommand{\bbh}{\mathbb{h}} 248 | \newcommand{\bbi}{\mathbb{i}} 249 | \newcommand{\bbj}{\mathbb{j}} 250 | \newcommand{\bbk}{\mathbb{k}} 251 | \newcommand{\bbl}{\mathbb{l}} 252 | \newcommand{\bbm}{\mathbb{m}} 253 | \newcommand{\bbn}{\mathbb{n}} 254 | \newcommand{\bbo}{\mathbb{o}} 255 | \newcommand{\bbp}{\mathbb{p}} 256 | \newcommand{\bbq}{\mathbb{q}} 257 | \newcommand{\bbr}{\mathbb{r}} 258 | \newcommand{\bbs}{\mathbb{s}} 259 | \newcommand{\bbt}{\mathbb{t}} 260 | \newcommand{\bbu}{\mathbb{u}} 261 | \newcommand{\bbv}{\mathbb{v}} 262 | \newcommand{\bbw}{\mathbb{w}} 263 | \newcommand{\bbx}{\mathbb{x}} 264 | \newcommand{\bby}{\mathbb{y}} 265 | \newcommand{\bbz}{\mathbb{z}} 266 | \newcommand{\bbA}{\mathbb{A}} 267 | \newcommand{\bbB}{\mathbb{B}} 268 | \newcommand{\bbC}{\mathbb{C}} 269 | \newcommand{\bbD}{\mathbb{D}} 270 | \newcommand{\bbE}{\mathbb{E}} 271 | \newcommand{\bbF}{\mathbb{F}} 272 | \newcommand{\bbG}{\mathbb{G}} 273 | \newcommand{\bbH}{\mathbb{H}} 274 | \newcommand{\bbI}{\mathbb{I}} 275 | \newcommand{\bbJ}{\mathbb{J}} 276 | \newcommand{\bbK}{\mathbb{K}} 277 | \newcommand{\bbL}{\mathbb{L}} 278 | \newcommand{\bbM}{\mathbb{M}} 279 | \newcommand{\bbN}{\mathbb{N}} 280 | \newcommand{\bbO}{\mathbb{O}} 281 | \newcommand{\bbP}{\mathbb{P}} 282 | \newcommand{\bbQ}{\mathbb{Q}} 283 | \newcommand{\bbR}{\mathbb{R}} 284 | \newcommand{\bbS}{\mathbb{S}} 285 | \newcommand{\bbT}{\mathbb{T}} 286 | \newcommand{\bbU}{\mathbb{U}} 287 | \newcommand{\bbV}{\mathbb{V}} 288 | \newcommand{\bbW}{\mathbb{W}} 289 | \newcommand{\bbX}{\mathbb{X}} 290 | \newcommand{\bbY}{\mathbb{Y}} 291 | \newcommand{\bbZ}{\mathbb{Z}} 292 | 293 | % mathbf 294 | \newcommand{\bfa}{\mathbf{a}} 295 | \newcommand{\bfb}{\mathbf{b}} 296 | \newcommand{\bfc}{\mathbf{c}} 297 | \newcommand{\bfd}{\mathbf{d}} 298 | \newcommand{\bfe}{\mathbf{e}} 299 | \newcommand{\bff}{\mathbf{f}} 300 | \newcommand{\bfg}{\mathbf{g}} 301 | \newcommand{\bfh}{\mathbf{h}} 302 | \newcommand{\bfi}{\mathbf{i}} 303 | \newcommand{\bfj}{\mathbf{j}} 304 | \newcommand{\bfk}{\mathbf{k}} 305 | \newcommand{\bfl}{\mathbf{l}} 306 | \newcommand{\bfm}{\mathbf{m}} 307 | \newcommand{\bfn}{\mathbf{n}} 308 | \newcommand{\bfo}{\mathbf{o}} 309 | \newcommand{\bfp}{\mathbf{p}} 310 | \newcommand{\bfq}{\mathbf{q}} 311 | \newcommand{\bfr}{\mathbf{r}} 312 | \newcommand{\bfs}{\mathbf{s}} 313 | \newcommand{\bft}{\mathbf{t}} 314 | \newcommand{\bfu}{\mathbf{u}} 315 | \newcommand{\bfv}{\mathbf{v}} 316 | \newcommand{\bfw}{\mathbf{w}} 317 | \newcommand{\bfx}{\mathbf{x}} 318 | \newcommand{\bfy}{\mathbf{y}} 319 | \newcommand{\bfz}{\mathbf{z}} 320 | \newcommand{\bfA}{\mathbf{A}} 321 | \newcommand{\bfB}{\mathbf{B}} 322 | \newcommand{\bfC}{\mathbf{C}} 323 | \newcommand{\bfD}{\mathbf{D}} 324 | \newcommand{\bfE}{\mathbf{E}} 325 | \newcommand{\bfF}{\mathbf{F}} 326 | \newcommand{\bfG}{\mathbf{G}} 327 | \newcommand{\bfH}{\mathbf{H}} 328 | \newcommand{\bfI}{\mathbf{I}} 329 | \newcommand{\bfJ}{\mathbf{J}} 330 | \newcommand{\bfK}{\mathbf{K}} 331 | \newcommand{\bfL}{\mathbf{L}} 332 | \newcommand{\bfM}{\mathbf{M}} 333 | \newcommand{\bfN}{\mathbf{N}} 334 | \newcommand{\bfO}{\mathbf{O}} 335 | \newcommand{\bfP}{\mathbf{P}} 336 | \newcommand{\bfQ}{\mathbf{Q}} 337 | \newcommand{\bfR}{\mathbf{R}} 338 | \newcommand{\bfS}{\mathbf{S}} 339 | \newcommand{\bfT}{\mathbf{T}} 340 | \newcommand{\bfU}{\mathbf{U}} 341 | \newcommand{\bfV}{\mathbf{V}} 342 | \newcommand{\bfW}{\mathbf{W}} 343 | \newcommand{\bfX}{\mathbf{X}} 344 | \newcommand{\bfY}{\mathbf{Y}} 345 | \newcommand{\bfZ}{\mathbf{Z}} 346 | 347 | % mathbfit (bm) 348 | \newcommand{\bma}{\bm{a}} 349 | \newcommand{\bmb}{\bm{b}} 350 | \newcommand{\bmc}{\bm{c}} 351 | \newcommand{\bmd}{\bm{d}} 352 | \newcommand{\bme}{\bm{e}} 353 | \newcommand{\bmf}{\bm{f}} 354 | \newcommand{\bmg}{\bm{g}} 355 | \newcommand{\bmh}{\bm{h}} 356 | \newcommand{\bmi}{\bm{i}} 357 | \newcommand{\bmj}{\bm{j}} 358 | \newcommand{\bmk}{\bm{k}} 359 | \newcommand{\bml}{\bm{l}} 360 | \newcommand{\bmm}{\bm{m}} 361 | \newcommand{\bmn}{\bm{n}} 362 | \newcommand{\bmo}{\bm{o}} 363 | \newcommand{\bmp}{\bm{p}} 364 | \newcommand{\bmq}{\bm{q}} 365 | \newcommand{\bmr}{\bm{r}} 366 | \newcommand{\bms}{\bm{s}} 367 | \newcommand{\bmt}{\bm{t}} 368 | \newcommand{\bmu}{\bm{u}} 369 | \newcommand{\bmv}{\bm{v}} 370 | \newcommand{\bmw}{\bm{w}} 371 | \newcommand{\bmx}{\bm{x}} 372 | \newcommand{\bmy}{\bm{y}} 373 | \newcommand{\bmz}{\bm{z}} 374 | \newcommand{\bmA}{\bm{A}} 375 | \newcommand{\bmB}{\bm{B}} 376 | \newcommand{\bmC}{\bm{C}} 377 | \newcommand{\bmD}{\bm{D}} 378 | \newcommand{\bmE}{\bm{E}} 379 | \newcommand{\bmF}{\bm{F}} 380 | \newcommand{\bmG}{\bm{G}} 381 | \newcommand{\bmH}{\bm{H}} 382 | \newcommand{\bmI}{\bm{I}} 383 | \newcommand{\bmJ}{\bm{J}} 384 | \newcommand{\bmK}{\bm{K}} 385 | \newcommand{\bmL}{\bm{L}} 386 | \newcommand{\bmM}{\bm{M}} 387 | \newcommand{\bmN}{\bm{N}} 388 | \newcommand{\bmO}{\bm{O}} 389 | \newcommand{\bmP}{\bm{P}} 390 | \newcommand{\bmQ}{\bm{Q}} 391 | \newcommand{\bmR}{\bm{R}} 392 | \newcommand{\bmS}{\bm{S}} 393 | \newcommand{\bmT}{\bm{T}} 394 | \newcommand{\bmU}{\bm{U}} 395 | \newcommand{\bmV}{\bm{V}} 396 | \newcommand{\bmW}{\bm{W}} 397 | \newcommand{\bmX}{\bm{X}} 398 | \newcommand{\bmY}{\bm{Y}} 399 | \newcommand{\bmZ}{\bm{Z}} 400 | 401 | % mathcal 402 | \newcommand{\calA}{\mathcal{A}} 403 | \newcommand{\calB}{\mathcal{B}} 404 | \newcommand{\calC}{\mathcal{C}} 405 | \newcommand{\calD}{\mathcal{D}} 406 | \newcommand{\calE}{\mathcal{E}} 407 | \newcommand{\calF}{\mathcal{F}} 408 | \newcommand{\calG}{\mathcal{G}} 409 | \newcommand{\calH}{\mathcal{H}} 410 | \newcommand{\calI}{\mathcal{I}} 411 | \newcommand{\calJ}{\mathcal{J}} 412 | \newcommand{\calK}{\mathcal{K}} 413 | \newcommand{\calL}{\mathcal{L}} 414 | \newcommand{\calM}{\mathcal{M}} 415 | \newcommand{\calN}{\mathcal{N}} 416 | \newcommand{\calO}{\mathcal{O}} 417 | \newcommand{\calP}{\mathcal{P}} 418 | \newcommand{\calQ}{\mathcal{Q}} 419 | \newcommand{\calR}{\mathcal{R}} 420 | \newcommand{\calS}{\mathcal{S}} 421 | \newcommand{\calT}{\mathcal{T}} 422 | \newcommand{\calU}{\mathcal{U}} 423 | \newcommand{\calV}{\mathcal{V}} 424 | \newcommand{\calW}{\mathcal{W}} 425 | \newcommand{\calX}{\mathcal{X}} 426 | \newcommand{\calY}{\mathcal{Y}} 427 | \newcommand{\calZ}{\mathcal{Z}} 428 | 429 | % mathfrak 430 | \newcommand{\fraka}{\mathfrak{a}} 431 | \newcommand{\frakb}{\mathfrak{b}} 432 | \newcommand{\frakc}{\mathfrak{c}} 433 | \newcommand{\frakd}{\mathfrak{d}} 434 | \newcommand{\frake}{\mathfrak{e}} 435 | \newcommand{\frakf}{\mathfrak{f}} 436 | \newcommand{\frakg}{\mathfrak{g}} 437 | \newcommand{\frakh}{\mathfrak{h}} 438 | \newcommand{\fraki}{\mathfrak{i}} 439 | \newcommand{\frakj}{\mathfrak{j}} 440 | \newcommand{\frakk}{\mathfrak{k}} 441 | \newcommand{\frakl}{\mathfrak{l}} 442 | \newcommand{\frakm}{\mathfrak{m}} 443 | \newcommand{\frakn}{\mathfrak{n}} 444 | \newcommand{\frako}{\mathfrak{o}} 445 | \newcommand{\frakp}{\mathfrak{p}} 446 | \newcommand{\frakq}{\mathfrak{q}} 447 | \newcommand{\frakr}{\mathfrak{r}} 448 | \newcommand{\fraks}{\mathfrak{s}} 449 | \newcommand{\frakt}{\mathfrak{t}} 450 | \newcommand{\fraku}{\mathfrak{u}} 451 | \newcommand{\frakv}{\mathfrak{v}} 452 | \newcommand{\frakw}{\mathfrak{w}} 453 | \newcommand{\frakx}{\mathfrak{x}} 454 | \newcommand{\fraky}{\mathfrak{y}} 455 | \newcommand{\frakz}{\mathfrak{z}} 456 | \newcommand{\frakA}{\mathfrak{A}} 457 | \newcommand{\frakB}{\mathfrak{B}} 458 | \newcommand{\frakC}{\mathfrak{C}} 459 | \newcommand{\frakD}{\mathfrak{D}} 460 | \newcommand{\frakE}{\mathfrak{E}} 461 | \newcommand{\frakF}{\mathfrak{F}} 462 | \newcommand{\frakG}{\mathfrak{G}} 463 | \newcommand{\frakH}{\mathfrak{H}} 464 | \newcommand{\frakI}{\mathfrak{I}} 465 | \newcommand{\frakJ}{\mathfrak{J}} 466 | \newcommand{\frakK}{\mathfrak{K}} 467 | \newcommand{\frakL}{\mathfrak{L}} 468 | \newcommand{\frakM}{\mathfrak{M}} 469 | \newcommand{\frakN}{\mathfrak{N}} 470 | \newcommand{\frakO}{\mathfrak{O}} 471 | \newcommand{\frakP}{\mathfrak{P}} 472 | \newcommand{\frakQ}{\mathfrak{Q}} 473 | \newcommand{\frakR}{\mathfrak{R}} 474 | \newcommand{\frakS}{\mathfrak{S}} 475 | \newcommand{\frakT}{\mathfrak{T}} 476 | \newcommand{\frakU}{\mathfrak{U}} 477 | \newcommand{\frakV}{\mathfrak{V}} 478 | \newcommand{\frakW}{\mathfrak{W}} 479 | \newcommand{\frakX}{\mathfrak{X}} 480 | \newcommand{\frakY}{\mathfrak{Y}} 481 | \newcommand{\frakZ}{\mathfrak{Z}} 482 | 483 | % mathrm 484 | \newcommand{\rma}{\mathrm{a}} 485 | \newcommand{\rmb}{\mathrm{b}} 486 | \newcommand{\rmc}{\mathrm{c}} 487 | \newcommand{\rmd}{\mathrm{d}} 488 | \newcommand{\rme}{\mathrm{e}} 489 | \newcommand{\rmf}{\mathrm{f}} 490 | \newcommand{\rmg}{\mathrm{g}} 491 | \newcommand{\rmh}{\mathrm{h}} 492 | \newcommand{\rmi}{\mathrm{i}} 493 | \newcommand{\rmj}{\mathrm{j}} 494 | \newcommand{\rmk}{\mathrm{k}} 495 | \newcommand{\rml}{\mathrm{l}} 496 | \newcommand{\rmm}{\mathrm{m}} 497 | \newcommand{\rmn}{\mathrm{n}} 498 | \newcommand{\rmo}{\mathrm{o}} 499 | \newcommand{\rmp}{\mathrm{p}} 500 | \newcommand{\rmq}{\mathrm{q}} 501 | \newcommand{\rmr}{\mathrm{r}} 502 | \newcommand{\rms}{\mathrm{s}} 503 | \newcommand{\rmt}{\mathrm{t}} 504 | \newcommand{\rmu}{\mathrm{u}} 505 | \newcommand{\rmv}{\mathrm{v}} 506 | \newcommand{\rmw}{\mathrm{w}} 507 | \newcommand{\rmx}{\mathrm{x}} 508 | \newcommand{\rmy}{\mathrm{y}} 509 | \newcommand{\rmz}{\mathrm{z}} 510 | \newcommand{\rmA}{\mathrm{A}} 511 | \newcommand{\rmB}{\mathrm{B}} 512 | \newcommand{\rmC}{\mathrm{C}} 513 | \newcommand{\rmD}{\mathrm{D}} 514 | \newcommand{\rmE}{\mathrm{E}} 515 | \newcommand{\rmF}{\mathrm{F}} 516 | \newcommand{\rmG}{\mathrm{G}} 517 | \newcommand{\rmH}{\mathrm{H}} 518 | \newcommand{\rmI}{\mathrm{I}} 519 | \newcommand{\rmJ}{\mathrm{J}} 520 | \newcommand{\rmK}{\mathrm{K}} 521 | \newcommand{\rmL}{\mathrm{L}} 522 | \newcommand{\rmM}{\mathrm{M}} 523 | \newcommand{\rmN}{\mathrm{N}} 524 | \newcommand{\rmO}{\mathrm{O}} 525 | \newcommand{\rmP}{\mathrm{P}} 526 | \newcommand{\rmQ}{\mathrm{Q}} 527 | \newcommand{\rmR}{\mathrm{R}} 528 | \newcommand{\rmS}{\mathrm{S}} 529 | \newcommand{\rmT}{\mathrm{T}} 530 | \newcommand{\rmU}{\mathrm{U}} 531 | \newcommand{\rmV}{\mathrm{V}} 532 | \newcommand{\rmW}{\mathrm{W}} 533 | \newcommand{\rmX}{\mathrm{X}} 534 | \newcommand{\rmY}{\mathrm{Y}} 535 | \newcommand{\rmZ}{\mathrm{Z}} -------------------------------------------------------------------------------- /table-test/test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MatNoble/LaTeX-Document/fd5e5673b00dddb2402a8f5ca390bfbc3d6f3485/table-test/test.pdf -------------------------------------------------------------------------------- /table-test/test.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper, 12pt, UTF8]{ctexart} 2 | \usepackage{matnoble-doc-cn} 3 | 4 | \begin{document} 5 | \title{\bf Emacs 快速输入 \LaTeX 表格} \author{\bf 6 | \href{https://matnoble.me/about}{MatNoble}} 7 | \date{} 8 | 9 | \maketitle 10 | 11 | % logo 12 | \vspace{23em} 13 | \begin{figure}[ht] 14 | \centering{\includegraphics[width=0.25\textwidth]{google.png}} 15 | \end{figure} 16 | \footnote{\noindent \createtext{2020 年 2 月 4 日} \newline 17 | \updatetext{\today}}. 18 | 19 | \clearpage 20 | 21 | \section{表格} 22 | \begin{table}[ht] 23 | \centering 24 | \caption{这是示例表格} 25 | \vskip 0.1in 26 | \label{table} 27 | \begin{tabular}{c|cccc} 28 | \hline 29 | \hline 30 | \rule{0pt}{3ex} 31 | 序号 & 姓名 & 年龄 & 学号 & 性别 32 | \rule[-1.2ex]{0pt}{0pt} 33 | \\ 34 | \hline 35 | 001 & * & * & * & * \\ 36 | 002 & * & * & * & * \\ 37 | 003 & * & * & * & * \\ 38 | 004 & * & * & * & * \\ 39 | \hline 40 | \hline 41 | \end{tabular} 42 | \end{table} 43 | 44 | \begin{table}[ht] 45 | \centering 46 | \caption{这是一个示例表格} 47 | \begin{tabular}{c|cccc} 48 | \hline 49 | \hline 50 | & \Gape[6pt]{1} &2 &3 &4 \\ 51 | \hline 52 | 1 & 2.2646e-03 & 1.1997e-01 & 4.4198e-02 & 1.0017e+00 \\ 53 | 2 & 3.1816e-04 & 3.0530e-02 & 1.1504e-02 & 5.0877e-01 \\ 54 | 3 & 5.2683e-05 & 7.6682e-03 & 2.9059e-03 & 2.5539e-01 \\ 55 | 4 & 1.0837e-05 & 1.9193e-03 & 7.2837e-04 & 1.2782e-01 \\ 56 | 5 & 2.5422e-06 & 4.7998e-04 & 1.8221e-04 & 6.3928e-02 \\ 57 | \hline 58 | \hline 59 | \end{tabular} 60 | \label{tab:data1} 61 | \end{table} 62 | 63 | \begin{table}[ht] 64 | \centering 65 | \caption{举个栗子} 66 | \begin{tabular}{l|cc} 67 | \hline 68 | \hline 69 | \Gape[6pt]{数系家园}&数系家园&数系家园 \\ 70 | \hline 71 | 左边&中央&中央 \\ 72 | \hline 73 | \hline 74 | \end{tabular} 75 | \end{table} 76 | \end{document} 77 | -------------------------------------------------------------------------------- /table-test/test.txt: -------------------------------------------------------------------------------- 1 | ---------------- 2 | M = 8 2.2646e-03 2.83 3 | M = 16 3.1816e-04 2.59 4 | M = 32 5.2683e-05 2.28 5 | M = 64 1.0837e-05 2.09 6 | M = 128 2.5422e-06 2.45 7 | ---------------- 8 | M = 8 1.1997e-01 1.97 9 | M = 16 3.0530e-02 1.99 10 | M = 32 7.6682e-03 2.00 11 | M = 64 1.9193e-03 2.00 12 | M = 128 4.7998e-04 1.99 13 | ---------------- 14 | M = 8 4.4198e-02 1.94 15 | M = 16 1.1504e-02 1.99 16 | M = 32 2.9059e-03 2.00 17 | M = 64 7.2837e-04 2.00 18 | M = 128 1.8221e-04 1.98 19 | ---------------- 20 | M = 8 1.0017e+00 0.98 21 | M = 16 5.0877e-01 0.99 22 | M = 32 2.5539e-01 1.00 23 | M = 64 1.2782e-01 1.00 24 | M = 128 6.3928e-02 0.99 25 | --------------------------------------------------------------------------------