├── .gitattributes ├── .gitignore ├── JXUSTmodeling.cls ├── LICENSE ├── example.tex ├── figures ├── daiquanshuzi.tex ├── liuchentu.tex ├── tab.tex └── tikz.tex └── main.tex /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Core latex/pdflatex auxiliary files: 2 | *.aux 3 | *.lof 4 | *.log 5 | *.lot 6 | *.fls 7 | *.out 8 | *.toc 9 | *.fmt 10 | *.fot 11 | *.cb 12 | *.cb2 13 | .*.lb 14 | 15 | ## Intermediate documents: 16 | *.dvi 17 | *.xdv 18 | *-converted-to.* 19 | # these rules might exclude image files for figures etc. 20 | # *.ps 21 | # *.eps 22 | # *.pdf 23 | 24 | ## Generated if empty string is given at "Please type another file name for output:" 25 | .pdf 26 | 27 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 28 | *.bbl 29 | *.bcf 30 | *.blg 31 | *-blx.aux 32 | *-blx.bib 33 | *.run.xml 34 | 35 | ## Build tool auxiliary files: 36 | *.fdb_latexmk 37 | *.synctex 38 | *.synctex(busy) 39 | *.synctex.gz 40 | *.synctex.gz(busy) 41 | *.pdfsync 42 | 43 | ## Build tool directories for auxiliary files 44 | # latexrun 45 | latex.out/ 46 | 47 | ## Auxiliary and intermediate files from other packages: 48 | # algorithms 49 | *.alg 50 | *.loa 51 | 52 | # achemso 53 | acs-*.bib 54 | 55 | # amsthm 56 | *.thm 57 | 58 | # beamer 59 | *.nav 60 | *.pre 61 | *.snm 62 | *.vrb 63 | 64 | # changes 65 | *.soc 66 | 67 | # comment 68 | *.cut 69 | 70 | # cprotect 71 | *.cpt 72 | 73 | # elsarticle (documentclass of Elsevier journals) 74 | *.spl 75 | 76 | # endnotes 77 | *.ent 78 | 79 | # fixme 80 | *.lox 81 | 82 | # feynmf/feynmp 83 | *.mf 84 | *.mp 85 | *.t[1-9] 86 | *.t[1-9][0-9] 87 | *.tfm 88 | 89 | #(r)(e)ledmac/(r)(e)ledpar 90 | *.end 91 | *.?end 92 | *.[1-9] 93 | *.[1-9][0-9] 94 | *.[1-9][0-9][0-9] 95 | *.[1-9]R 96 | *.[1-9][0-9]R 97 | *.[1-9][0-9][0-9]R 98 | *.eledsec[1-9] 99 | *.eledsec[1-9]R 100 | *.eledsec[1-9][0-9] 101 | *.eledsec[1-9][0-9]R 102 | *.eledsec[1-9][0-9][0-9] 103 | *.eledsec[1-9][0-9][0-9]R 104 | 105 | # glossaries 106 | *.acn 107 | *.acr 108 | *.glg 109 | *.glo 110 | *.gls 111 | *.glsdefs 112 | 113 | # gnuplottex 114 | *-gnuplottex-* 115 | 116 | # gregoriotex 117 | *.gaux 118 | *.gtex 119 | 120 | # htlatex 121 | *.4ct 122 | *.4tc 123 | *.idv 124 | *.lg 125 | *.trc 126 | *.xref 127 | 128 | # hyperref 129 | *.brf 130 | 131 | # knitr 132 | *-concordance.tex 133 | # TODO Comment the next line if you want to keep your tikz graphics files 134 | *.tikz 135 | *-tikzDictionary 136 | 137 | # listings 138 | *.lol 139 | 140 | # luatexja-ruby 141 | *.ltjruby 142 | 143 | # makeidx 144 | *.idx 145 | *.ilg 146 | *.ind 147 | 148 | # minitoc 149 | *.maf 150 | *.mlf 151 | *.mlt 152 | *.mtc[0-9]* 153 | *.slf[0-9]* 154 | *.slt[0-9]* 155 | *.stc[0-9]* 156 | 157 | # minted 158 | _minted* 159 | *.pyg 160 | 161 | # morewrites 162 | *.mw 163 | 164 | # nomencl 165 | *.nlg 166 | *.nlo 167 | *.nls 168 | 169 | # pax 170 | *.pax 171 | 172 | # pdfpcnotes 173 | *.pdfpc 174 | 175 | # sagetex 176 | *.sagetex.sage 177 | *.sagetex.py 178 | *.sagetex.scmd 179 | 180 | # scrwfile 181 | *.wrt 182 | 183 | # sympy 184 | *.sout 185 | *.sympy 186 | sympy-plots-for-*.tex/ 187 | 188 | # pdfcomment 189 | *.upa 190 | *.upb 191 | 192 | # pythontex 193 | *.pytxcode 194 | pythontex-files-*/ 195 | 196 | # tcolorbox 197 | *.listing 198 | 199 | # thmtools 200 | *.loe 201 | 202 | # TikZ & PGF 203 | *.dpth 204 | *.md5 205 | *.auxlock 206 | 207 | # todonotes 208 | *.tdo 209 | 210 | # vhistory 211 | *.hst 212 | *.ver 213 | 214 | # easy-todo 215 | *.lod 216 | 217 | # xcolor 218 | *.xcp 219 | 220 | # xmpincl 221 | *.xmpi 222 | 223 | # xindy 224 | *.xdy 225 | 226 | # xypic precompiled matrices 227 | *.xyc 228 | 229 | # endfloat 230 | *.ttt 231 | *.fff 232 | 233 | # Latexian 234 | TSWLatexianTemp* 235 | 236 | ## Editors: 237 | # WinEdt 238 | *.bak 239 | *.sav 240 | 241 | # Texpad 242 | .texpadtmp 243 | 244 | # LyX 245 | *.lyx~ 246 | 247 | # Kile 248 | *.backup 249 | 250 | # KBibTeX 251 | *~[0-9]* 252 | 253 | # auto folder when using emacs and auctex 254 | ./auto/* 255 | *.el 256 | 257 | # expex forward references with \gathertags 258 | *-tags.tex 259 | 260 | # standalone packages 261 | *.sta 262 | -------------------------------------------------------------------------------- /JXUSTmodeling.cls: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % github:https://github.com/sikouhjw/JXUSTmodeling 3 | % 开发者:sikouhjw,XAjzh 4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5 | \NeedsTeXFormat{LaTeX2e} 6 | \ProvidesClass{JXUSTmodeling}[2020/05/19 version 2.2] 7 | 8 | % \ProcessOptions\relax 9 | \LoadClass[oneside,a4paper,UTF8,zihao=-4]{ctexart} 10 | \RequirePackage{amsmath,amssymb} 11 | \RequirePackage{newtxtext,newtxmath,esint} 12 | \RequirePackage{sourcecodepro} 13 | \setCJKmainfont[Mapping=fullwidth-stop,AutoFakeBold=true]{SimSun} 14 | \RequirePackage[ 15 | UseMSWordMultipleLineSpacing, 16 | MSWordLineSpacingMultiple=1.25 17 | ]{zhlineskip} 18 | 19 | % 设置章节格式 20 | \ctexset{ 21 | section={ 22 | format={\zihao{4}\heiti\centering}, 23 | name={,、}, 24 | aftername={\hspace{0pt}}, 25 | number=\chinese{section}, 26 | }, 27 | subsection={ 28 | format={\zihao{-4}\bfseries\raggedright}, 29 | name={}, 30 | aftername={\hspace{5bp}}, 31 | number={\arabic{section}.\arabic{subsection}}, 32 | }, 33 | subsubsection={ 34 | format={\zihao{-4}\bfseries\raggedright}, 35 | name={}, 36 | aftername={\hspace{5bp}}, 37 | number={\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}, 38 | }, 39 | appendix={ 40 | name={附录,:}, 41 | number=\arabic{section}, 42 | } 43 | } 44 | 45 | \def\biaoti#1{\gdef\@biaoti{#1}} 46 | \def\keyword#1{\gdef\@keyword{#1}} 47 | \renewenvironment{abstract}% 48 | {% 49 | \begingroup\centering\heiti\zihao{3}\@biaoti\par\endgroup% 50 | \begingroup\centering\heiti\zihao{4}摘 要\par\endgroup% 51 | }{% 52 | \par\vspace*{\baselineskip}\noindent{\heiti 关键词:}\@keyword\newpage% 53 | } 54 | 55 | % 浮动环境设置默认情况下, \LaTeX{} 要求每页的文字至少占据 20%,否则该页就只单独放置一个浮动环境,而这通常不是我们想要的, 我们将这个要求降低到 5%. 56 | \renewcommand*{\textfraction}{0.05} 57 | % 有时如果多个浮动环境连续放在一起, \LaTeX{}会将它们分在几个不同页,即使它们可在同一页放得下. 我们可以通过修改 |\topfraction| 和 |\bottomfraction| 分别设置顶端和底端的浮动环境的最大比例. 58 | \renewcommand*{\topfraction}{0.9} 59 | \renewcommand*{\bottomfraction}{0.8} 60 | % 有时\LaTeX{}会把一个浮动环境单独放在一页,我们要求这个环境至少要占据 85% 才能单独放在一页.注意: |\floatpagefraction| 的数值必须小于 |\topfraction| 61 | \renewcommand*{\floatpagefraction}{0.85} 62 | 63 | % 设置页面边距 64 | \RequirePackage[textwidth=444bp,vmargin=2.5cm]{geometry} 65 | 66 | % 加载物理、国标宏包 67 | \RequirePackage{physics,siunitx} 68 | 69 | \renewcommand{\leq}{\leqslant} 70 | \renewcommand{\geq}{\geqslant} 71 | 72 | % 载入表格宏包和插图宏包 73 | \RequirePackage{booktabs,tabularx,multirow,makecell} 74 | \RequirePackage{mwe} 75 | \RequirePackage{caption,subcaption} 76 | \renewcommand\thesubfigure{(\alph{subfigure})} 77 | \captionsetup[sub]{labelformat=simple} 78 | % \captionsetup{skip=0pt}% 将图表标题与图表之间的纵向间距取消掉 79 | \captionsetup{format=hang}% 设置浮动体标题悬挂缩进 80 | \DeclareCaptionLabelSeparator*{sspace}{\ \ } 81 | \captionsetup[figure]{labelsep=sspace} 82 | \captionsetup[table]{labelsep=sspace} 83 | \DeclareCaptionFont{heiti}{\heiti} 84 | \DeclareCaptionFont{5hao}{\zihao{5}} 85 | \captionsetup{labelfont={heiti,5hao},textfont={heiti,5hao}}% 设置图表标题为5号、黑体 86 | \RequirePackage[section]{placeins} 87 | 88 | % 定义居中的X列格式 89 | \newcolumntype{Y}{>{\centering\arraybackslash}X} 90 | 91 | % 设置图片路径 92 | \graphicspath{{figures/}} 93 | 94 | % 载入列表宏包 95 | \RequirePackage{enumitem} 96 | \setlist[enumerate,1]{leftmargin=0pt,labelsep=0pt,itemindent=3\ccwd+0.2cm,parsep=0pt,itemsep=0pt,topsep=0pt,partopsep=0pt,listparindent=2\ccwd} 97 | \def\labelenumi{\theenumi、} 98 | \setlist[itemize,1]{leftmargin=0pt,itemindent=3\ccwd,parsep=0pt,itemsep=0pt,topsep=0pt,partopsep=0pt,listparindent=2\ccwd} 99 | 100 | 101 | % 载入参考文献宏包,设置引用格式 102 | \RequirePackage{natbib} 103 | \setcitestyle{square,super} 104 | 105 | % 载入代码宏包 106 | \RequirePackage{xcolor,listings} 107 | % 设置代码的默认样式 108 | \lstset{ 109 | frame=none,% 取消边框 110 | breaklines=true,% 允许自动断行 111 | % breakatwhitespace=true,% 使用此命令仅允许在空格处自动断行 112 | showstringspaces=false,% 不显示字符串中的空格 113 | basicstyle=\small\ttfamily,% 设置代码基本样式 114 | flexiblecolumns=true,% 改善字母间距 115 | keywordstyle=\color{blue},% 设置关键词样式 116 | stringstyle=\color[rgb]{0.75,0,0.75},% 设置字符串样式 117 | commentstyle=\songti\color[rgb]{0,0.5,0},% 设置注释样式 118 | tabsize=2,% 设置制表符缩进 119 | } 120 | 121 | % 设置matlab代码环境 122 | \lstnewenvironment{matlab}[1][]{ 123 | \lstset{ 124 | language=Matlab, 125 | % deletekeywords={disp},% 可在此行去除特定关键词的语法高亮 126 | keywordstyle=\color{blue},% 设置关键词样式 127 | stringstyle=\color[rgb]{0.75,0,0.75},% 设置字符串样式 128 | commentstyle=\songti\color[rgb]{0,0.5,0},% 设置注释样式 129 | #1 130 | } 131 | }{} 132 | 133 | % 设置python代码环境 134 | \lstnewenvironment{python}[1][]{ 135 | \lstset{ 136 | language=Python, 137 | keywordstyle=\color[RGB]{255,119,0},% 设置Keywords样式 138 | morekeywords={as},% 将特定单词加入Kewords中 139 | deletekeywords={print},%从 keywords中去除特定单词 140 | keywordstyle=[2]\color[RGB]{144,0,144},% 设置Builtins样式 141 | morekeywords=[2]{print},% 将特定单词加入Builtins中 142 | stringstyle=\color[RGB]{0,170,0},% 设置字符串样式 143 | commentstyle=\songti\color[RGB]{221,0,0},% 设置注释样式 144 | #1 145 | } 146 | }{} 147 | 148 | \RequirePackage{etoolbox} 149 | \newenvironment{appendixx}{% 150 | \newpage% 151 | \appendix% 152 | \ctexset{section={% 153 | format={\zihao{-4}\heiti\raggedright}% 154 | }}% 155 | \zihao{5}% 156 | \begingroup\centering\heiti\zihao{4}附 录\par\endgroup% 157 | }{} 158 | \AtBeginEnvironment{thebibliography}{\phantomsection\addcontentsline{toc}{section}{参考文献}} 159 | 160 | % 设置页眉页脚格式 161 | \pagestyle{plain} 162 | 163 | \labelformat{figure}{图~#1} 164 | \labelformat{table}{表~#1} 165 | \labelformat{equation}{(#1)~式} 166 | 167 | % 载入超链接宏包 168 | \RequirePackage{hyperref} 169 | \hypersetup{breaklinks,colorlinks}% 允许超链接断行,取消超链接的边框,使链接文字带颜色 170 | \hypersetup{hidelinks,bookmarksnumbered=true,bookmarksopen=true,pdfstartview=Fit}% 取消超链接的颜色,书签目录增加编号 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 sikouhjw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /example.tex: -------------------------------------------------------------------------------- 1 | \documentclass{JXUSTmodeling} 2 | \usepackage{minted} 3 | \makeatletter 4 | \newlength\savefboxrule 5 | \newlength\savefboxsep 6 | \edef\example@name{\jobname-example.aux} 7 | \newenvironment{hexample}% 8 | {% 9 | \renewcommand{\minted@FVB@VerbatimOut}[1]{% 10 | \@bsphack 11 | \begingroup 12 | \FV@DefineWhiteSpace 13 | \def\FV@Space{\space}% 14 | \FV@DefineTabOut 15 | \let\FV@ProcessLine\minted@write@detok 16 | \immediate\openout\FV@OutFile ##1\relax 17 | \let\FV@FontScanPrep\relax 18 | \let\@noligs\relax 19 | \FV@Scan} 20 | \minted@FVB@VerbatimOut{\example@name}}% 21 | {\minted@FVE@VerbatimOut% 22 | \trivlist\item\relax 23 | \setlength{\savefboxrule}{\fboxrule}% 24 | \setlength{\savefboxsep}{\fboxsep}% 25 | \setlength{\fboxsep}{0.015\textwidth}% 26 | \setlength{\fboxrule}{0.4pt}% 27 | \fcolorbox[gray]{0}{0.95}{% 28 | \begin{minipage}[c]{0.45\textwidth}% 29 | \setlength{\fboxrule}{\savefboxrule}% 30 | \setlength{\fboxsep}{\savefboxsep}% 31 | \small\inputminted[breakanywhere,breaklines=true,numbers=left]{latex}{\example@name}% 32 | \end{minipage}% 33 | }% 34 | \hfill% 35 | \fbox{% 36 | \begin{minipage}[c]{0.45\textwidth}% 37 | \setlength{\fboxrule}{\savefboxrule}% 38 | \setlength{\fboxsep}{\savefboxsep}% 39 | \setlength{\parskip}{1ex plus 0.4ex minus 0.2ex}% 40 | \normalsize\input{\example@name}% 41 | \end{minipage}% 42 | }% 43 | \endtrivlist 44 | } 45 | \newenvironment{vexample}% 46 | {% 47 | \renewcommand{\minted@FVB@VerbatimOut}[1]{% 48 | \@bsphack 49 | \begingroup 50 | \FV@DefineWhiteSpace 51 | \def\FV@Space{\space}% 52 | \FV@DefineTabOut 53 | \let\FV@ProcessLine\minted@write@detok 54 | \immediate\openout\FV@OutFile ##1\relax 55 | \let\FV@FontScanPrep\relax 56 | \let\@noligs\relax 57 | \FV@Scan} 58 | \minted@FVB@VerbatimOut{\example@name}}% 59 | {\minted@FVE@VerbatimOut% 60 | \trivlist\item\relax 61 | \setlength{\savefboxrule}{\fboxrule}% 62 | \setlength{\savefboxsep}{\fboxsep}% 63 | \setlength{\fboxsep}{0.015\textwidth}% 64 | \setlength{\fboxrule}{0.4pt}% 65 | \begin{minipage}[c]{\textwidth} 66 | \fcolorbox[gray]{0}{0.95}{% 67 | \begin{minipage}[c]{\textwidth-0.03\textwidth-0.8pt}% 68 | \setlength{\fboxrule}{\savefboxrule}% 69 | \setlength{\fboxsep}{\savefboxsep}% 70 | \small\inputminted[breakanywhere,breaklines=true,numbers=left]{latex}{\example@name}% 71 | \end{minipage}% 72 | }\\ 73 | \fbox{% 74 | \begin{minipage}[c]{\textwidth-0.03\textwidth-0.8pt}% 75 | \setlength{\fboxrule}{\savefboxrule}% 76 | \setlength{\fboxsep}{\savefboxsep}% 77 | \setlength{\parskip}{1ex plus 0.4ex minus 0.2ex}% 78 | \normalsize\input{\example@name}% 79 | \end{minipage}% 80 | }% 81 | \end{minipage} 82 | \endtrivlist 83 | } 84 | \newenvironment{floatexample}% 85 | {% 86 | \renewcommand{\minted@FVB@VerbatimOut}[1]{% 87 | \@bsphack 88 | \begingroup 89 | \FV@DefineWhiteSpace 90 | \def\FV@Space{\space}% 91 | \FV@DefineTabOut 92 | \let\FV@ProcessLine\minted@write@detok 93 | \immediate\openout\FV@OutFile ##1\relax 94 | \let\FV@FontScanPrep\relax 95 | \let\@noligs\relax 96 | \FV@Scan} 97 | \minted@FVB@VerbatimOut{\example@name}}% 98 | {\minted@FVE@VerbatimOut% 99 | \trivlist\item\relax 100 | \setlength{\savefboxrule}{\fboxrule}% 101 | \setlength{\savefboxsep}{\fboxsep}% 102 | \setlength{\fboxsep}{0.015\textwidth}% 103 | \setlength{\fboxrule}{0.4pt}% 104 | \fcolorbox[gray]{0}{0.95}{% 105 | \begin{minipage}[c]{\textwidth-0.03\textwidth-0.8pt}% 106 | \setlength{\fboxrule}{\savefboxrule}% 107 | \setlength{\fboxsep}{\savefboxsep}% 108 | \small\inputminted[breakanywhere,breaklines=true,numbers=left]{latex}{\example@name}% 109 | \end{minipage}% 110 | }\\ 111 | \input{\example@name}% 112 | \endtrivlist 113 | } 114 | \makeatother 115 | 116 | \biaoti{全国大学生数学建模竞赛 \LaTeX{} 模板使用手册} 117 | \keyword{数学建模;\LaTeX{}} 118 | \begin{document} 119 | \begin{abstract} 120 | 为了让参加数学建模比赛的人专注内容,而尽可能少去关注格式,特此开发出此模板.以上是套话。 121 | 122 | 编译环境: 123 | \begin{itemize} 124 | \item 发行版:\TeX{} Live 2020; 125 | \item 编译方式:\texttt{XeLaTeX}; 126 | \item 编码:UTF8。 127 | \end{itemize} 128 | 129 | 使用水平:学习三个月及以上。 130 | 131 | 本模板只是个说明文档,在写论文时请不要在 \texttt{example.tex} 文件上进行修改,请在 \texttt{main.tex} 上增添内容。 132 | 133 | 本模板不是官方模板,开发者不对此模板作任何的担保,使用者在使用此模板时出现的任何问题、造成的损失都与开发者无关。 134 | 135 | 模板代码托管地址:\url{https://github.com/sikouhjw/JXUSTmodeling},有问题可以提 issue,但要遵守提问规范,参考我的博文《\href{https://sikouhjw.gitee.io/2020/03/08/2020-03-08-ask-questions/}{(我的)LaTeX 提问流程}》。 136 | \end{abstract} 137 | 138 | \section{模板规范} 139 | \begin{enumerate} 140 | \item 页边距 \texttt{textwidth=444bp,vmargin=2.5cm},为了满足行长是字号的整数倍,不采取 \texttt{hmargin=2.5cm}; 141 | \item 多倍行距:1.25; 142 | \item 标题三号黑体居中; 143 | \item 一级标题四号黑体居中; 144 | \item 其他标题小四宋体加粗; 145 | \item 正文小四宋体; 146 | \item 图表标题 5 号黑体; 147 | \item 参考文献引用放右上角; 148 | \item 数学公式靠右编号; 149 | \item 附录内容用 5 号字体; 150 | \item 英文及普通数字使用 \texttt{newtxtext} 宏包; 151 | \item 用英文全角句号代替中文句号。 152 | \end{enumerate} 153 | 154 | \section{推荐的写作规范} 155 | \begin{enumerate} 156 | \item 代码只出现在附录; 157 | \item 列表环境使用分号,最后一个用句号; 158 | \item 行内公式不要用 \mintinline{latex}{|\displaystyle|}; 159 | \item 过多地图片只放几张在正文,其余在附录; 160 | \item 表格尽可能用三线表。 161 | \end{enumerate} 162 | 163 | \section{纸质版论文格式规范} 164 | \begin{enumerate} 165 | \item 论文用白色A4纸打印(单面、双面均可);上下左右各留出至少 2.5 厘米的页边距;从左侧装订; 166 | \item 论文第一页为承诺书,第二页为编号专用页; 167 | \item 论文第三页为摘要专用页(含标题和关键词,但不需要翻译成英文),从此页开始编写页码;页码必须位于每页页脚中部,用阿拉伯数字从“1”开始连续编号.摘要专用页必须单独一页,且篇幅不能超过一页; 168 | \item 从第四页开始是论文正文(不要目录,尽量控制在 20 页以内);正文之后是论文附录(页数不限); 169 | \item 论文附录至少应包括参赛论文的所有源程序代码,如实际使用的软件名称、命令和编写的全部可运行的源程序(含 EXCEL、SPSS 等软件的交互命令);通常还应包括自主查阅使用的数据等资料.赛题中提供的数据不要放在附录.如果缺少必要的源程序或程序不能运行(或者运行结果与正文不符),可能会被取消评奖资格.论文附录必须打印装订在论文纸质版中.如果确实没有源程序,也应在论文附录中明确说明“本论文没有源程序”; 170 | \item 论文正文和附录不能有任何可能显示答题人身份和所在学校及赛区的信息; 171 | \item 引用别人的成果或其他公开的资料(包括网上资料)必须按照科技论文写作的规范格式列出参考文献,并在正文引用处予以标注; 172 | \end{enumerate} 173 | 174 | \section{电子版论文格式规范} 175 | \begin{enumerate} 176 | \item 参赛队应按照《全国大学生数学建模竞赛报名和参赛须知》的要求命名和提交以下两个电子文件,分别对应于参赛论文和相关的支撑材料; 177 | \item 参赛论文的电子版不能包含承诺书和编号专用页(即电子版论文第一页为摘要页).除此之外,其内容及格式必须与纸质版完全一致(包括正文及附录),且必须是一个单独的文件,文件格式只能为 \texttt{PDF} 或者 \texttt{Word} 格式之一(建议使用 \texttt{PDF} 格式),不要压缩,文件大小不要超过 \SI{20}{MB}; 178 | \item 撑材料(不超过 \SI{20}{MB})包括用于支撑论文模型、结果、结论的所有必要文件,至少应包含参赛论文的所有源程序,通常还应包含参赛论文使用的数据(赛题中提供的原始数据除外)、较大篇幅的中间结果的图形或表格、难以从公开渠道找到的相关资料等.所有支撑材料使用 WinRAR 软件压缩在一个文件中(后缀为 \texttt{RAR});如果支撑材料与论文内容不相符,该论文可能会被取消评奖资格.支撑材料中不能包含承诺书和编号专用页,不能有任何可能显示答题人身份和所在学校及赛区的信息.如果确实没有需要提供的支撑材料,可以不提供支撑材料. 179 | \end{enumerate} 180 | 181 | \section{使用例子} 182 | 生成标题页 183 | \begin{hexample} 184 | \biaoti{标题} 185 | \keyword{关键词;关键词} 186 | \begin{abstract} 187 | 摘要内容摘要内容 188 | \end{abstract} 189 | \end{hexample} 190 | 191 | 西文字体和数学公式用了大家喜闻乐见的 Times 风格的 \texttt{newtxtext} 和 \texttt{newtxmath} 宏包 192 | \begin{hexample} 193 | Times 194 | \[ \widehat{f}(\xi) = \frac{1}{(2\pi)^{d/2}}+ \int_{\mathbb{R}^d} e^{-ix \cdot \xi} f(x) \dd{x} \] 195 | \end{hexample} 196 | 197 | 方便输入 Physical quantities 的 \texttt{siunitx} 宏包和简便数学公式输入的 \texttt{physics} 宏包 198 | \begin{hexample} 199 | \SI{123}{cm} \quad \si{Hz} \quad \num{3.45d-4}\par 200 | $\int f(x) \dd{x}$ \quad $\dv{x}$ 201 | \end{hexample} 202 | 203 | 规定了小于等于号的样式 204 | \begin{hexample} 205 | $\leq = \leqslant$ \quad $\geq = \geqslant$ 206 | \end{hexample} 207 | 208 | 定义了 \mintinline{latex}{tabularx} 环境中的 \mintinline{latex}{Y} 选项 209 | \begin{hexample} 210 | \begin{tabularx}{\textwidth}{XY} 211 | \hline 212 | 左对齐 & 局中对齐\\ 213 | \hline 214 | \end{tabularx} 215 | \end{hexample} 216 | 217 | 三线表的输入 218 | \begin{hexample} 219 | \begin{tabularx}{\textwidth}{YY} 220 | \toprule 221 | 文字 & 文字\\ 222 | \midrule 223 | 文字 & 文字\\ 224 | 文字 & 文字\\ 225 | \bottomrule 226 | \end{tabularx} 227 | \end{hexample} 228 | 如果要添加竖线,建议用 \mintinline{latex}{\Xhline{线宽}} 制作三线表 229 | \begin{hexample} 230 | \begin{tabularx}{\textwidth}{c@{\hspace{1pc}}|@{\hspace{1pc}}X} 231 | \Xhline{0.08em} 232 | 符号 & \multicolumn{1}{c}{符号说明}\\ 233 | \Xhline{0.05em} 234 | $\int$ & 积分符号\\ 235 | \Xhline{0.08em} 236 | \end{tabularx} 237 | \end{hexample} 238 | 表格尽量放在浮动体环境中 239 | \begin{floatexample} 240 | \begin{table}[htbp] 241 | \centering 242 | \caption{表注}\label{tab:example} 243 | \begin{tabularx}{\textwidth}{YY} 244 | \toprule 245 | 文字 & 文字\\ 246 | \midrule 247 | 文字 & 文字\\ 248 | 文字 & 文字\\ 249 | \bottomrule 250 | \end{tabularx} 251 | \end{table} 252 | \end{floatexample} 253 | 254 | 插图:图片建议放在 \texttt{figures} 文件夹里。基础使用方法 255 | \begin{floatexample} 256 | \begin{figure}[htbp] 257 | \centering 258 | \includegraphics[width=0.4\textwidth]{example-image.pdf} 259 | \caption{图注}\label{fig:example} 260 | \end{figure} 261 | \end{floatexample} 262 | 使用子图 263 | \begin{floatexample} 264 | \begin{figure}[htbp] 265 | \centering 266 | \subfloat[子图注]{\label{sub-fig-1}% 为子图加交叉引用 267 | \begin{minipage}{0.4\textwidth} 268 | \centering 269 | \includegraphics[width=\textwidth]{example-image-a} 270 | \end{minipage} 271 | } 272 | \qquad 273 | \subfloat[子图注]{% 274 | \begin{minipage}{0.4\textwidth} 275 | \centering 276 | \includegraphics[width=\textwidth]{example-image-b} 277 | \end{minipage} 278 | } 279 | \caption{图注}\label{fig:subexample} 280 | \end{figure} 281 | \end{floatexample} 282 | 交叉引用使用方法 283 | \begin{hexample} 284 | 数据拟合图像见\ref{fig:example}。 285 | 结果图像见\ref{fig:subexample} 286 | 的子图~\ref{sub-fig-1}。 287 | 结果数据见\ref{tab:example}。 288 | 推导公式见 \ref{eq:example}。 289 | \end{hexample} 290 | 用 \mintinline{latex}{\labelformat} 定制了 \mintinline{latex}{\ref} 的输出格式,无需考虑加“图”、“表”、“式”等字 291 | 292 | 公式输入 293 | \begin{hexample} 294 | 有编号行间公式 295 | \begin{equation}\label{eq:example} 296 | E = mc^2 297 | \end{equation} 298 | 无编号行间公式 299 | \[ E = mc^2 \] 300 | 行内公式 301 | $E = mc^2$\par 302 | 多行公式 303 | \begin{align} 304 | E &= mc^2\\ 305 | E/c^2 &= m 306 | \end{align} 307 | \end{hexample} 308 | 309 | 参考文献引用,用知网/其他方式导出符合国标的参考文献 310 | \begin{hexample} 311 | 文字\cite{label1} 312 | 文字\cite{label2} 313 | \end{hexample} 314 | 315 | 用 \mintinline{latex}{listings} 宏包排版代码环境,定制了 MATLAB 环境和 Python 环境 316 | \begin{hexample} 317 | \begin{matlab} 318 | clc,clear; 319 | \end{matlab} 320 | \begin{python} 321 | print("Hello Python world!") 322 | \end{python} 323 | \end{hexample} 324 | 325 | \begin{thebibliography}{99} 326 | \bibitem{label1}参考文献 327 | \bibitem{label2}参考文献 328 | \bibitem{label3}参考文献 329 | \end{thebibliography} 330 | 331 | \begin{appendixx} 332 | \section{问题一的 MATLAB 代码} 333 | \begin{matlab} 334 | clc,clear; 335 | \end{matlab} 336 | \end{appendixx} 337 | 338 | \end{document} -------------------------------------------------------------------------------- /figures/daiquanshuzi.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = xelatex 2 | % !TeX encoding = UTF-8 3 | \documentclass[UTF8]{standalone} 4 | \usepackage{tikz,newtxmath,esint,ctex} 5 | \usepackage{fontspec} 6 | \usepackage{libertine} 7 | \usepackage{pgf} % for the calculation 8 | % \libcirc and \libcircblk display their '0' if the parameter is out of range 9 | \newcommand{\libcirc}[1]{\pgfmathparse{ 10 | ifthenelse(#1 > 0 && #1 < 21, Hex(9311+#1), Hex(9450) 11 | }\libertineGlyph{uni\pgfmathresult}} 12 | \newcommand{\libcircdbl}[1]{\pgfmathparse{Hex(9460+#1)}\libertineGlyph{uni\pgfmathresult}} 13 | \newcommand{\libcircblk}[1]{\pgfmathparse{ 14 | ifthenelse(#1 > 0 && #1 < 11, Hex(10101+#1), 15 | ifthenelse(#1 > 10 && #1 < 21, Hex(9450-10+#1), 16 | Hex(9471) 17 | ) 18 | ) 19 | }\libertineGlyph{uni\pgfmathresult}} 20 | 21 | \newcommand{\juncirc}[1]{{\fontspec[Ligatures=Discretionary]{Junicode}[#1]}} 22 | \newcommand{\juncircdbl}[1]{{\fontspec[Ligatures=Discretionary]{Junicode}[[#1]]}} 23 | \newcommand{\juncircblk}[1]{{\fontspec[Ligatures=Discretionary]{Junicode}<#1>}} 24 | 25 | \usepackage{pgffor} % just for the demo loop 26 | \setlength{\parindent}{0pt} % just for the demo 27 | \begin{document} 28 | \begin{tikzpicture} 29 | \filldraw[fill=cyan!20] (0,0) rectangle (2,1); 30 | \filldraw[fill=cyan!20] (3,0) rectangle (5,1); 31 | \filldraw[fill=cyan!20] (6,0) rectangle (8,1); 32 | \filldraw[fill=cyan!20] (9,0) rectangle (11,1); 33 | \filldraw[fill=cyan!20] (0,2) rectangle (2,3); 34 | \filldraw[fill=cyan!20] (3,2) rectangle (5,3); 35 | \filldraw[fill=cyan!20] (6,2) rectangle (8,3); 36 | \filldraw[fill=cyan!20] (9,2) rectangle (11,3); 37 | 38 | 39 | \draw[latex-latex] (1,1) -- ++ (0,1); 40 | 41 | \draw[dashed] (1,1.5) -- ++ (8.5,0); 42 | \draw (10.3,1.5) ellipse (0.8 and 0.4); 43 | \node at (1,-0.5) {CNC1\#}; 44 | \node at (4,-0.5) {CNC3\#}; 45 | \node at (7,-0.5) {CNC5\#}; 46 | \node at (10,-0.5) {CNC7\#}; 47 | \node at (1,3.5) {CNC2\#}; 48 | \node at (4,3.5) {CNC4\#}; 49 | \node at (7,3.5) {CNC6\#}; 50 | \node at (10,3.5) {CNC8\#}; 51 | 52 | \node[above] at (0,1) {\libcirc{1}}; 53 | \node[above] at (3,1) {\libcirc{3}}; 54 | \node[above] at (6,1) {\libcirc{5}}; 55 | \node[above] at (9,1) {\libcirc{7}}; 56 | \node[below] at (0,2) {\libcirc{2}}; 57 | \node[below] at (3,2) {\libcirc{4}}; 58 | \node[below] at (6,2) {\libcirc{6}}; 59 | \node[below] at (9,2) {\libcirc{8}}; 60 | \end{tikzpicture} 61 | \end{document} -------------------------------------------------------------------------------- /figures/liuchentu.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = xelatex 2 | % !TeX encoding = UTF-8 3 | \documentclass[UTF8]{standalone} 4 | \usepackage{tikz,mathpazo,ctex,newtxmath,esint} 5 | \usetikzlibrary{shapes.geometric,shapes.arrows} 6 | \usepackage{flowchart} 7 | \begin{document} 8 | \begin{tikzpicture}[font={\sf \small}] 9 | \def \smbwd{2cm} 10 | 11 | \node (1) at (0,0) [draw=cyan!80!black, terminal,minimum width=\smbwd, minimum height=0.5cm] {系统启动}; 12 | 13 | \node (2) at (0,-2.5) [draw=cyan!80!black, decision, minimum width=\smbwd, minimum height=1cm] {CNC 是否空闲}; 14 | 15 | \node (3) at (4.5,-2.5) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {CNC 工作}; 16 | 17 | \node (4) at (0,-5.5) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {发出上下料信号}; 18 | 19 | \node (5) at (0,-8.5) [draw=cyan!80!black, decision, minimum width=\smbwd, minimum height=1cm] {RGV 是否能立刻上下料}; 20 | 21 | \node (6) at (4.5,-8.5) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {CNC 等待}; 22 | 23 | \node (7) at (1.5,-12) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {传送带运输}; 24 | 25 | \node (8) at (-1.5,-12) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {RGV 移动}; 26 | 27 | \node (9) at (0,-14) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {RGV 上下料}; 28 | 29 | \node (10) at (0,-16) [draw=cyan!80!black, process, align=left,minimum width=\smbwd,minimum height=1cm] {清洗}; 30 | 31 | \node (11) at (0,-18.5) [draw=cyan!80!black, decision, minimum width=\smbwd, minimum height=1cm] {是否有指令?}; 32 | 33 | \node (12) at (4.5,-18.5) [draw=cyan!80!black, process, align=left, minimum width=\smbwd, minimum height=1cm] {RGV 等待}; 34 | 35 | \node (13) at (0,-21) [draw=cyan!80!black, terminal,minimum width=\smbwd, minimum height=0.5cm] {停止作业}; 36 | 37 | %连接定义的形状,绘制流程图--表示垂直线,|表示箭头方向 38 | \draw[cyan!80!black, arrows = -latex] (1) -- (2); 39 | \draw[cyan!80!black, arrows = -latex] (2) -- node[above] {N} (3); 40 | \draw[cyan!80!black, arrows = -latex] (2) -- node[right] {Y} (4); 41 | \draw[cyan!80!black, arrows = -latex] (4) -- (5); 42 | \draw[cyan!80!black, arrows = -latex] (5) -- node[above] {N} (6); 43 | \draw[cyan!80!black, arrows = -latex] (5) -- node[right] {Y} (0,-11); 44 | \draw[cyan!80!black, arrows = -latex] (0,-11) -| (7); 45 | \draw[cyan!80!black, arrows = -latex] (0,-11) -| (8); 46 | \draw[cyan!80!black] (7) |- (0,-13); 47 | \draw[cyan!80!black] (8) |- (0,-13); 48 | \draw[cyan!80!black, arrows = -latex] (0,-13) -- (9); 49 | \draw[cyan!80!black, arrows = -latex] (9) -- (10); 50 | \draw[cyan!80!black, arrows = -latex] (10) -- (11); 51 | \draw[cyan!80!black, arrows = -latex] (11) -- node[above] {N} (12); 52 | \draw[cyan!80!black, arrows = -latex] (11) -| (-3,-8.5) |- (5); 53 | \node[cyan!80!black, above] at (-2.1,-18.5) {Y}; 54 | \draw[cyan!80!black, arrows = -latex] (11) -- (13); 55 | \end{tikzpicture} 56 | \end{document} -------------------------------------------------------------------------------- /figures/tab.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = xelatex 2 | % !TeX encoding = UTF-8 3 | \documentclass[UTF8]{standalone} 4 | \usepackage{amsmath,newtxmath,esint,ctex,booktabs,multirow,tabularx} 5 | \newcolumntype{Y}{>{\centering\arraybackslash}X} 6 | \begin{document} 7 | \begin{tabularx}{\textwidth}{Y} 8 | \toprule 9 | 1\\ 10 | \midrule 11 | 1\\ 12 | \bottomrule 13 | \end{tabularx} 14 | \end{document} -------------------------------------------------------------------------------- /figures/tikz.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = xelatex 2 | % !TeX encoding = UTF-8 3 | \documentclass[UTF8]{standalone} 4 | \usepackage{amsmath,newtxmath,esint,ctex,tikz} 5 | \begin{document} 6 | \begin{tikzpicture} 7 | \draw (0,0) circle (4); 8 | \draw[dashed] (-4,0) -- (4,0); 9 | \draw (-4,0) arc (-180: 0: 4 and 0.6); 10 | \draw[dashed] (4,0) arc (0: 180: 4 and 0.6); 11 | \draw[dashed] (0,-4) arc (-90 : 90 : 1 and 4); 12 | \draw[dashed] (0,-4) arc (-90 : 90 : 3 and 4); 13 | \filldraw (2.9,1) circle (0.03) node[above=3pt,right=0pt] (a) {$A$}; 14 | \filldraw (0.94,1.4) circle (0.03) node[above=3pt,right=0pt] (b) {$B$}; 15 | \filldraw (2.98,-0.4) circle (0.03) ; 16 | \filldraw (0.99,-0.58) circle (0.03) ; 17 | 18 | \draw[-latex] (0,0) -- ++ (6,0) node[above] {$x$}; 19 | \draw[-latex] (0,0) -- ++ (-5,-1.66) node[above] {$y$}; 20 | \draw[-latex] (0,0) -- ++ (0,6) node[right] {$z$}; 21 | 22 | \node[left=5pt,above=1pt] (0,0) {$O$}; 23 | 24 | \draw[dashed] (0,0) -- (2.9,1); 25 | \draw[dashed] (0,0) -- (0.94,1.4); 26 | \draw[dashed] (0,0) -- (2.98,-0.4); 27 | \draw[dashed] (0,0) -- (0.99,-0.58); 28 | \draw (1.8,0) arc (0: -14: 1) node[above=2pt,right=-3pt] {$\beta_{0}$}; 29 | \draw (0.8,0) arc (0: -40: 0.6) node[above=5pt,right=0pt] {$\beta$}; 30 | \draw (0.5,-0.3) arc (-40: 55: 0.6) node[above=-3pt,right=2pt] {$\alpha$}; 31 | \draw (1.6,-0.23) arc (-10: 33: 1) node[above=-5pt,right=0pt] {$\alpha_{0}$}; 32 | \draw (1.2,0.4) arc (20: 60: 1.2) node[above=-5pt,right=7pt] {$\gamma$}; 33 | \draw (0.5,1.25) arc (180: 240: 0.3) node[above=0pt,left=3pt] {$\gamma$}; 34 | \draw[-latex] (0.94,1.4) -- ++ (-1.45,-0.5); 35 | \end{tikzpicture} 36 | \end{document} -------------------------------------------------------------------------------- /main.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = xelatex 2 | % !TeX encoding = UTF-8 3 | \documentclass{JXUSTmodeling} 4 | \biaoti{标题} 5 | \keyword{一个;两个;三个;四个} 6 | \begin{document} 7 | \begin{abstract} 8 | 文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字 9 | \end{abstract} 10 | \section{问题的提出}\label{sec:1} 11 | \subsection{问题的背景}\label{sub:1.1} 12 | \subsection{已知的条件}\label{sub:1.2} 13 | \subsection{问题的提出}\label{sub:1.3} 14 | 15 | \section{问题的分析}\label{sec:2} 16 | \subsection{问题的整体分析}\label{sub:2.1} 17 | \subsection{问题一的分析}\label{sub:2.2} 18 | \subsection{问题二的分析}\label{sub:2.3} 19 | \subsection{问题三的分析}\label{sub:2.4} 20 | 21 | \section{模型的假设}\label{sec:3} 22 | 23 | \section{符号说明}\label{sec:4} 24 | 25 | \section{模型的建立与求解}\label{sec:5} 26 | 27 | \section{模型的检验}\label{sec:6} 28 | 29 | \section{模型的评价及推广}\label{sec:7} 30 | 31 | \begin{thebibliography}{99} 32 | \bibitem{label}参考文献 33 | \end{thebibliography} 34 | 35 | \begin{appendixx} 36 | \section{问题一的 MATLAB 代码} 37 | \end{appendixx} 38 | \end{document} --------------------------------------------------------------------------------