├── .gitignore ├── .latexmkrc ├── LICENSE ├── Make.bat ├── README.md ├── Template ├── Make.bat └── demo.tex ├── USTBExam.cls ├── demo.tex ├── img ├── demo-0.png ├── demo-1.png ├── demo-2.png ├── demo-3.png ├── demo-4.png ├── demo-5.png ├── demo-6.png ├── demo-7.png └── demo-8.png └── latexindent.yaml /.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 | ## Auxiliary and intermediate files from other packages: 44 | # algorithms 45 | *.alg 46 | *.loa 47 | 48 | # achemso 49 | acs-*.bib 50 | 51 | # amsthm 52 | *.thm 53 | 54 | # beamer 55 | *.nav 56 | *.pre 57 | *.snm 58 | *.vrb 59 | 60 | # changes 61 | *.soc 62 | 63 | # cprotect 64 | *.cpt 65 | 66 | # elsarticle (documentclass of Elsevier journals) 67 | *.spl 68 | 69 | # endnotes 70 | *.ent 71 | 72 | # fixme 73 | *.lox 74 | 75 | # feynmf/feynmp 76 | *.mf 77 | *.mp 78 | *.t[1-9] 79 | *.t[1-9][0-9] 80 | *.tfm 81 | 82 | #(r)(e)ledmac/(r)(e)ledpar 83 | *.end 84 | *.?end 85 | *.[1-9] 86 | *.[1-9][0-9] 87 | *.[1-9][0-9][0-9] 88 | *.[1-9]R 89 | *.[1-9][0-9]R 90 | *.[1-9][0-9][0-9]R 91 | *.eledsec[1-9] 92 | *.eledsec[1-9]R 93 | *.eledsec[1-9][0-9] 94 | *.eledsec[1-9][0-9]R 95 | *.eledsec[1-9][0-9][0-9] 96 | *.eledsec[1-9][0-9][0-9]R 97 | 98 | # glossaries 99 | *.acn 100 | *.acr 101 | *.glg 102 | *.glo 103 | *.gls 104 | *.glsdefs 105 | 106 | # gnuplottex 107 | *-gnuplottex-* 108 | 109 | # gregoriotex 110 | *.gaux 111 | *.gtex 112 | 113 | # htlatex 114 | *.4ct 115 | *.4tc 116 | *.idv 117 | *.lg 118 | *.trc 119 | *.xref 120 | 121 | # hyperref 122 | *.brf 123 | 124 | # knitr 125 | *-concordance.tex 126 | # TODO Comment the next line if you want to keep your tikz graphics files 127 | *.tikz 128 | *-tikzDictionary 129 | 130 | # listings 131 | *.lol 132 | 133 | # makeidx 134 | *.idx 135 | *.ilg 136 | *.ind 137 | *.ist 138 | 139 | # minitoc 140 | *.maf 141 | *.mlf 142 | *.mlt 143 | *.mtc[0-9]* 144 | *.slf[0-9]* 145 | *.slt[0-9]* 146 | *.stc[0-9]* 147 | 148 | # minted 149 | _minted* 150 | *.pyg 151 | 152 | # morewrites 153 | *.mw 154 | 155 | # nomencl 156 | *.nlg 157 | *.nlo 158 | *.nls 159 | 160 | # pax 161 | *.pax 162 | 163 | # pdfpcnotes 164 | *.pdfpc 165 | 166 | # sagetex 167 | *.sagetex.sage 168 | *.sagetex.py 169 | *.sagetex.scmd 170 | 171 | # scrwfile 172 | *.wrt 173 | 174 | # sympy 175 | *.sout 176 | *.sympy 177 | sympy-plots-for-*.tex/ 178 | 179 | # pdfcomment 180 | *.upa 181 | *.upb 182 | 183 | # pythontex 184 | *.pytxcode 185 | pythontex-files-*/ 186 | 187 | # thmtools 188 | *.loe 189 | 190 | # TikZ & PGF 191 | *.dpth 192 | *.md5 193 | *.auxlock 194 | 195 | # todonotes 196 | *.tdo 197 | 198 | # easy-todo 199 | *.lod 200 | 201 | # xmpincl 202 | *.xmpi 203 | 204 | # xindy 205 | *.xdy 206 | 207 | # xypic precompiled matrices 208 | *.xyc 209 | 210 | # endfloat 211 | *.ttt 212 | *.fff 213 | 214 | # Latexian 215 | TSWLatexianTemp* 216 | 217 | ## Editors: 218 | # WinEdt 219 | *.bak 220 | *.sav 221 | 222 | # Texpad 223 | .texpadtmp 224 | 225 | # Kile 226 | *.backup 227 | 228 | # KBibTeX 229 | *~[0-9]* 230 | 231 | # auto folder when using emacs and auctex 232 | ./auto/* 233 | *.el 234 | 235 | # expex forward references with \gathertags 236 | *-tags.tex 237 | 238 | # standalone packages 239 | *.sta 240 | 241 | # generated if using elsarticle.cls 242 | *.spl 243 | 244 | *.doc 245 | 246 | *.zip 247 | test.tex 248 | **.sh 249 | -------------------------------------------------------------------------------- /.latexmkrc: -------------------------------------------------------------------------------- 1 | # 清理所有生成文件 2 | $clean_ext = 'aux bbl blg idx ind lof lot out toc acn acr alg glg glo gls ist fls listing hd dvi xdv fdb_latexmk bak*'; 3 | 4 | # 设置默认编译器和参数 5 | 6 | # ====================================================================================== 7 | # PDF Generation/Building/Compilation 8 | # ====================================================================================== 9 | 10 | # PDF-generating modes are: 11 | # 1: pdflatex, as specified by $pdflatex variable (still largely in use) 12 | # 2: postscript conversion, as specified by the $ps2pdf variable (useless) 13 | # 3: dvi conversion, as specified by the $dvipdf variable (useless) 14 | # 4: lualatex, as specified by the $lualatex variable (best) 15 | # 5: xelatex, as specified by the $xelatex variable (second best) 16 | $pdf_mode = 1; 17 | $pdflatex = 'latexmk -xelatex -interaction=nonstopmode -shell-escape -synctex=1 -halt-on-error -pvc %S'; 18 | 19 | # # Output directory 20 | # $out_dir = "build"; 21 | 22 | # # 设置中间文件目录 23 | # $aux_dir = 'build'; 24 | 25 | # Show used CPU time. Looks like: https://tex.stackexchange.com/a/312224/120853 26 | $show_time = 1; 27 | 28 | @default_files = ('*.tex'); 29 | 30 | # 手动添加 ./body 目录中的 .tex 文件 31 | for my $file (glob 'body/*.tex') { 32 | push @default_files, $file; 33 | } 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The LaTeX Project Public License 2 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3 | 4 | LPPL Version 1.3c 2008-05-04 5 | 6 | Copyright 1999 2002-2008 LaTeX3 Project 7 | Everyone is allowed to distribute verbatim copies of this 8 | license document, but modification of it is not allowed. 9 | 10 | 11 | PREAMBLE 12 | ======== 13 | 14 | The LaTeX Project Public License (LPPL) is the primary license under 15 | which the LaTeX kernel and the base LaTeX packages are distributed. 16 | 17 | You may use this license for any work of which you hold the copyright 18 | and which you wish to distribute. This license may be particularly 19 | suitable if your work is TeX-related (such as a LaTeX package), but 20 | it is written in such a way that you can use it even if your work is 21 | unrelated to TeX. 22 | 23 | The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', 24 | below, gives instructions, examples, and recommendations for authors 25 | who are considering distributing their works under this license. 26 | 27 | This license gives conditions under which a work may be distributed 28 | and modified, as well as conditions under which modified versions of 29 | that work may be distributed. 30 | 31 | We, the LaTeX3 Project, believe that the conditions below give you 32 | the freedom to make and distribute modified versions of your work 33 | that conform with whatever technical specifications you wish while 34 | maintaining the availability, integrity, and reliability of 35 | that work. If you do not see how to achieve your goal while 36 | meeting these conditions, then read the document `cfgguide.tex' 37 | and `modguide.tex' in the base LaTeX distribution for suggestions. 38 | 39 | 40 | DEFINITIONS 41 | =========== 42 | 43 | In this license document the following terms are used: 44 | 45 | `Work' 46 | Any work being distributed under this License. 47 | 48 | `Derived Work' 49 | Any work that under any applicable law is derived from the Work. 50 | 51 | `Modification' 52 | Any procedure that produces a Derived Work under any applicable 53 | law -- for example, the production of a file containing an 54 | original file associated with the Work or a significant portion of 55 | such a file, either verbatim or with modifications and/or 56 | translated into another language. 57 | 58 | `Modify' 59 | To apply any procedure that produces a Derived Work under any 60 | applicable law. 61 | 62 | `Distribution' 63 | Making copies of the Work available from one person to another, in 64 | whole or in part. Distribution includes (but is not limited to) 65 | making any electronic components of the Work accessible by 66 | file transfer protocols such as FTP or HTTP or by shared file 67 | systems such as Sun's Network File System (NFS). 68 | 69 | `Compiled Work' 70 | A version of the Work that has been processed into a form where it 71 | is directly usable on a computer system. This processing may 72 | include using installation facilities provided by the Work, 73 | transformations of the Work, copying of components of the Work, or 74 | other activities. Note that modification of any installation 75 | facilities provided by the Work constitutes modification of the Work. 76 | 77 | `Current Maintainer' 78 | A person or persons nominated as such within the Work. If there is 79 | no such explicit nomination then it is the `Copyright Holder' under 80 | any applicable law. 81 | 82 | `Base Interpreter' 83 | A program or process that is normally needed for running or 84 | interpreting a part or the whole of the Work. 85 | 86 | A Base Interpreter may depend on external components but these 87 | are not considered part of the Base Interpreter provided that each 88 | external component clearly identifies itself whenever it is used 89 | interactively. Unless explicitly specified when applying the 90 | license to the Work, the only applicable Base Interpreter is a 91 | `LaTeX-Format' or in the case of files belonging to the 92 | `LaTeX-format' a program implementing the `TeX language'. 93 | 94 | 95 | 96 | CONDITIONS ON DISTRIBUTION AND MODIFICATION 97 | =========================================== 98 | 99 | 1. Activities other than distribution and/or modification of the Work 100 | are not covered by this license; they are outside its scope. In 101 | particular, the act of running the Work is not restricted and no 102 | requirements are made concerning any offers of support for the Work. 103 | 104 | 2. You may distribute a complete, unmodified copy of the Work as you 105 | received it. Distribution of only part of the Work is considered 106 | modification of the Work, and no right to distribute such a Derived 107 | Work may be assumed under the terms of this clause. 108 | 109 | 3. You may distribute a Compiled Work that has been generated from a 110 | complete, unmodified copy of the Work as distributed under Clause 2 111 | above, as long as that Compiled Work is distributed in such a way that 112 | the recipients may install the Compiled Work on their system exactly 113 | as it would have been installed if they generated a Compiled Work 114 | directly from the Work. 115 | 116 | 4. If you are the Current Maintainer of the Work, you may, without 117 | restriction, modify the Work, thus creating a Derived Work. You may 118 | also distribute the Derived Work without restriction, including 119 | Compiled Works generated from the Derived Work. Derived Works 120 | distributed in this manner by the Current Maintainer are considered to 121 | be updated versions of the Work. 122 | 123 | 5. If you are not the Current Maintainer of the Work, you may modify 124 | your copy of the Work, thus creating a Derived Work based on the Work, 125 | and compile this Derived Work, thus creating a Compiled Work based on 126 | the Derived Work. 127 | 128 | 6. If you are not the Current Maintainer of the Work, you may 129 | distribute a Derived Work provided the following conditions are met 130 | for every component of the Work unless that component clearly states 131 | in the copyright notice that it is exempt from that condition. Only 132 | the Current Maintainer is allowed to add such statements of exemption 133 | to a component of the Work. 134 | 135 | a. If a component of this Derived Work can be a direct replacement 136 | for a component of the Work when that component is used with the 137 | Base Interpreter, then, wherever this component of the Work 138 | identifies itself to the user when used interactively with that 139 | Base Interpreter, the replacement component of this Derived Work 140 | clearly and unambiguously identifies itself as a modified version 141 | of this component to the user when used interactively with that 142 | Base Interpreter. 143 | 144 | b. Every component of the Derived Work contains prominent notices 145 | detailing the nature of the changes to that component, or a 146 | prominent reference to another file that is distributed as part 147 | of the Derived Work and that contains a complete and accurate log 148 | of the changes. 149 | 150 | c. No information in the Derived Work implies that any persons, 151 | including (but not limited to) the authors of the original version 152 | of the Work, provide any support, including (but not limited to) 153 | the reporting and handling of errors, to recipients of the 154 | Derived Work unless those persons have stated explicitly that 155 | they do provide such support for the Derived Work. 156 | 157 | d. You distribute at least one of the following with the Derived Work: 158 | 159 | 1. A complete, unmodified copy of the Work; 160 | if your distribution of a modified component is made by 161 | offering access to copy the modified component from a 162 | designated place, then offering equivalent access to copy 163 | the Work from the same or some similar place meets this 164 | condition, even though third parties are not compelled to 165 | copy the Work along with the modified component; 166 | 167 | 2. Information that is sufficient to obtain a complete, 168 | unmodified copy of the Work. 169 | 170 | 7. If you are not the Current Maintainer of the Work, you may 171 | distribute a Compiled Work generated from a Derived Work, as long as 172 | the Derived Work is distributed to all recipients of the Compiled 173 | Work, and as long as the conditions of Clause 6, above, are met with 174 | regard to the Derived Work. 175 | 176 | 8. The conditions above are not intended to prohibit, and hence do not 177 | apply to, the modification, by any method, of any component so that it 178 | becomes identical to an updated version of that component of the Work as 179 | it is distributed by the Current Maintainer under Clause 4, above. 180 | 181 | 9. Distribution of the Work or any Derived Work in an alternative 182 | format, where the Work or that Derived Work (in whole or in part) is 183 | then produced by applying some process to that format, does not relax or 184 | nullify any sections of this license as they pertain to the results of 185 | applying that process. 186 | 187 | 10. a. A Derived Work may be distributed under a different license 188 | provided that license itself honors the conditions listed in 189 | Clause 6 above, in regard to the Work, though it does not have 190 | to honor the rest of the conditions in this license. 191 | 192 | b. If a Derived Work is distributed under a different license, that 193 | Derived Work must provide sufficient documentation as part of 194 | itself to allow each recipient of that Derived Work to honor the 195 | restrictions in Clause 6 above, concerning changes from the Work. 196 | 197 | 11. This license places no restrictions on works that are unrelated to 198 | the Work, nor does this license place any restrictions on aggregating 199 | such works with the Work by any means. 200 | 201 | 12. Nothing in this license is intended to, or may be used to, prevent 202 | complete compliance by all parties with all applicable laws. 203 | 204 | 205 | NO WARRANTY 206 | =========== 207 | 208 | There is no warranty for the Work. Except when otherwise stated in 209 | writing, the Copyright Holder provides the Work `as is', without 210 | warranty of any kind, either expressed or implied, including, but not 211 | limited to, the implied warranties of merchantability and fitness for a 212 | particular purpose. The entire risk as to the quality and performance 213 | of the Work is with you. Should the Work prove defective, you assume 214 | the cost of all necessary servicing, repair, or correction. 215 | 216 | In no event unless required by applicable law or agreed to in writing 217 | will The Copyright Holder, or any author named in the components of the 218 | Work, or any other party who may distribute and/or modify the Work as 219 | permitted above, be liable to you for damages, including any general, 220 | special, incidental or consequential damages arising out of any use of 221 | the Work or out of inability to use the Work (including, but not limited 222 | to, loss of data, data being rendered inaccurate, or losses sustained by 223 | anyone as a result of any failure of the Work to operate with any other 224 | programs), even if the Copyright Holder or said author or said other 225 | party has been advised of the possibility of such damages. 226 | 227 | 228 | MAINTENANCE OF THE WORK 229 | ======================= 230 | 231 | The Work has the status `author-maintained' if the Copyright Holder 232 | explicitly and prominently states near the primary copyright notice in 233 | the Work that the Work can only be maintained by the Copyright Holder 234 | or simply that it is `author-maintained'. 235 | 236 | The Work has the status `maintained' if there is a Current Maintainer 237 | who has indicated in the Work that they are willing to receive error 238 | reports for the Work (for example, by supplying a valid e-mail 239 | address). It is not required for the Current Maintainer to acknowledge 240 | or act upon these error reports. 241 | 242 | The Work changes from status `maintained' to `unmaintained' if there 243 | is no Current Maintainer, or the person stated to be Current 244 | Maintainer of the work cannot be reached through the indicated means 245 | of communication for a period of six months, and there are no other 246 | significant signs of active maintenance. 247 | 248 | You can become the Current Maintainer of the Work by agreement with 249 | any existing Current Maintainer to take over this role. 250 | 251 | If the Work is unmaintained, you can become the Current Maintainer of 252 | the Work through the following steps: 253 | 254 | 1. Make a reasonable attempt to trace the Current Maintainer (and 255 | the Copyright Holder, if the two differ) through the means of 256 | an Internet or similar search. 257 | 258 | 2. If this search is successful, then enquire whether the Work 259 | is still maintained. 260 | 261 | a. If it is being maintained, then ask the Current Maintainer 262 | to update their communication data within one month. 263 | 264 | b. If the search is unsuccessful or no action to resume active 265 | maintenance is taken by the Current Maintainer, then announce 266 | within the pertinent community your intention to take over 267 | maintenance. (If the Work is a LaTeX work, this could be 268 | done, for example, by posting to comp.text.tex.) 269 | 270 | 3a. If the Current Maintainer is reachable and agrees to pass 271 | maintenance of the Work to you, then this takes effect 272 | immediately upon announcement. 273 | 274 | b. If the Current Maintainer is not reachable and the Copyright 275 | Holder agrees that maintenance of the Work be passed to you, 276 | then this takes effect immediately upon announcement. 277 | 278 | 4. If you make an `intention announcement' as described in 2b. above 279 | and after three months your intention is challenged neither by 280 | the Current Maintainer nor by the Copyright Holder nor by other 281 | people, then you may arrange for the Work to be changed so as 282 | to name you as the (new) Current Maintainer. 283 | 284 | 5. If the previously unreachable Current Maintainer becomes 285 | reachable once more within three months of a change completed 286 | under the terms of 3b) or 4), then that Current Maintainer must 287 | become or remain the Current Maintainer upon request provided 288 | they then update their communication data within one month. 289 | 290 | A change in the Current Maintainer does not, of itself, alter the fact 291 | that the Work is distributed under the LPPL license. 292 | 293 | If you become the Current Maintainer of the Work, you should 294 | immediately provide, within the Work, a prominent and unambiguous 295 | statement of your status as Current Maintainer. You should also 296 | announce your new status to the same pertinent community as 297 | in 2b) above. 298 | 299 | 300 | WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE 301 | ====================================================== 302 | 303 | This section contains important instructions, examples, and 304 | recommendations for authors who are considering distributing their 305 | works under this license. These authors are addressed as `you' in 306 | this section. 307 | 308 | Choosing This License or Another License 309 | ---------------------------------------- 310 | 311 | If for any part of your work you want or need to use *distribution* 312 | conditions that differ significantly from those in this license, then 313 | do not refer to this license anywhere in your work but, instead, 314 | distribute your work under a different license. You may use the text 315 | of this license as a model for your own license, but your license 316 | should not refer to the LPPL or otherwise give the impression that 317 | your work is distributed under the LPPL. 318 | 319 | The document `modguide.tex' in the base LaTeX distribution explains 320 | the motivation behind the conditions of this license. It explains, 321 | for example, why distributing LaTeX under the GNU General Public 322 | License (GPL) was considered inappropriate. Even if your work is 323 | unrelated to LaTeX, the discussion in `modguide.tex' may still be 324 | relevant, and authors intending to distribute their works under any 325 | license are encouraged to read it. 326 | 327 | A Recommendation on Modification Without Distribution 328 | ----------------------------------------------------- 329 | 330 | It is wise never to modify a component of the Work, even for your own 331 | personal use, without also meeting the above conditions for 332 | distributing the modified component. While you might intend that such 333 | modifications will never be distributed, often this will happen by 334 | accident -- you may forget that you have modified that component; or 335 | it may not occur to you when allowing others to access the modified 336 | version that you are thus distributing it and violating the conditions 337 | of this license in ways that could have legal implications and, worse, 338 | cause problems for the community. It is therefore usually in your 339 | best interest to keep your copy of the Work identical with the public 340 | one. Many works provide ways to control the behavior of that work 341 | without altering any of its licensed components. 342 | 343 | How to Use This License 344 | ----------------------- 345 | 346 | To use this license, place in each of the components of your work both 347 | an explicit copyright notice including your name and the year the work 348 | was authored and/or last substantially modified. Include also a 349 | statement that the distribution and/or modification of that 350 | component is constrained by the conditions in this license. 351 | 352 | Here is an example of such a notice and statement: 353 | 354 | %% pig.dtx 355 | %% Copyright 2005 M. Y. Name 356 | % 357 | % This work may be distributed and/or modified under the 358 | % conditions of the LaTeX Project Public License, either version 1.3 359 | % of this license or (at your option) any later version. 360 | % The latest version of this license is in 361 | % http://www.latex-project.org/lppl.txt 362 | % and version 1.3 or later is part of all distributions of LaTeX 363 | % version 2005/12/01 or later. 364 | % 365 | % This work has the LPPL maintenance status `maintained'. 366 | % 367 | % The Current Maintainer of this work is M. Y. Name. 368 | % 369 | % This work consists of the files pig.dtx and pig.ins 370 | % and the derived file pig.sty. 371 | 372 | Given such a notice and statement in a file, the conditions 373 | given in this license document would apply, with the `Work' referring 374 | to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being 375 | generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' 376 | referring to any `LaTeX-Format', and both `Copyright Holder' and 377 | `Current Maintainer' referring to the person `M. Y. Name'. 378 | 379 | If you do not want the Maintenance section of LPPL to apply to your 380 | Work, change `maintained' above into `author-maintained'. 381 | However, we recommend that you use `maintained', as the Maintenance 382 | section was added in order to ensure that your Work remains useful to 383 | the community even when you can no longer maintain and support it 384 | yourself. 385 | 386 | Derived Works That Are Not Replacements 387 | --------------------------------------- 388 | 389 | Several clauses of the LPPL specify means to provide reliability and 390 | stability for the user community. They therefore concern themselves 391 | with the case that a Derived Work is intended to be used as a 392 | (compatible or incompatible) replacement of the original Work. If 393 | this is not the case (e.g., if a few lines of code are reused for a 394 | completely different task), then clauses 6b and 6d shall not apply. 395 | 396 | 397 | Important Recommendations 398 | ------------------------- 399 | 400 | Defining What Constitutes the Work 401 | 402 | The LPPL requires that distributions of the Work contain all the 403 | files of the Work. It is therefore important that you provide a 404 | way for the licensee to determine which files constitute the Work. 405 | This could, for example, be achieved by explicitly listing all the 406 | files of the Work near the copyright notice of each file or by 407 | using a line such as: 408 | 409 | % This work consists of all files listed in manifest.txt. 410 | 411 | in that place. In the absence of an unequivocal list it might be 412 | impossible for the licensee to determine what is considered by you 413 | to comprise the Work and, in such a case, the licensee would be 414 | entitled to make reasonable conjectures as to which files comprise 415 | the Work. 416 | 417 | -------------------------------------------------------------------------------- /Make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | for %%B in (**.tex) do latexindent -w -m -l "%%B" 3 | 4 | latexmk -xelatex -interaction=nonstopmode -shell-escape -synctex=1 demo.tex 5 | 6 | del **.aux, **.bbl, **.blg, **.idx, **.ind, **.lof, **.lot, **.out, **.toc, **.acn, **.acr, **.alg, **.glg, **.glo, **.gls, **.ist, **.fls, **.log, **.listing, **.hd, **.dvi, **.xdv, **.fdb_latexmk, **.bak* 7 | 8 | REM pause -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 北京科技大学试卷 LaTeX 模板 2 | 3 | 用 [exam-zh](https://gitee.com/xkwxdyy/exam-zh) 进行了重构, 基本没有做破坏性更新 4 | 5 | 基于 `exam-zh` 的先进性, 你可以在此获得更好的格式与内容分离体验, 基本上只需要进行专注题目解析的录入 6 | 7 | 此模板基本就只是在 `exam-zh` 的基础上进行了定制, 故更加完善的使用说明应去[上游](https://gitee.com/xkwxdyy/exam-zh)查看. 8 | 9 | 注:`\mynewpage`、`\vempty`已废弃 10 | 11 | ## 试卷效果 12 | 13 | 解析版 | 学生版 14 | :-------------------------:|:-------------------------: 15 | ![](img/demo-0.png) | ![](img/demo-6.png) 16 | ![](img/demo-2.png) | ![](img/demo-7.png) 17 | ![](img/demo-4.png) | ![](img/demo-8.png) 18 | ![](img/demo-5.png) | ![](img/demo-8.png) 19 | 20 | ### 支持的 feature 21 | 22 | - 试卷表头只需要给出大题数目即可进行自动绘制 23 | - 大题前的计分表自动生成, 只需要输入题目描述, 考虑到各科情况不一样, 并未对其输入格式进行定制 24 | - 题号自动生成, 无需自行添加 25 | - 支持生成题目答案隐藏, 便于生成带有解析的试卷 26 | - 增加格式化代码功能 27 | 28 | ### 尚有不足的地方 29 | 30 | - 对于 LaTeX 层面的命令尚未进行封装, 对于基本没有接触过 LaTeX 格式控制命令的人来说尚不够平易近人 31 | 32 | ## TODO 33 | 34 | - [ ] 使用 zref 宏包, 大题数目由编译自动进行获取 35 | - [ ] 补充一个更加详细的使用说明 36 | 37 | ## 自Mathpix导出的LaTeX代码转换 38 | | 查找 | 替换 | 作用 | 39 | | :-------------------------------------------------------------------------: | :------------------------------------------------------------------------------------: | :----------------------: | 40 | | `*\([A]+\) *(.+) *\n` | `\\options{$1}%\n` | 提取 A 选项 | 41 | | `*\([B-D]+\) *(.+) *\n` | `{$1}%\n` | 提取 BCD 选项 | 42 | | `*\\mathrm\{~?([d])\} *` | `\\dif` | 正体 d | 43 | | `*\\mathrm\{~?([e])\} *` | `\\upe` | 正体 e | 44 | | `+d +` | `\\dif` | 正体 d | 45 | | `, ([^\x00-\xff\n]+)` | `$1\n$2` | 英文逗号后的中文内容换行 | 46 | | `[一二三四五六]、 *` | ``|去除题号 | 47 | | `\\(o?i{2,})nt_(\{?)` | `\\$1nt \\limits _$2` | 积分号右下侧改成正下侧 | 48 | | `\\begin\{CJK\}\{UTF8\}\{mj\}(.+?)\\end\{CJK\}` | `$1` | 中文内容提取 | 49 | | `\\begin\{enumerate\}` | ``|去除`enumerate`环境 | 50 | | `\\end\{enumerate\}` | ``|去除`enumerate`环境 | 51 | | `\\item *([\s\S\n]+?\.?)$\n\n` | `\\begin{question}\n$1\n\\end{question}\n\n\\begin{analysis}\n\n\\end{analysis}\n\n` | 提取题目,加入解析环境 | 52 | | `\\left\\\{\\begin\{array\}\{[lcr]*\}(.+?\\\\)(.+?)\\end\{array\}\\right\.` | `\\begin{cases}\n\t$1\n\t$2\n\\end{cases}` | array 环境转 cases 环境 | 53 | | `\\options\{(.+)\}%?\n *\{(.+)\}%?\n *\{(.+)\}%?\n *\{(.+)\}%?` | `\\begin{choices}\n\t\\item $1\n\t\\item $2\n\t\\item $3\n\t\\item $4\n\\end{choices}` | 选择题选项处理 | 54 | | `\\setcounter\{enumi\}\{\d+\}` | ``|去除`enumerate`环境 | 55 | | `。` | `.` | 中文句号转英文句号 | 56 | | `,` | `,` | 中文逗号转英文逗号 | 57 | 58 | 此外,还需要手动处理以下内容: 59 | - 还需要将大题里的`analysis`环境改成`solution`环境或者`proof`环境。 60 | - 选择题需要手动处理 `\paren[]` 命令。 61 | - 填空题需要手动处理 `\fillin[]` 命令。 62 | `cases`环境后的逗号需要自行处理,横向空白需要用`\hspace{-1em}`命令处理。 63 | -------------------------------------------------------------------------------- /Template/Make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | for %%B in (*.tex) do latexindent -w -m -l "%%B" 3 | 4 | latexmk -xelatex -interaction=nonstopmode -shell-escape -synctex=1 demo.tex 5 | 6 | del *.aux, *.bbl, *.blg, *.idx, *.ind, *.lof, *.lot, *.out, *.toc, *.acn, *.acr, *.alg, *.glg, *.glo, *.gls, *.ist, *.fls, *.log, *.listing, *.hd, *.dvi, *.xdv, *.fdb_latexmk, *.bak* 7 | 8 | REM pause -------------------------------------------------------------------------------- /Template/demo.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX program = xelatex 3 | \documentclass{USTBExam} 4 | 5 | % ================================================= 6 | % PDF信息 7 | % ================================================= 8 | % PDF信息里的作者栏 9 | \author{北京科技大学学生学习与发展指导中心·朋辈讲师团·高数组·黄腾} 10 | % PDF信息里的主题 11 | \Subject{版权所有,未经允许,不允许任何组织和部门以任何形式盗用} 12 | % PDF信息里的关键词 13 | \Keywords{高数; 微积分; 期中} 14 | 15 | % ================================================= 16 | % 试卷头信息 17 | % ================================================= 18 | % 试卷头里的年份 19 | \Year{2020} 20 | % 试卷头里的学期 21 | \Semester{一} 22 | % 试卷头里的课程 23 | \Course{微积分AI} 24 | % 是否期中 25 | \Suffix{} 26 | % 试卷头里的类型,如A/B/模拟等 27 | \Type{A} 28 | % 试卷头计分表中大题的数目 29 | \TotalPart{4} 30 | 31 | \begin{document} 32 | 33 | % 生成试卷表头 34 | \maketitle 35 | 36 | \section{单项选择题(本题共10小题,每题4分,满分40分)} 37 | 38 | \begin{problem} 39 | 40 | \paren[] 41 | \begin{choices} 42 | \item 43 | \item 44 | \item 45 | \item 46 | \end{choices} 47 | \end{problem} 48 | 49 | \begin{problem} 50 | 51 | \paren[] 52 | \begin{choices} 53 | \item 54 | \item 55 | \item 56 | \item 57 | \end{choices} 58 | \end{problem} 59 | 60 | \begin{problem} 61 | 62 | \paren[] 63 | \begin{choices} 64 | \item 65 | \item 66 | \item 67 | \item 68 | \end{choices} 69 | \end{problem} 70 | 71 | \begin{problem} 72 | 73 | \paren[] 74 | \begin{choices} 75 | \item 76 | \item 77 | \item 78 | \item 79 | \end{choices} 80 | \end{problem} 81 | 82 | \begin{problem} 83 | 84 | \paren[] 85 | \begin{choices} 86 | \item 87 | \item 88 | \item 89 | \item 90 | \end{choices} 91 | \end{problem} 92 | 93 | \begin{problem} 94 | 95 | \paren[] 96 | \begin{choices} 97 | \item 98 | \item 99 | \item 100 | \item 101 | \end{choices} 102 | \end{problem} 103 | 104 | \section{填空题(本题共10小题,每题4分,满分40分)} 105 | 106 | \begin{problem} 107 | 108 | \fillin{}. 109 | \end{problem} 110 | 111 | \begin{problem} 112 | 113 | \fillin{}. 114 | \end{problem} 115 | 116 | \begin{problem} 117 | 118 | \fillin{}. 119 | \end{problem} 120 | 121 | \begin{problem} 122 | 123 | \fillin{}. 124 | \end{problem} 125 | 126 | \begin{problem} 127 | 128 | \fillin{}. 129 | \end{problem} 130 | 131 | \begin{problem} 132 | 133 | \fillin{}. 134 | \end{problem} 135 | 136 | \section{计算题(本题共2小题,每题6分,满分12分)} 137 | 138 | \begin{problem} 139 | 140 | \end{problem} 141 | 142 | \begin{solution} 143 | 144 | \end{solution} 145 | 146 | \begin{problem} 147 | 148 | \end{problem} 149 | 150 | \begin{solution} 151 | 152 | \end{solution} 153 | 154 | \begin{problem} 155 | 156 | \end{problem} 157 | 158 | \begin{solution} 159 | 160 | \end{solution} 161 | 162 | \begin{problem} 163 | 164 | \end{problem} 165 | 166 | \begin{solution} 167 | 168 | \end{solution} 169 | 170 | \section{证明题(本题满分8分)} 171 | 172 | \begin{problem} 173 | 174 | \end{problem} 175 | 176 | \begin{proof} 177 | 178 | \end{proof} 179 | 180 | \begin{problem} 181 | 182 | \end{problem} 183 | 184 | \begin{proof} 185 | 186 | \end{proof} 187 | 188 | \end{document} 189 | -------------------------------------------------------------------------------- /USTBExam.cls: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e} 2 | \RequirePackage{expl3} 3 | \ProvidesExplClass {USTBExam} {2025-05-17} {v2.3.5} {An exam template for USTB} 4 | 5 | \AddToHook{package/exam-zh-symbols/before}{% 6 | \AtBeginDocument{\let\savedsim=\sim} 7 | } 8 | \AddToHook{package/exam-zh-symbols/after}{% 9 | \AtBeginDocument{\let\sim=\savedsim} 10 | } 11 | 12 | % 加载文档类和宏包 13 | \LoadClass {exam-zh} 14 | 15 | % 处理文档类选项 16 | \PassOptionsToClass { UTF8, scheme = chinese, openany } { exam-zh } 17 | \DeclareOption* { \PassOptionsToClass { \CurrentOption } { exam-zh } } 18 | \ProcessOptions* 19 | 20 | % 使用 l3keys 定义 \ustbexamsetup 配置命令 21 | \NewDocumentCommand \ustbexamsetup { m } 22 | { \keys_set:nn { ustb-exam } {#1} } 23 | 24 | % 全局配置 25 | \keys_define:nn { ustb-exam / global } 26 | { 27 | watermark .tl_set:N = \l__ustbexam_global_watermark, 28 | } 29 | \keys_set:nn { ustb-exam / global } 30 | { 31 | watermark = {}, 32 | } 33 | \keys_define:nn { ustb-exam } 34 | { global .meta:nn = { ustb-exam / global } {#1} } 35 | 36 | \AtEndPreamble 37 | { 38 | \tl_if_empty:NF { \l__ustbexam_global_watermark } 39 | { 40 | \RequirePackage{background} 41 | \backgroundsetup{ 42 | scale=1, % 调整大小 43 | angle=0, % 调整角度 44 | opacity=0.15, % 调整透明度 45 | pages=all, % 应用到所有页面 46 | position=current~page.center, % 确保在页面正中心 47 | contents={ 48 | \includegraphics[width=0.6\paperwidth, keepaspectratio]{\l__ustbexam_global_watermark} 49 | } 50 | } 51 | } 52 | } 53 | 54 | % 试卷内标题处的参数 55 | \keys_define:nn { ustb-exam / title } 56 | { 57 | year .int_set:N = \l__ustbexam_title_year_int, 58 | semester .tl_set:N = \l__ustbexam_title_semester, 59 | course .tl_set:N = \l__ustbexam_title_course_str, 60 | suffix .tl_set:N = \l__ustbexam_title_suffix_str, 61 | type .str_set:N = \l__ustbexam_title_type_str, 62 | total-part .int_set:N = \l__ustbexam_title_total_part_int, 63 | } 64 | \keys_set:nn { ustb-exam / title } 65 | { 66 | year = {\the\year}, 67 | semester = {一}, 68 | course = {微积分AI}, 69 | suffix = {}, 70 | type = {A}, 71 | total-part = {4}, 72 | } 73 | \keys_define:nn { ustb-exam } 74 | { title .meta:nn = { ustb-exam / title } {#1} } 75 | 76 | % PDF 配置 77 | \keys_define:nn { ustb-exam / pdf } 78 | { 79 | title .tl_set:N = \l__ustbexam_pdf_title, 80 | subject .tl_set:N = \l__ustbexam_pdf_subject, 81 | author .tl_set:N = \l__ustbexam_pdf_author, 82 | keywords .tl_set:N = \l__ustbexam_pdf_keywords, 83 | } 84 | \keys_set:nn { ustb-exam / pdf } 85 | { 86 | title = \l_ustbexam_title_tl, 87 | subject = {}, 88 | author = \@author, 89 | keywords = {}, 90 | } 91 | \keys_define:nn { ustb-exam } 92 | { pdf .meta:nn = { ustb-exam / pdf } {#1} } 93 | 94 | \AtBeginDocument 95 | { 96 | \hypersetup{ 97 | pdfinfo={ 98 | Title = {\l__ustbexam_pdf_title}, 99 | Author = {\l__ustbexam_pdf_author}, 100 | Subject = {\l__ustbexam_pdf_subject}, 101 | Keywords = {\l__ustbexam_pdf_keywords}, 102 | }, 103 | colorlinks = true, 104 | linkcolor = black, 105 | } 106 | } 107 | 108 | % title 里的课程名 109 | \tl_new:N \l__ustbexam_title_course_real 110 | \AtBeginDocument{ 111 | \str_if_empty:NF {\l__ustbexam_title_course_str} 112 | { 113 | \hbox_set:Nn \l_tmpa_box {\l__ustbexam_title_course_str} 114 | \dim_set:Nn \l_tmpa_dim { \box_wd:N \l_tmpa_box * 2 } 115 | \tl_set:Nn \l__ustbexam_title_course_real 116 | { 117 | \__examzh_spread_box:nn { \l_tmpa_dim } { \l__ustbexam_title_course_str } 118 | } 119 | } 120 | } 121 | 122 | % 是否期中 123 | \tl_new:N \l__ustbexam_title_suffix_real 124 | \tl_set:Nn \l__ustbexam_title_suffix_real { 试卷 } 125 | 126 | % 在文档开始前处理 suffix 127 | \AtBeginDocument{ 128 | \tl_if_empty:NF \l__ustbexam_title_suffix_str 129 | { 130 | \tl_set:Nx \l__ustbexam_title_suffix_real { \l__ustbexam_title_suffix_str 试卷 } 131 | } 132 | } 133 | 134 | % 试卷类型 135 | \tl_new:N \l__ustbexam_title_type_real 136 | \tl_set:Nn \l__ustbexam_title_type_real 137 | { 138 | \bool_if:NTF \l__examzh_question_show_paren_answer_bool 139 | { (\str_use:N \l__ustbexam_title_type_str 卷解析)} 140 | { (\str_use:N \l__ustbexam_title_type_str 卷) } 141 | } 142 | 143 | % 标题 144 | \tl_new:N \l_ustbexam_title_tl 145 | \AtBeginDocument{ 146 | \tl_set:Nn \l_ustbexam_title_tl 147 | { 148 | \int_eval:n { \l__ustbexam_title_year_int } -- \int_eval:n {\l__ustbexam_title_year_int + 1} ~学年\,% 149 | 第 \l__ustbexam_title_semester{} 学期 \l__ustbexam_title_course_str \l__ustbexam_title_suffix_real \l__ustbexam_title_type_real 150 | } 151 | } 152 | 153 | % 定义计数器, 自动获取大题数目 154 | \newcounter{sectioncounter} 155 | 156 | % 使用钩子在每次调用 \section 和 \section* 时递增计数器 157 | \AddToHook{ cmd / section / before }{ \stepcounter{sectioncounter} } 158 | 159 | % 暂时不做自动获取, 有困难需解决 160 | 161 | % 输出标题 162 | \RenewDocumentCommand \maketitle { } 163 | { 164 | \cleardoublepage 165 | \chapter{北京科技大学 \l_ustbexam_title_tl} 166 | \begingroup 167 | \begin { center } 168 | \let \footnote \thanks 169 | { 170 | \kaishu 171 | \LARGE \bfseries 北京科技大学~ \int_eval:n { \l__ustbexam_title_year_int } -- \int_eval:n {\l__ustbexam_title_year_int + 1} ~学年\,% 172 | 第~ \l__ustbexam_title_semester{} ~学期 \par 173 | \underline{\quad \l__ustbexam_title_course_real \quad} \l__ustbexam_title_suffix_real \l__ustbexam_title_type_real 174 | } 175 | \end { center } 176 | \endgroup 177 | \begingroup 178 | { 179 | \kaishu 180 | 院(系)\hrulefill\,~ 181 | 班级\hrulefill\,~ 182 | 姓名\hrulefill\,~ 183 | 学号\hrulefill\,~ 184 | 考试教室\hrulefill\, 185 | } 186 | \endgroup 187 | \begingroup 188 | {\kaishu \bfseries \ScoreTable { \l__ustbexam_title_total_part_int } } 189 | \endgroup 190 | \begingroup 191 | {\par 说明:} 192 | \begin{minipage}[t]{.9\textwidth} 193 | 1、要求正确地写出主要计算或推导过程,过程有错或只写答案者不得分;\par 194 | 2、 考场、学院、班级、学号、姓名均需写全,不写全的试卷为废卷;\par 195 | 3、 涂改学号及姓名的试卷为废卷;\par 196 | 4、 请在试卷上答题,在其他纸张上的解答一律无效. 197 | \end{minipage} 198 | \endgroup 199 | } 200 | 201 | % 输出计分表 202 | \RequirePackage{makecell,tabularx} 203 | 204 | % https://tex.stackexchange.com/questions/625226/alternative-to-repeatcell-from-the-interfaces-package-since-texlive-2021/625249#625249 205 | % we need LaTeX counters and not expl3 ones because of tabularx two-step process 206 | \newcounter{repeatstart} 207 | \newcounter{repeatcurrent} 208 | \newcounter{repeatlast} 209 | 210 | \NewDocumentCommand{\repeatcell}{ m m } 211 | { % #1 = number of repeats 212 | % #2 = key-value pairs 213 | \oaheix_repeatcell:nn { #1 } { #2 } 214 | } 215 | 216 | \tl_new:N \l__oaheix_repeatcells_body_tl 217 | 218 | \keys_define:nn { oaheix/repeatcells } 219 | { 220 | text .code:n = \cs_gset_protected:Nn \__oaheix_repeatcell_text:n { #1 }, 221 | start .code:n = \setcounter{repeatstart}{#1}, 222 | } 223 | 224 | \cs_new_protected:Nn \oaheix_repeatcell:nn 225 | { 226 | \keys_set:nn { oaheix/repeatcells } { #2 } 227 | \tl_clear:N \l__oaheix_repeatcells_body_tl 228 | \int_step_inline:nnn 229 | { \value{repeatstart} + 1 } 230 | { \value{repeatstart} + #1 } 231 | { 232 | \tl_put_right:Nx \l__oaheix_repeatcells_body_tl 233 | { 234 | \int_compare:nF { ##1 = \value{repeatstart} + 1 } { & } 235 | \__oaheix_repeatcell_text:n { ##1 } 236 | } 237 | } 238 | \tl_use:N \l__oaheix_repeatcells_body_tl 239 | \setcounter{repeatlast} { \int_eval:n { \value{repeatstart} + #1 } } 240 | } 241 | 242 | \NewExpandableDocumentCommand{\lastvalue}{}{\int_eval:n { \value{repeatlast} } } 243 | 244 | \AtBeginEnvironment{tabularx}{\setcounter{repeatstart}{0}} 245 | 246 | % 计分表制作 247 | \NewDocumentCommand \ScoreTable { m } { 248 | \begin{ center } 249 | \int_compare:nTF { #1 > 0 } 250 | { 251 | \begin{tabularx} 252 | {\textwidth}{ |p{4em}<{\centering} *{#1}{|X<{\centering}} | c |} 253 | \hline 254 | 题号 & \repeatcell{#1}{text = \zhnumber{##1}} & \makecell[c]{{\tiny ~} \\[-.9em]课程考核成绩\\[-.9em]{\tiny ~}} \\ 255 | \hline 256 | 得分 & \eline{\int_eval:n { #1 + 1} } \\ 257 | \hline 258 | \end{tabularx} 259 | }{ 260 | \begin{tabularx} 261 | {\textwidth}{ |p{4em}<{\centering} | X<{\centering} | } 262 | \hline 263 | 题号 & \makecell[c]{{\tiny ~} \\[-.9em]课程考核成绩\\[-.9em]{\tiny ~}} \\ 264 | \hline 265 | 得分 & \\ 266 | \hline 267 | \end{tabularx} 268 | } 269 | \end{ center } 270 | } 271 | 272 | % 默认图片路径 273 | \graphicspath{ 274 | {./figs}{../figs}{body/figs} 275 | {./Figs}{../Figs}{body/Figs} 276 | } 277 | 278 | % 默认的 enumerate 环境 279 | \setlist[enumerate]{label=(\arabic*), left=\parindent, align=left, itemsep=0pt, parsep=0pt, topsep=0pt} 280 | 281 | % 更新日志 282 | \RequirePackage{changelog,translations} 283 | \DeclareTranslation{English}{changelog-Added}{新增} 284 | \DeclareTranslation{English}{changelog-Changed}{修改} 285 | \DeclareTranslation{English}{changelog-Deprecated}{即将舍弃} 286 | \DeclareTranslation{English}{changelog-Removed}{移除} 287 | \DeclareTranslation{English}{changelog-Fixed}{纠错} 288 | \DeclareTranslation{English}{changelog-Security}{安全} 289 | \DeclareTranslation{English}{changelog-Miscellaneous}{其他} 290 | \DeclareTranslation{English}{changelog-Unreleased}{即将发布} 291 | \DeclareTranslation{English}{changelog-Yanked}{警醒} 292 | 293 | % 页眉页脚 294 | \fancypagestyle{myEmptyPage}{ 295 | \fancyhf{} 296 | \cfoot{\thepage} 297 | } 298 | 299 | % 已废弃 300 | \NewDocumentCommand \backcover { } 301 | { 302 | \int_if_odd:nTF \c@page 303 | { 304 | { \clearpage \hbox:n { } \thispagestyle{empty} } 305 | { \setcounter{page}{\thepage - 1} } 306 | } 307 | { 308 | { \cleardoublepage \hbox:n { } \thispagestyle{empty} } 309 | { \setcounter{page}{\thepage - 2} } 310 | } 311 | } 312 | 313 | \RenewDocumentCommand \cleardoublepage { } 314 | { 315 | \clearpage 316 | \int_if_odd:nF \c@page 317 | { \hbox:n { } \thispagestyle { empty } \newpage } 318 | } 319 | 320 | \RequirePackage{tocloft} 321 | \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} 322 | \renewcommand{\contentsname}{\centerline{\LARGE 目\quad 录}} 323 | \tocloftpagestyle{myEmptyPage} 324 | 325 | \setlength{\parindent}{0em} 326 | 327 | \examsetup{ 328 | page = { 329 | foot-content = { 330 | \kaishu \l_ustbexam_title_tl \, 第~\thepage~页 \quad 共~\lastpage@lastpage~页 331 | }, 332 | foot-type = common, 333 | show-chapter = false, 334 | }, 335 | sealline = { 336 | show = true, 337 | scope = mod-2, 338 | circle-show = false, 339 | line-type = dotted, 340 | odd-info-content = {{装},{订},{线},{内},{不},{要},{答},{题}}, 341 | odd-info-xshift = 12mm, 342 | text = {自觉遵守考试规则,诚信考试,绝不作弊},% \\装订线内不要答题}, 343 | text-direction-vertical = true, 344 | text-width = 0.6\textheight, 345 | text-format = \normalfont, 346 | text-xshift = 20mm 347 | }, 348 | choices/label=(\Alph*), 349 | scoringbox/type = onecolumn, 350 | symbols/change-frac-style = true, 351 | symbols/change-dfrac-style = true, 352 | solution/blank-type = manual, 353 | solution/label-content = {\color{blue}{\heiti 解}}, 354 | solution/qedsymbol = {\color{blue}{$\square$}}, 355 | question/show-answer = true, 356 | problem/show-answer = true, 357 | paren/show-answer = true, 358 | fillin/show-answer = true, 359 | paren/text-color=blue, 360 | fillin/text-color=blue, 361 | solution/text-color=blue, 362 | } 363 | 364 | % 根据 exam-zh 版本号进行设置 365 | \@ifclasslater { exam-zh } { 2024/02/12 } 366 | { 367 | % 版本大于等于 0.2.1 368 | \keys_set:nn { exam-zh } { 369 | solution/show-solution = show-stay, 370 | textfigure/fig-pos=right, 371 | } 372 | \ExamPrintAnswerSet{ 373 | sealline/show=true, 374 | paren/show-answer=false, 375 | paren/show-paren=true, 376 | fillin/show-answer=false, 377 | solution/show-solution=hide, 378 | fillin/no-answer-type=none, 379 | } 380 | } 381 | { 382 | % 版本小于 0.2.1 383 | \keys_set:nn { exam-zh } { solution/show-answer = true } 384 | \ExamPrintAnswerSet{ 385 | sealline/show=true, 386 | paren/show-answer=false, 387 | paren/show-paren=true, 388 | fillin/show-answer=false, 389 | solution/show-solution=false, 390 | fillin/no-answer-type=none, 391 | } 392 | } 393 | 394 | % 封面配置 395 | \keys_define:nn { ustb-exam / cover } 396 | { 397 | top .tl_set:N = \l__ustbexam_cover_top, 398 | title .tl_set:N = \l__ustbexam_cover_title, 399 | subtitle .tl_set:N = \l__ustbexam_cover_subtitle, 400 | author .tl_set:N = \l__ustbexam_cover_author, 401 | date .tl_set:N = \l__ustbexam_cover_date, 402 | bottom .tl_set:N = \l__ustbexam_cover_bottom, 403 | bgimg .tl_set:N = \l__ustbexam_cover_bgimg, 404 | } 405 | \keys_set:nn { ustb-exam / cover } 406 | { 407 | top = 北京科技大学, 408 | title = 高等数学AI, 409 | subtitle = 历年期中试卷合集, 410 | author = 黄腾, 411 | date = \today, 412 | bottom = 假装有出版社, 413 | bgimg = {}, 414 | } 415 | \keys_define:nn { ustb-exam } 416 | { cover .meta:nn = { ustb-exam / cover } {#1} } 417 | 418 | % 定义 makeCover 命令 419 | \NewDocumentCommand \makeCover { } 420 | { 421 | \newgeometry{right=3.5cm, vmargin=2.5cm, headsep=0.5cm} 422 | \pagestyle{myEmptyPage} 423 | \begin{titlepage} 424 | \setcounter{page}{0} 425 | \tl_if_empty:NF { \l__ustbexam_cover_bgimg } 426 | { 427 | \begin{tikzpicture}[remember~picture, overlay] 428 | \node[opacity=0.2,rotate=30] at ([shift={(-2.0cm, 0)}]current~page.center) 429 | { 430 | \includegraphics[width=23cm]{\l__ustbexam_cover_bgimg} 431 | }; 432 | \end{tikzpicture} 433 | } 434 | 435 | \centering 436 | 437 | \makebox[0.5\textwidth][s]{\huge \bfseries \l__ustbexam_cover_top} 438 | \par\addvspace{2.5cm} 439 | 440 | \begin{tcolorbox}[ 441 | width=0.8\textwidth, height=4cm, 442 | halign=center, valign=center, 443 | blanker, 444 | frame~hidden, boxsep=0pt, 445 | borderline~horizontal={2pt}{0pt}{black}, 446 | hyphenationfix, 447 | ] 448 | \Huge \bfseries 449 | \makebox[0.6\textwidth][s]{\l__ustbexam_cover_title} 450 | \par 451 | \makebox[0.75\textwidth][s]{\l__ustbexam_cover_subtitle} 452 | \end{tcolorbox} 453 | \par\addvspace{1.5cm} 454 | 455 | \parbox{0.4\textwidth}{\Large \centering \l__ustbexam_cover_author} 456 | \par\addvspace{1cm} 457 | 458 | {\l__ustbexam_cover_date} 459 | \par\vfill 460 | 461 | \makebox[0.3\textwidth][s]{\large \l__ustbexam_cover_bottom} 462 | \end{titlepage} 463 | \restoregeometry 464 | } 465 | 466 | % 定义 makeBackCover 命令 467 | \NewDocumentCommand \makeBackCover { } 468 | { 469 | % 移除密封线 470 | \RemoveFromHook { shipout / background } [ sealline ] 471 | 472 | \clearpage 473 | % 检查当前页码是奇数还是偶数 474 | \ifodd\thepage 475 | % 如果是奇数页,添加两页空白页 476 | \begingroup 477 | \pagestyle{empty} 478 | \null\newpage 479 | \endgroup 480 | % 调整 lastpage 页码 481 | \addtocounter{page}{-1} 482 | \else 483 | % 如果是偶数页,添加一页空白页 484 | \begingroup 485 | \pagestyle{empty} 486 | \null\newpage 487 | \null\newpage 488 | % 调整 lastpage 页码 489 | \addtocounter{page}{-2} 490 | \endgroup 491 | \fi 492 | } 493 | 494 | \NewDocumentEnvironment{analysis}{ O{} } 495 | { 496 | \begin{solution}[label-content={\color{blue}{\heiti 解析}},blank-type=none,#1]}{ 497 | \end{solution} 498 | } 499 | \NewDocumentEnvironment{note}{ O{} } 500 | { 501 | \begin{solution}[label-content=【尾注】,text-color=black,show-qed=false,parbreak=true,#1] 502 | \setlength{\parindent}{2em}}{ 503 | \end{solution} 504 | } 505 | \RenewDocumentEnvironment{proof}{ O{} } 506 | { 507 | \begin{solution}[label-content={\color{blue}{\heiti 证明}},blank-type=manual,#1]}{ 508 | \end{solution} 509 | } 510 | 511 | \DeclareTColorBox{pabox}{ O{ } m O{ blue } } 512 | { 513 | colback=#3!5!white, 514 | colframe=#3!45!gray, 515 | colbacktitle=#3!5!white, 516 | coltitle=#3!45!gray, 517 | titlerule=0mm, 518 | toprule=0mm, 519 | bottomrule=0mm, 520 | rightrule=0mm, 521 | leftrule=.5mm, 522 | boxsep=0mm, 523 | breakable, 524 | % frame hidden, 525 | % interior hidden, 526 | % detach title, 527 | % sharpish corners, 528 | fonttitle=\bfseries, 529 | label=#2, 530 | % title={\faMortarBoard~ #2}, 531 | #1 532 | } 533 | 534 | \RequirePackage{fontawesome, tikz} 535 | 536 | \NewDocumentEnvironment{ notes }{ O{ } o o +b } 537 | { 538 | \bool_if:NTF \g__examzh_solution_show_bool 539 | { 540 | \begin{pabox}[]{\IfNoValueTF{#2}{#1}{#2}}[#3] 541 | \group_begin: 542 | {\color{blue!45!gray} \faMortarBoard~ {\bfseries #1}} 543 | \smallskip 544 | \par 545 | \group_end: 546 | \begingroup 547 | #4 548 | \endgroup 549 | \end{pabox} 550 | } 551 | {} 552 | } 553 | {} 554 | 555 | \NewDocumentCommand \myref { m o } 556 | { 详见 第 ~\pageref{#1}~ 页 \IfNoValueTF{#2}{#1}{#2} } 557 | 558 | \RequirePackage{mathtools,extarrows} 559 | 560 | \RequirePackage{fixdif} 561 | \newdif{\dif}{\mathrm{d}} 562 | 563 | \DeclareMathOperator{\re}{e} 564 | \DeclareMathOperator{\ri}{i} 565 | \DeclareMathOperator{\cov}{cov} 566 | \DeclareMathOperator{\sgn}{sgn} 567 | \DeclareMathOperator{\rot}{\mathbf{rot}} 568 | \DeclareMathOperator{\grad}{\mathbf{grad}} 569 | \DeclareMathOperator{\divd}{div} 570 | \DeclareMathOperator{\ch}{ch} 571 | \DeclareMathOperator{\sh}{sh} 572 | \DeclareMathOperator{\arccot}{arccot} 573 | 574 | \NewDocumentCommand \abs { m } 575 | {\left| #1 \right|} 576 | 577 | \renewcommand{\Re}{\operatorname{Re}} 578 | \renewcommand{\Im}{\operatorname{Im}} 579 | \renewcommand{\le}{\leqslant} 580 | \renewcommand{\leq}{\leqslant} 581 | \renewcommand{\ge}{\geqslant} 582 | \renewcommand{\geq}{\geqslant} 583 | \renewcommand\parallel{\mathrel{/\mskip-2.5mu/}} 584 | 585 | \everymath{\displaystyle} 586 | \allowdisplaybreaks 587 | 588 | % 以下为兼容性代码 589 | % ===== 弃用 begin ===== 590 | 591 | % 试卷头里的年份 592 | \NewDocumentCommand \Year { m } 593 | { \int_set:Nn \l__ustbexam_title_year_int {#1} } 594 | 595 | % 试卷头里的学期 596 | \NewDocumentCommand \Semester { m } 597 | { \tl_set:Nn \l__ustbexam_title_semester {#1} } 598 | 599 | % 试卷头里的课程 600 | \NewDocumentCommand \Course { m } 601 | { \str_set:Nn \l__ustbexam_title_course_str { #1 } } 602 | 603 | % 是否期中 604 | \NewDocumentCommand \Suffix { m } 605 | { \tl_set:Nn \l__ustbexam_title_suffix_str {#1} } 606 | 607 | % 试卷头里的类型,如A/B/模拟等 608 | \NewDocumentCommand \Type { m } 609 | { \tl_set:Nn \l__ustbexam_title_type_str { #1 } } 610 | 611 | % 试卷头计分表中大题的数目 612 | \NewDocumentCommand \TotalPart { m } 613 | { \int_set:Nn \l__ustbexam_title_total_part_int {#1} } 614 | 615 | % PDF 主题信息 616 | \NewDocumentCommand \Subject { m } 617 | { \str_set:Nn \l__ustbexam_pdf_subject {#1} } 618 | 619 | % PDF 关键词信息 620 | \NewDocumentCommand \Keywords { m } 621 | { \str_set:Nn \l__ustbexam_pdf_keywords {#1} } 622 | 623 | \NewDocumentCommand \makehead {} 624 | {\maketitle} 625 | 626 | % 也可以用正则表达式替换 627 | % \\options\{(.+?)\}[%\n ]+\{(.+?)\}[%\n ]+?\{(.+?)\}[%\n ]+?\{(.+?)\}[%\n ]+?\n 628 | % => 629 | % \\begin{choices}\n\t\t\\item $1\n\t\t\\item $2\n\t\t\\item $3\n\t\t\\item $4\n\t\\end{choices}\n 630 | \NewDocumentCommand \options { m m m m } 631 | { 632 | \begin{choices} 633 | \item #1 634 | \item #2 635 | \item #3 636 | \item #4 637 | \end{choices} 638 | } 639 | 640 | % 也可以用正则表达式替换 641 | % \\pickout\{([A-D])\} => \\pickout[$1] 642 | \NewDocumentCommand \pickout { m } 643 | {\paren[#1]} 644 | 645 | % 也可以用正则表达式替换 646 | % \\fillin\{(.+)\} => \\fillin[$1] 647 | % % 此处的兼容性代码实在是不会 648 | % \let\savefillin=\fillin 649 | % \AtBeginDocument{ 650 | % \RenewDocumentCommand \fillin { m } 651 | % {\savefillin[#1]} 652 | % } 653 | 654 | % 也可以用正则表达式替换 655 | % \\makepart\{(.+?)\}\{(.+?)\} => \\section{$1($2)} 656 | \NewDocumentCommand \makepart { m m } 657 | {\section{#1(#2)}} 658 | 659 | % ===== 弃用 end ===== 660 | 661 | \NewDocumentCommand \vempty { m }{ 662 | \bool_if:NF \l__examzh_question_show_paren_answer_bool 663 | { 664 | \vspace*{#1} 665 | } 666 | } 667 | \NewDocumentCommand \mynewpage { }{ 668 | \bool_if:NF \l__examzh_question_show_paren_answer_bool 669 | { 670 | \newpage 671 | } 672 | } 673 | 674 | -------------------------------------------------------------------------------- /demo.tex: -------------------------------------------------------------------------------- 1 | % !TEX encoding = UTF-8 2 | % !TEX program = latexmk 3 | 4 | \documentclass{USTBExam} 5 | 6 | % % ================================================= 7 | % % PDF信息 8 | % % ================================================= 9 | % % PDF信息里的作者栏 10 | % \author{北京科技大学学生学习与发展指导中心·朋辈讲师团·高数组·黄腾} 11 | % % PDF信息里的主题 12 | % \Subject{版权所有,未经允许,不允许任何组织和部门以任何形式盗用} 13 | % % PDF信息里的关键词 14 | % \Keywords{高数; 微积分; 期中} 15 | 16 | % % ================================================= 17 | % % 试卷头信息 18 | % % ================================================= 19 | % % 试卷头里的年份 20 | % \Year{2020} 21 | % % 试卷头里的学期 22 | % \Semester{一} 23 | % % 试卷头里的课程 24 | % \Course{微积分AI} 25 | % % 是否期中 26 | % \Suffix{期中} 27 | % % 试卷头里的类型,如A/B/模拟等 28 | % \Type{A} 29 | % % 试卷头计分表中大题的数目 30 | %% \TotalPart{4} 31 | 32 | % ================================================= 33 | % PDF 信息 34 | % ================================================= 35 | \ustbexamsetup { 36 | pdf = { 37 | title = {北京科技大学高等数学AI历年期中试卷合集}, 38 | % PDF 信息里的作者栏 39 | author = {北京科技大学学生学习与发展指导中心 · 朋辈讲师团 · 高数组 · 黄腾}, 40 | % PDF 信息里的主题 41 | subject = 仅供北科内部使用,任何个人和组织未经允许不得以任何形式盗用, 42 | % PDF 信息里的关键词 43 | keywords = 高数; 微积分; 期中, 44 | }, 45 | } 46 | 47 | % ================================================= 48 | % 试卷头信息 49 | % ================================================= 50 | \ustbexamsetup { 51 | title = { 52 | % 试卷头里的年份 53 | year = {\the\year}, 54 | % 试卷头里的学期 55 | semester = {一}, 56 | % 试卷头里的课程 57 | course = {微积分 AI}, 58 | % 是否期中 59 | suffix = {期中}, 60 | % 试卷头里的类型,如 A/B/模拟等 61 | type = {A}, 62 | % 试卷头计分表中大题的数目 63 | total-part = {4}, 64 | }, 65 | } 66 | 67 | \examsetup{ 68 | % page/size = a3paper, 69 | } 70 | 71 | \begin{document} 72 | 73 | \maketitle 74 | 75 | \section{填空题(本题共10小题,每题4分,满分40分)} 76 | 77 | \begin{problem} 78 | $\lim _{x \to 0} \frac{\sin (\sin (\sin x))}{\tan x}=$ 79 | \fillin[1]. 80 | \end{problem} 81 | 82 | \begin{analysis} 83 | 原式$=\lim_{x \to 0} \frac{\sin\left( \sin x \right)}{x} = \lim_{x \to 0} \frac{\sin x}{x} = 1$. 84 | \end{analysis} 85 | 86 | \begin{problem} 87 | $\lim _{x \to 0}\left(\frac{1}{x^{2}}-\frac{1}{x \tan x}\right)=$ 88 | \fillin[$\frac{1}{3}$]. 89 | \end{problem} 90 | 91 | \begin{analysis} 92 | 原式$=\lim_{x \to 0} \frac{\tan x - x}{x^2 \tan x} = \lim_{x \to 0} \frac{\frac{1}{3}x^3}{x^3} = \frac{1}{3}$. 93 | 94 | \faMortarBoard~ $1 - \cos x \sim \frac{1}{2}x^2$, 两边同时积分可知$x - \sin x \sim \frac{1}{6}x^3$, 95 | 96 | 又$\tan x - \sin x = \tan x \left( 1 - \cos x \right) \sim x \left( \frac{1}{2}x^2 \right) = \frac{1}{2}x^3$, 97 | 98 | 则知$\tan x - x = \left( \tan x - \sin x \right) - \left( x - \sin x \right) \sim \frac{1}{2}x^3 - \frac{1}{6} x^3 = \frac{1}{3}x^6$. 99 | \end{analysis} 100 | 101 | \begin{problem} 102 | $\lim _{x \to 0} \frac{x \upe^{x}-\ln (1+x)}{x^{2}}=$ 103 | \fillin[$\frac{3}{2}$]. 104 | \end{problem} 105 | 106 | \begin{analysis} 107 | 原式$=\lim_{x \to 0} \frac{x \left[ 1+x+o(x) \right] - \left[ x - \frac{1}{2}x^2 +o(x^2) \right]}{x^2} = \lim_{x \to 0} \frac{\frac{3}{2}x^2}{x^2} = \frac{3}{2}$. 108 | 109 | \faMortarBoard 由于分母为二次,故分子只需最高次出现二次,所以$\upe^x$只需展开到一阶. 110 | \end{analysis} 111 | 112 | \begin{problem} 113 | 设 $f(x)= 114 | \begin{cases} 115 | \frac{\sin 2 x+\upe^{2 a \sin x}-1}{x}, & \quad x \neq 0 \\ 116 | a, & \quad x=0 117 | \end{cases} 118 | $ 在 $x=0$ 处连续, 则 $a=$ 119 | \fillin[$-2$]. 120 | \end{problem} 121 | 122 | \begin{analysis} 123 | 连续要求极限值等于函数值,即$\lim _{x \to 0} f(x) = f(x)$ 124 | 125 | 即$a = \lim _{x \to 0} \frac{\sin 2 x+\upe^{2 a \sin x}-1}{x} = \lim _{x \to 0} \frac{\sin 2 x}{x} + \frac{\upe^{2 a \sin x}-1}{x} = \lim _{x \to 0} \frac{2x}{x} + \lim _{x \to 0} \frac{2 a x}{x} = 2+2a$, 即$2+2a=0$, $a=-2$. 126 | \end{analysis} 127 | 128 | \begin{problem} 129 | 若函数 $f(x)=\lim _{n \to \infty} \sqrt[n]{x^{n}+\left(\frac{x^{2}}{2}\right)^{n}}(x \geq 0)$, 则 $f(3)=$ 130 | \fillin[$\frac{9}{2}$]. 131 | \end{problem} 132 | 133 | \begin{analysis} 134 | $f(x)=\max\left\{ x, \frac{x^2}{2} \right\}$,$f(x) = 135 | \begin{cases} 136 | x, & x<2 \\ \frac{x^2}{2}, & x \ge 2 137 | \end{cases} 138 | $, 则$f(3) = \frac{9}{2}$. 139 | 140 | \faMortarBoard 教材1-3第15题结论,$\lim_{n\to \infty} \left( a_{1}^{n}+a_{2}^{n}+\cdots +a_{k}^{n} \right) ^{\tfrac{1}{n}}=\max_{1\leqslant i\leqslant k} \left\{ a_i \right\}$, 夹逼准则证明可见我(黄腾)第一章总复习课件(高数群群文件-习题课讲义里),也可以根号里提出一个最大值的$n$次方,而后利用$\abs{x}<1$时,$x^\infty=0$. 141 | \end{analysis} 142 | 143 | \begin{problem} 144 | 设 $f(x)$ 是可导函数, 且 $f^{\prime}(x)=\sin ^{2}(\sin (x+1))$, $f(0)=4$, $f(x)$ 的反函数是 $y=\varphi(x)$, 则 $\varphi^{\prime}(4)=$ 145 | \fillin[$\frac{1}{\sin^2\left( \sin 1 \right)}$]. 146 | \end{problem} 147 | 148 | \begin{analysis} 149 | 根据反函数与函数的关系可知$\varphi(4) = 0$, 根据反函数与函数导数的关系可知$\varphi'(4) = \frac{1}{f'(0)} = \frac{1}{\sin^2 (\sin 1)}$. 150 | \end{analysis} 151 | 152 | \begin{problem} 153 | 若 $f(x)=\left(x^{2000}-1\right) \arctan \frac{2\left(x^{2}+1\right)}{1+2 x^{2}+x^{3}}$, 则 $f^{\prime}(1)=$ 154 | \fillin[$500 \pi $]. 155 | \end{problem} 156 | 157 | \begin{analysis} 158 | 在只计算点态(具体某一点)处导数时,用导数的定义计算导数会更简便. 159 | \begin{align*} 160 | f'(x) & = \lim_{x \to 1} \frac{f(x) - f(1)}{x - 1} = \lim_{x \to 1} \frac{f(x) - 0}{x - 1} = \lim_{x \to 1} \frac{\left(x^{2000}-1\right) \arctan \frac{2\left(x^{2}+1\right)}{1+2 x^{2}+x^{3}}}{x - 1} \\ 161 | & = \lim_{x \to 1} \frac{\left(x^{2000}-1\right)}{x - 1} 162 | \times \lim_{x \to 1} \arctan \frac{2\left(x^{2}+1\right)}{1+2 x^{2}+x^{3}} 163 | \end{align*} 164 | 根据教材1-4第7题(3)可知$\lim_{x \to 1} \frac{\left(x^{2000}-1\right)}{x - 1} = \lim_{x \to 1} 2000x = 2000$(直接洛必达也可得到), 165 | 166 | $\lim_{x \to 1} \arctan \frac{2\left(x^{2}+1\right)}{1+2 x^{2}+x^{3}}$$= \arctan \frac{4}{4} = \frac{\pi}{4}$, 167 | 则原式$=2000 \times \frac{\pi}{4} = 500 \pi$. 168 | \end{analysis} 169 | 170 | \begin{problem} 171 | 设 $y=\upe^{f(x)} f(\ln x)$, 其中 $f(x)$ 可微, 则 $ \dif y=$ 172 | \fillin[$\left(f^{\prime}(x) \upe^{f(x)} f(\ln x)+\frac{1}{x} \upe^{f(x)} f^{\prime}(\ln x)\right) \dif x$]. 173 | \end{problem} 174 | 175 | \begin{analysis} 176 | 复合函数求导,无解析. 177 | \end{analysis} 178 | 179 | \begin{problem} 180 | 若 $f(x)$ 在 $x=a$ 处二阶可导, 则 $\lim _{h \to 0} \frac{f(a+h)-f(a)-h f^{\prime}(a)}{h^{2}}=$ 181 | \fillin[$\frac{1}{2} f''(a) $]. 182 | \end{problem} 183 | 184 | \begin{analysis} 185 | 此题考查Taylor公式. 186 | 187 | 将$f(a+h)$在$f(a)$处展开知$f(a+h) = f(a) + hf'(a)+\frac{h^2}{2}f''(a)$ 188 | 189 | 则原式$= \lim _{h \to 0} \frac{f(a) + hf'(a)+\frac{h^2}{2}f''(a) - f(a) - hf'(a)}{h^2} = \lim _{h \to 0} \frac{\frac{h^2}{2}f''(a)}{h^2} = \frac{f''(a)}{2}$. 190 | \end{analysis} 191 | 192 | \begin{problem} 193 | 设参数方程 $ 194 | \begin{cases} 195 | x=\ln t \\ 196 | y=t^{m} 197 | \end{cases} 198 | $, 则 $\left.\frac{\dif^{n} y}{\dif x^{n}}\right|_{x=1}=$ 199 | \fillin[$m^n \upe^m$]. 200 | \end{problem} 201 | 202 | \begin{analysis} 203 | $\frac{\dif y}{\dif t} = mt^{m-1}$, $\frac{\dif x}{\dif t} = \frac{1}{t}$, 则 204 | $\frac{\dif y}{\dif x} = \frac{\frac{\dif y}{\dif t}}{\frac{\dif x}{\dif t}} = \frac{mt^{m-1}}{\frac{1}{t}} = mt^m$,则 205 | $$\frac{\dif^2 y}{\dif x^2} = \left[ \frac{\dif }{\dif t} \left( \frac{\dif y}{\dif x} \right) \right] \frac{\dif t}{\dif x} = (mt^m)' \times t = m^2 t^m$$ 206 | 则$\frac{\dif^3 y}{\dif x^3} = m^3 t^m, \cdots, \frac{\dif^n y}{\dif x^n} = m^n t^m$, 207 | 当$x=1$时$t = \upe$,则 $\left.\frac{\dif^{n} y}{\dif x^{n}}\right|_{x=1}=m^n \upe^m$. 208 | % \faMortarBoard $n$阶导数的考查在两个方向,一种是利用已知初等函数的$n$阶导数,关键在于将给定式子变形为已有初等函数;另一种是利用数学归纳法去推导出$n$阶导数通项公式. 此题显然为第二种. 209 | \end{analysis} 210 | 211 | \section{单项选择题(本题共10小题,每题4分,满分40分)} 212 | 213 | \begin{problem} 214 | 设当 $x \in(0,+\infty)$ 时, $f(x)=x \sin \frac{1}{x}$, 则在 $(0,+\infty)$ 内 215 | \paren[B] 216 | \begin{choices} 217 | \item $f(x)$ 与 $f^{\prime}(x)$ 都无界 218 | \item $f(x)$ 有界, $f^{\prime}(x)$ 无界 219 | \item $f(x)$ 与 $f^{\prime}(x)$ 都有界 220 | \item $f(x)$ 无界, $f^{\prime}(x)$ 有界 221 | \end{choices} 222 | \end{problem} 223 | 224 | \begin{analysis} 225 | $f(x)$可能无界的地方为$x \to 0$或$x \to \infty$时,$\lim _{x \to 0} f(x) = \lim _{x \to 0} x \sin \frac{1}{x} = 0$(无穷小量乘以有界量,极限为零), 226 | $\lim _{x \to \infty} f(x) = \lim _{x \to \infty} x \sin \frac{1}{x} = \lim _{x \to \infty} x \times \frac{1}{x} = 1$(等价无穷小替换) 227 | 即$f(x)$有界. 228 | $f'(x) = \sin \frac{1}{x} - \frac{1}{x} \cos \frac{1}{x}$无界,见第一章例3.8(47页). 229 | \end{analysis} 230 | 231 | \begin{problem} 232 | $\lim _{n \to \infty} \frac{1}{n}\left( 1+2+3+\cdots+n \right) \sin \frac{x}{n}=$ 233 | \paren[A] 234 | \begin{choices} 235 | \item $\frac{x}{2}$ 236 | \item $0$ 237 | \item $-\frac{x}{2}$ 238 | \item $x$ 239 | \end{choices} 240 | \end{problem} 241 | 242 | \begin{analysis} 243 | 原式$=\lim _{n \to \infty} \frac{1}{n} \frac{n(n+1)}{2} \sin \frac{x}{n} = \lim _{n \to \infty} \frac{n+1}{2} \frac{x}{n} = \frac{x}{2}$. 244 | 245 | \faMortarBoard 自变量趋于无穷大时多项式比值的极限,看分子分母多项式的次数,次数相等则为最高次系数表,分子高则为无穷大,分母高则为0. 246 | \end{analysis} 247 | 248 | \begin{problem} 249 | 设 $f\left(\tfrac{1}{n}\right)=2^{\frac{1}{n}}+3^{\frac{1}{n}}-2$, 当 $n \to \infty$ 时,有 250 | \paren[B] 251 | \begin{choices} 252 | \item $f\left(\tfrac{1}{n}\right)$ 是 $\tfrac{1}{n}$ 的等价无穷小 253 | \item $f\left(\tfrac{1}{n}\right)$ 是 $\tfrac{1}{n}$ 同阶但非等价无穷小 254 | \item $f\left(\tfrac{1}{n}\right)$ 是 $\tfrac{1}{n}$ 高阶的无穷小 255 | \item $f\left(\tfrac{1}{n}\right)$ 是 $\tfrac{1}{n}$ 低阶的无穷小 256 | \end{choices} 257 | \end{problem} 258 | 259 | \begin{analysis} 260 | $\lim _{n \to \infty} \frac{f(\frac{1}{n})}{\frac{1}{n}} = \lim _{n \to \infty} \frac{2^{\frac{1}{n}}-1}{\frac{1}{n}} + \lim _{n \to \infty} \frac{3^{\frac{1}{n}}-1}{\frac{1}{n}} = \lim _{n \to \infty} \frac{\frac{1}{n} \ln2}{\frac{1}{n}} + \lim _{n \to \infty} \frac{\frac{1}{n}\ln 3}{\frac{1}{n}} = \ln2+\ln3 = \ln 6 \ne 1$,所以选B. 261 | \end{analysis} 262 | 263 | \begin{problem} 264 | 在区间 $[0, 1]$ 上, 函数 $f(x)=n x(1-x)^{n}$ 的最大值为 $M(n)$, 则 $\lim _{n \to \infty} M(n)=$ 265 | 266 | \paren[A] 267 | \begin{choices} 268 | \item $\upe^{-1}$ 269 | \item $\upe$ 270 | \item $\upe^{2}$ 271 | \item $\upe^{3}$ 272 | \end{choices} 273 | \end{problem} 274 | 275 | \begin{analysis} 276 | 根据均值不等式,当$nx = (1-x)$时取等 277 | $$f(x) = nx(1-x)^{n} \le \left( \frac{ nx +1-x + \cdots + 1-x }{n+1} \right)^{n+1} = \left( \frac{n}{n+1} \right)^{n+1}$$ 278 | 也可用求导算极值的方式计算$x=\frac{1}{n+1}$时取极大值 279 | 280 | $\lim _{n \to \infty} M(n) = \lim _{n \to \infty} \left( \frac{n}{n+1} \right)^{n+1} = \lim _{n \to \infty} \left( 1-\frac{1}{n+1} \right)^{n+1} = \upe^{-1}$. 281 | \end{analysis} 282 | 283 | \begin{problem} 284 | 函数 $f(x)$ 在 $x=0$ 的某个邻域内连续, $f(0)=0$, $\lim _{x \to 0} \frac{f(x)}{2 \sin ^{2} \frac{x}{2}}=1$, 则 $f(x)$ 在 $x=0$ 285 | \paren[D] 286 | \begin{choices} 287 | \item 不可导 288 | \item 可导且 $f^{\prime}(0) \neq 0$ 289 | \item 取得极大值 290 | \item 取得极小值 291 | \end{choices} 292 | \end{problem} 293 | 294 | \begin{analysis} 295 | $f(x)$在$x=0$时连续,$f(0) = \lim_{x \to 0} f(x) = \lim _{x \to 0} \left[ \frac{f(x)}{2 \sin ^{2} \frac{x}{2}} \left( 2 \sin ^{2} \frac{x}{2} \right) \right] = \lim _{x \to 0} \frac{f(x)}{2 \sin ^{2} \frac{x}{2}} \times \lim _{x \to 0} 2 \sin ^{2} \frac{x}{2} = 1 \times 0 = 0$. 296 | 297 | 导数存在性: $f^{\prime}(0)=\lim _{x \to 0} \frac{f(x)-f(0)}{x-0} 298 | = \lim _{x \to 0}\left[ \frac{f(x)}{2 \sin ^{2} \frac{x}{2}} \cdot \frac{2 \sin ^{2} \frac{x}{2}}{x} \right] 299 | = 1 \times 0 = 0$, 则 $f^{\prime}(0)$ 存在, 且 $f^{\prime}(0)=0$, 300 | 301 | 极值情况: 由函数极限的部分保号性可知,当 $x \in \dot{U}(0, \delta)$ 时,有$\frac{f(x)-f(0)}{2 \sin ^{2} \frac{x}{2}} > 0$, 又 $2 \sin ^{2} \frac{x}{2} \geqslant 0$, 则有 $f(x)-f(0)>0$, 即 $f(x)$ 在 $x=0$ 处取得极小值. 302 | \end{analysis} 303 | 304 | \begin{problem} 305 | 曲线 $y=\frac{1}{|x|}$ 的渐近线为 306 | \paren[C] 307 | \begin{choices} 308 | \item 只有水平渐近线 309 | \item 只有垂直渐近线 310 | \item 既有水平又有垂直渐近线 311 | \item 既无垂直又无水平渐近线 312 | \end{choices} 313 | \end{problem} 314 | 315 | \begin{analysis} 316 | $\lim _{x \to 0} \frac{1}{|x|} = \infty$, 垂直渐近线为$x=0$, 317 | $\lim _{x \to \infty} \frac{1}{|x|} = 0$, 水平渐近线为$y=0$. 318 | \end{analysis} 319 | 320 | \begin{problem} 321 | 已知 $f(x)=x(1-x)(2-x) \cdots (n-x)$, 且 $f^{\prime}(m)=s$, $m \leq n$, $s$ 都是正整数, 则其满足 322 | \paren[D] 323 | \begin{choices} 324 | \item $n !=m s$ 325 | \item $m !=s n$ 326 | \item $s !=m n$ 327 | \item $(-1)^{m} m !(n-m) !=s$ 328 | \end{choices} 329 | \end{problem} 330 | 331 | \begin{analysis} 332 | $m \leq n$说明$f(x)$中一定有$(m-x)$这个因式,则$f(m) = 0$, 且 333 | \begin{align*} 334 | f'(m) & = \lim_{x \to m} \frac{f(x) - f(m)}{x - m} 335 | = \lim_{x \to m} \frac{f(x) - 0}{x - m} \\ 336 | & = \lim_{x \to m} \frac{x(1-x)(2-x) \cdots (m-1-x)(m-x)(m+1-x) \cdots (n-x)}{x - m} \\ 337 | & = - \lim_{x \to m} x(1-x)(2-x) \cdots (m-1-x) (m+1-x) \cdots (n-x) \\ 338 | & = - m(1-m)(2-m) \cdots (m-1-m) \times (m+1-m) \cdots (n-m) \\ 339 | & = - m (-1)^{m-1}(m-1)(m-2) \cdots 1 \times 1 \times \cdots \times (n-m) 340 | = (-1)^m m! (n-m)! 341 | \end{align*} 342 | 即$s = (-1)^m m! (n-m)!$. 343 | \end{analysis} 344 | 345 | \begin{problem} 346 | 若函数 $f(x)$ 在区间 $(a, b)$ 内可导, $x_{1}0$, $f^{\prime\prime}(t)<0$, 则当 $t \in(0, +\infty)$ 时, 有 362 | \paren[C] 363 | \begin{choices} 364 | \item $f(t)$ 单调增加且图像是凸的 365 | \item $f(t)$ 单调增加且图像是凹的 366 | \item $f(t)$ 单调减少且图像是凸的 367 | \item $f(t)$ 单调减小且图像是凹的 368 | \end{choices} 369 | \end{problem} 370 | 371 | \begin{analysis} 372 | $t<0$时,$f^{\prime}(t)>0$说明$f(t)$单调递增, $f^{\prime\prime}(t)<0$说明$f(t)$为凹函数,又$f(-t)=f(t)$说明$f(t)$为偶函数,则$f(t)$在$t>0$时单调递减,且为凸函数. 373 | \end{analysis} 374 | 375 | \begin{problem} 376 | 函数 $f(x)$ 在$0$点处某邻域内连续, 且 $\lim _{x \to 0} \frac{f(x)}{1-\cos x}=2$, 则在点 $x=0$ 处 $f(x)$ 377 | \paren[D] 378 | \begin{choices} 379 | \item 不可导 380 | \item 可导且 $f^{\prime}(0)=2$ 381 | \item 取得极大值 382 | \item 取得极小值 383 | \end{choices} 384 | \end{problem} 385 | 386 | \begin{analysis} 387 | $f(x)$在$x=0$时连续,$f(0) = \lim_{x \to 0} f(x) = \lim _{x \to 0} \left[ \frac{f(x)}{1-\cos x} \left( 1-\cos x \right) \right] = \lim _{x \to 0} \frac{f(x)}{1-\cos x} \times \lim _{x \to 0} 1-\cos x = 1 \times 0 = 0$. 388 | 389 | 导数存在性: $f^{\prime}(0)=\lim _{x \to 0} \frac{f(x)-f(0)}{x-0} 390 | = \lim _{x \to 0}\left[ \frac{f(x)}{1-\cos x} \cdot \frac{1-\cos x}{x} \right] 391 | = 1 \times 0 = 0$, 则 $f^{\prime}(0)$ 存在, 且 $f^{\prime}(0)=0$, 392 | 393 | 极值情况: 由函数极限的部分保号性可知,当 $x \in \dot{U}(0, \delta)$ 时,有$\frac{f(x)-f(0)}{1-\cos x} = 2>0$, 又 $1-\cos x \geqslant 0$, 则有 $f(x)-f(0)>0$, 即 $f(x)$ 在 $x=0$ 处取得极小值. 394 | \end{analysis} 395 | 396 | \section{计算题(本题共2小题,每题6分,满分12分)} 397 | 398 | \begin{problem} 399 | $\lim _{n \to \infty} n\left[\left(1+\frac{1}{n}\right)^{n}-\upe\right]$ 400 | \end{problem} 401 | 402 | \begin{solution} 403 | 倒代换,令$t=\frac{1}{n}$,将原式化为 404 | 405 | \begin{align*} 406 | \lim_{t \to 0} \frac{{{(1+t)}^{\frac{1}{t}}}- \upe }{t} 407 | = & \lim_{t \to 0} \frac{{{\upe}^{\frac{1}{t}\ln (1+t)}}- \upe }{t} 408 | =\lim_{t \to 0} \frac{ \upe \left[ {{\upe}^{\frac{1}{t}\ln (1+t)-1}}-1 \right]}{t} \\ 409 | = & \upe \lim_{t \to 0} \frac{\frac{1}{t}\ln (1+t)-1}{t} 410 | = \upe \lim_{t \to 0} \frac{\ln (1+t)-t}{{{t}^{2}}} 411 | = \upe \lim_{t \to 0} \frac{-\frac{1}{2}t^2}{t^2} 412 | =-\frac{\upe}{2} 413 | \end{align*} 414 | 即原式$=-\frac{\upe}{2}$. 415 | \end{solution} 416 | 417 | \begin{problem} 418 | 设函数 $f(x)$ 在 $x=0$ 的某邻域有二阶连续导数, 且 $f(0), f^{\prime}(0), f^{\prime \prime}(0)$ 均不为零, 证明: 存在唯一的一组实数 $k_{1}$, $k_{2}$, $k_{3}$, 使得 419 | $$ \lim _{h \to 0} \frac{k_{1} f(h)+k_{2} f(2 h)+k_{3} f(3 h)-f(0)}{h^{2}}=0. $$ 420 | \end{problem} 421 | 422 | \begin{solution} 423 | 由泰勒公式可得: 424 | \begin{align*} 425 | f(h) & = f(0)+f^{\prime}(0) h+\frac{h^{2}}{2 !} f'' (0)+\mathrm{o}\left(h^{2}\right) \\ 426 | f(2 h) & = f(0)+f^{\prime}(0) 2 h+2 h^{2} f^{\prime \prime}(0)+o\left(h^{2}\right) \\ 427 | f(3 h) & = f(0)+f^{\prime}(0) 3 h+\frac{9 h^{2}}{2} f^{\prime \prime}(0)+\mathrm{o}\left(h^{2}\right) 428 | \end{align*} 429 | 则可得 430 | \begin{align*} 431 | 0 & = \lim _{h \rightarrow 0} \frac{k_{1} f(h)+k_{2} f(2 h)+k_{3} f(3 h)-f(0)}{h^{2}} \\ 432 | & =\lim _{h \rightarrow 0} \frac{\left(k_{1}+k_{2}+k_{3}-1\right) f(0)+\left(k_{1}+2 k_{2}+3 k_{3}\right) h f^{\prime}(0)+h^{2} \frac{\left(k_{1}+4 k_{2}+9 k_{3}\right)}{2} f^{\prime \prime}(0)}{h^{2}} 433 | \end{align*} 434 | 可得: 435 | $$k_{1}+k_{2}+k_{3}=1, \quad k_{1}+2 k_{2}+3 k_{3}=0, \quad k_{1}+4 k_{2}+9 k_{3}=0$$ 436 | 则可以得到唯一的一组解 $k_{1}=3$, $k_{2}=-3$, $k_{3}=1$. 437 | \end{solution} 438 | 439 | \section{证明题(8分)} 440 | 441 | \begin{problem} 442 | 设 $f(x)$ 在 $[a, b]$ 上连续, 在 $(a, b)$ 内可导, 试证至少存在一点 $\xi$, 使得 443 | $$f(b)-f(a)=\xi f^{\prime}(\xi)(\ln b-\ln a).$$ 444 | \end{problem} 445 | 446 | \begin{proof}[show-qed=false] 447 | 由柯西中值定理可知, 当 $f(x)$ 在 $[a, b]$ 上连续, 在 $(a, b)$ 内可导, 448 | 449 | 有 450 | $\frac{f(b)-f(a)}{g(b)-g(a)}=\frac{f^{\prime}(\xi)}{g^{\prime}(\xi)}$, 451 | 即 452 | $$\frac{f(b)-f(a)}{\ln b-\ln a}=\frac{f^{\prime}(\xi)}{\frac{1}{\xi}} 453 | ~\Rightarrow~ 454 | f(b)-f(a)=\xi f^{\prime}(\xi)(\ln b-\ln a) $$ 455 | 证毕. 456 | \end{proof} 457 | 458 | \end{document} 459 | -------------------------------------------------------------------------------- /img/demo-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-0.png -------------------------------------------------------------------------------- /img/demo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-1.png -------------------------------------------------------------------------------- /img/demo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-2.png -------------------------------------------------------------------------------- /img/demo-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-3.png -------------------------------------------------------------------------------- /img/demo-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-4.png -------------------------------------------------------------------------------- /img/demo-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-5.png -------------------------------------------------------------------------------- /img/demo-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-6.png -------------------------------------------------------------------------------- /img/demo-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-7.png -------------------------------------------------------------------------------- /img/demo-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/htharoldht/USTBExam/f5c2ab3c36fa406af2527de470d5ba343c111512/img/demo-8.png -------------------------------------------------------------------------------- /latexindent.yaml: -------------------------------------------------------------------------------- 1 | # defaultSettings.yaml for latexindent.pl, version 3.17.1, 2022-04-04 2 | # a script that aims to 3 | # beautify .tex, .sty, .cls files 4 | # 5 | # (or latexindent.exe if you're on Windows) 6 | # 7 | #--------------------------------------------------------------------------------------- 8 | # This program is free software: you can redistribute it and/or modify 9 | # it under the terms of the GNU General Public License as published by 10 | # the Free Software Foundation, either version 3 of the License, or 11 | # (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # See http://www.gnu.org/licenses/. 19 | # 20 | # Chris Hughes, 2017 21 | # 22 | # For all communication, please visit: https://github.com/cmhughes/latexindent.pl 23 | # 24 | #--------------------------------------------------------------------------------------- 25 | # You should feel encouraged to change anything you like in these settings, but 26 | # it would probably be better to have your own user settings 27 | # files somewhere else - remember that this file may be overwritten 28 | # when you update your tex distribution. Please see the manual linked from: 29 | # 30 | # https://github.com/cmhughes/latexindent.pl 31 | # 32 | # for details of how to create and configure your own settings files. 33 | # 34 | # Please read the manual (linked from above) first to understand what each switch does. 35 | # 36 | #--------------------------------------------------------------------------------------- 37 | 38 | # latexindent can be called to act on a file without using the file's extension, 39 | # e.g, simply 40 | # latexindent myfile 41 | # in which case the choice of file extension is chosen 42 | # according to the choices made in fileExtensionPreference 43 | # Other file extensions can be added. 44 | fileExtensionPreference: 45 | .tex: 1 46 | .sty: 2 47 | .cls: 3 48 | .bib: 4 49 | 50 | # default file extension of backup file (if -w switch is active) 51 | # for example, if your .tex file is called 52 | # myfile.tex 53 | # and you specify the backupExtension as BACKUP.bak then your 54 | # backup file will be 55 | # myfileBACKUP.bak 56 | backupExtension: .bak 57 | 58 | # only one backup per file: 59 | # - if onlyOneBackUp is 0 then, as a safety measure, 60 | # the number on the extension increments by 1 each time: 61 | # 62 | # myfile.bak0, myfile.bak1, myfile.bak2 63 | # - if you set onlyOnebackUp to 1, then the backup file will 64 | # be overwritten each time (not recommended until you trust the script) 65 | onlyOneBackUp: 1 66 | 67 | # some users may want a finite number of backup files, 68 | # say at most 3; in which case, they can change this maxNumberOfBackUps. 69 | # 70 | # If maxNumberOfBackUps is set to 0 (or less) then infinitely 71 | # many backups are possible, unless onlyOneBackUp is switched on 72 | maxNumberOfBackUps: 0 73 | 74 | # some users may wish to cycle through back up files. 75 | # 76 | # for example, with maxNumberOfBackUps: 4, they may 77 | # wish to delete the oldest back up file, and keep only the most recent. 78 | # 79 | # copy myfile.bak1 to myfile.bak0 80 | # copy myfile.bak2 to myfile.bak1 81 | # copy myfile.bak3 to myfile.bak2 82 | # copy myfile.bak4 to myfile.bak3 83 | # 84 | # the back up will be written to myfile.bak4 85 | cycleThroughBackUps: 0 86 | 87 | # preferences for information displayed in the log file 88 | logFilePreferences: 89 | showEveryYamlRead: 1 90 | showAmalgamatedSettings: 0 91 | showDecorationStartCodeBlockTrace: 0 92 | showDecorationFinishCodeBlockTrace: 0 93 | endLogFileWith: '--------------' 94 | showGitHubInfoFooter: 1 95 | Dumper: 96 | Terse: 1 97 | Indent: 1 98 | Useqq: 1 99 | Deparse: 1 100 | Quotekeys: 0 101 | Sortkeys: 1 102 | Pair: ' => ' 103 | 104 | # verbatim environments specified 105 | # in this field will not be changed at all! 106 | verbatimEnvironments: 107 | verbatim: 1 108 | lstlisting: 1 109 | minted: 1 110 | 111 | # verbatim commands such as \verb! body !, \lstinline$something else$ 112 | verbatimCommands: 113 | verb: 1 114 | lstinline: 1 115 | 116 | # no indent blocks (not necessarily verbatim 117 | # environments) which are marked as %\begin{noindent} 118 | # or anything else that you detail in the following 119 | noIndentBlock: 120 | noindent: 1 121 | cmhtest: 1 122 | 123 | # \begin{document} and \end{document} are treated differently 124 | # by latexindent within filecontents environments 125 | fileContentsEnvironments: 126 | filecontents: 1 127 | filecontents*: 1 128 | 129 | # indent preamble 130 | indentPreamble: 0 131 | 132 | # assume no preamble in cls, sty, by default 133 | lookForPreamble: 134 | .tex: 1 135 | .sty: 0 136 | .cls: 0 137 | .bib: 0 138 | 139 | # some preambles can contain \begin and \end statements 140 | # that are not in their 'standard environment block', for example, 141 | # consider the following key = values: 142 | # preheadhook={\begin{mdframed}[style=myframedstyle]}, 143 | # postfoothook=\end{mdframed}, 144 | preambleCommandsBeforeEnvironments: 0 145 | 146 | # default value of indentation 147 | defaultIndent: " " 148 | 149 | # remove trailing whitespace from all lines 150 | removeTrailingWhitespace: 151 | beforeProcessing: 0 152 | afterProcessing: 1 153 | 154 | # name of code blocks that should have their body aligned at ampersand delimiters 155 | lookForAlignDelims: 156 | tabular: 157 | delims: 1 158 | alignDoubleBackSlash: 1 159 | spacesBeforeDoubleBackSlash: 1 160 | multiColumnGrouping: 1 161 | alignRowsWithoutMaxDelims: 1 162 | spacesBeforeAmpersand: 1 163 | spacesAfterAmpersand: 1 164 | justification: left 165 | alignFinalDoubleBackSlash: 0 166 | dontMeasure: 0 167 | delimiterRegEx: '(?]*?>)' 624 | keyEqualsValuesBracesBrackets: 625 | name: '[a-zA-Z@\*0-9_\/.:\#-]+[a-zA-Z@\*0-9_\/.\h\{\}:\#-]*?' 626 | follow: '(?:(?<]+?' 629 | follow: '\h|\R|\{|\[|\$|\)|\(' 630 | UnNamedGroupingBracesBrackets: 631 | follow: '\{|\[|,|&|\)|\(|\$' 632 | arguments: 633 | before: '(?:#\d\h*;?,?\/?)+|\<.*?\>' 634 | between: '_|\^|\*' 635 | trailingComments: 636 | notPreceededBy: '(?