├── .gitignore ├── LICENSE ├── README.md ├── beamercolorthemescu.sty ├── beamerinnerthemescu.sty ├── beamerouterthemescu.sty ├── beamerthemescu.sty ├── fonts └── README.md ├── image ├── Fy.pdf ├── logo_name.pdf ├── stop-bk.pdf ├── stop-gn.pdf └── stop-rd.pdf ├── main-en.pdf ├── main-en.tex ├── main.pdf ├── main.tex ├── manual.pdf ├── mintedbuild └── README.md ├── ref.bib ├── resources ├── SCUbuilding.png ├── SCUlogo_name.pdf ├── SCUname.pdf ├── SCUverify.png ├── background.png ├── backgroundofsubsectiontocpage.png ├── backgroundoftitlepage(Empty).png ├── backgroundoftitlepage(Light).png └── backgroundoftitlepage.png └── sourcecode └── A cpp.cpp /.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 | *.lzo 113 | *.lzs 114 | 115 | # uncomment this for glossaries-extra (will ignore makeindex's style files!) 116 | # *.ist 117 | 118 | # gnuplottex 119 | *-gnuplottex-* 120 | 121 | # gregoriotex 122 | *.gaux 123 | *.gtex 124 | 125 | # htlatex 126 | *.4ct 127 | *.4tc 128 | *.idv 129 | *.lg 130 | *.trc 131 | *.xref 132 | 133 | # hyperref 134 | *.brf 135 | 136 | # knitr 137 | *-concordance.tex 138 | # TODO Comment the next line if you want to keep your tikz graphics files 139 | *.tikz 140 | *-tikzDictionary 141 | 142 | # listings 143 | *.lol 144 | 145 | # luatexja-ruby 146 | *.ltjruby 147 | 148 | # makeidx 149 | *.idx 150 | *.ilg 151 | *.ind 152 | 153 | # minitoc 154 | *.maf 155 | *.mlf 156 | *.mlt 157 | *.mtc[0-9]* 158 | *.slf[0-9]* 159 | *.slt[0-9]* 160 | *.stc[0-9]* 161 | 162 | # minted 163 | _minted* 164 | *.pyg 165 | 166 | # morewrites 167 | *.mw 168 | 169 | # nomencl 170 | *.nlg 171 | *.nlo 172 | *.nls 173 | 174 | # pax 175 | *.pax 176 | 177 | # pdfpcnotes 178 | *.pdfpc 179 | 180 | # sagetex 181 | *.sagetex.sage 182 | *.sagetex.py 183 | *.sagetex.scmd 184 | 185 | # scrwfile 186 | *.wrt 187 | 188 | # sympy 189 | *.sout 190 | *.sympy 191 | sympy-plots-for-*.tex/ 192 | 193 | # pdfcomment 194 | *.upa 195 | *.upb 196 | 197 | # pythontex 198 | *.pytxcode 199 | pythontex-files-*/ 200 | 201 | # tcolorbox 202 | *.listing 203 | 204 | # thmtools 205 | *.loe 206 | 207 | # TikZ & PGF 208 | *.dpth 209 | *.md5 210 | *.auxlock 211 | 212 | # todonotes 213 | *.tdo 214 | 215 | # vhistory 216 | *.hst 217 | *.ver 218 | 219 | # easy-todo 220 | *.lod 221 | 222 | # xcolor 223 | *.xcp 224 | 225 | # xmpincl 226 | *.xmpi 227 | 228 | # xindy 229 | *.xdy 230 | 231 | # xypic precompiled matrices and outlines 232 | *.xyc 233 | *.xyd 234 | 235 | # endfloat 236 | *.ttt 237 | *.fff 238 | 239 | # Latexian 240 | TSWLatexianTemp* 241 | 242 | ## Editors: 243 | # WinEdt 244 | *.bak 245 | *.sav 246 | 247 | # Texpad 248 | .texpadtmp 249 | 250 | # LyX 251 | *.lyx~ 252 | 253 | # Kile 254 | *.backup 255 | 256 | # gummi 257 | .*.swp 258 | 259 | # KBibTeX 260 | *~[0-9]* 261 | 262 | # TeXnicCenter 263 | *.tps 264 | 265 | # auto folder when using emacs and auctex 266 | ./auto/* 267 | *.el 268 | 269 | # expex forward references with \gathertags 270 | *-tags.tex 271 | 272 | # standalone packages 273 | *.sta 274 | 275 | # Makeindex log files 276 | *.lpz 277 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 四川大学Beamer模板 2 | 3 | 本项目参考了Beamer, Tcolorbox等官方文档, 参考了stackoverflow中的诸多问题; 4 | 5 | 主要参考了中国科学技术大学Beamer模板 [USTCBeamerSX](https://github.com/ysx2000/USTCBeamerSX/), 少量参考了清华大学Beamer模板 [THU-Beamer-Theme](https://github.com/tuna/THU-Beamer-Theme/) 及其衍生的各大学的Beamer模板, 还参考了中国科学技术大学Beamer模板 [ustcbeamer](https://github.com/ustctug/ustcbeamer/). 6 | 7 | 8 | ## 项目地址 9 | 10 | -GitHub: https://github.com/FvNCCR228/SCU_Beamer_Slide-demo 11 | 12 | -Gitee: https://gitee.com/NCCR/SCU_Beamer_Slide-demo 13 | 14 | ![image](https://github.com/FvNCCR228/SCU_Beamer_Slide-demo/assets/94803387/84aeb3c5-b9d1-4f61-93fc-6fefa083be8c) ![image](https://github.com/FvNCCR228/SCU_Beamer_Slide-demo/assets/94803387/3c5e7015-a932-43c1-a5a0-81ed77ccdbfb) 15 | 16 | 17 | 18 | 19 | ## 使用说明 20 | 21 | !! 请使用 `UTF-8` 格式, 设置 `XeLaTeX`和 `Biber` 进行编译( `main.tex` 或 `manual.tex` ); 22 | 23 | !! 使用前请阅读用户手册; 24 | 25 | 在线编辑请上传整个工作文件夹, 否则会出现严重错误(Bug遍地飞); 26 | 27 | !! 对 LaTeX 不熟悉的情况下, 请勿轻易改动 `.sty` 文件(宏包文件)中代码, 也可按照文件中注释进行实验性修改(注意保留备份); 28 | 29 | 目前本模板仅在编者的 Windows 11 系统上编译通过, Overleaf 编译失败(不是完全失败, 我很伤心); 30 | 31 | 使用 LaTeX 时一定要善用搜索引擎, 要积极搜索国外论坛. 32 | 33 | 34 | ## 模板设计 35 | 36 | ### 背景 37 | 38 | 封面与正文板块采用不同背景, 正文背景采用低透明度淡色, 增强正文文本等辨识性. 39 | 40 | ### 页眉 41 | 42 | 采用双行设计; 43 | 44 | 首行为节标题导航栏, 显示幻灯整体思路, 还附带四川大学校名; 45 | 46 | 次行为标题栏, 左侧显示小节标题与迷你帧(圆点)形式的当前小节帧进度}, 右侧显示当前幻灯标题. (编者认为小节迷你帧能在较清晰呈现进度的同时, 节约大量空间, 也能避免某节中幻灯页数过多, 导致标题导航挤压溢出) 47 | 48 | ### 页脚 49 | 50 | 采用双行设计; 51 | 52 | 首行为导航栏, 左侧显示报告标题, 右侧为导航模块; 次行为信息行, 左中右分别为作者、机构、日期与页码. 53 | 54 | ### 环境 55 | 56 | 模板定义了定理, 代码等多种环境演示. 57 | 58 | 59 | ### 关于修改 60 | 61 | 若有修改意见欢迎邮件联系编者, 当然, 编者不一定有时间, 请谅解. 62 | 63 | 若本校的 LaTeX 大佬百忙之中能对本模板提出批评指正, 鄙人在此万分感谢各位的支持. 64 | 65 | 感谢模板中所使用部分代码的原作者, 也感谢模板所调用宏包的诸位作者前辈. 66 | 67 | 欢迎友校的朋友们对此模板进行修改, 不过这个模板可能有点点难改, 希望能看懂我的注释, 但愿吧. 68 | 69 | 70 | ## 更新记录 71 | 72 | v1.0a - 初始版本 73 | -------------------------------------------------------------------------------- /beamercolorthemescu.sty: -------------------------------------------------------------------------------- 1 | % This is file `beamercolorthemescu.sty'. 2 | % Copyright (C) 2021-2024 by Linrong Wu. 3 | % Version: 2024/10/31 v1.3e (Original Version: 2022/03/10 v1.2a). 4 | % 5 | % This file may be distributed and/or modified 6 | % 7 | % 1. under the LaTeX Project Public License and/or 8 | % 2. under the GNU Public License. 9 | % 10 | % See the file doc/licenses/LICENSE for more details. 11 | % 12 | % 本文件为 SCU_Beamer_Slide-demo 颜色主题宏包文件. 13 | % !请勿轻易改动此文档中代码. 14 | %%%% ---------------------------------------------------------------- 15 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] 16 | \ProvidesPackage{beamercolorthemescu}[2024/10/31 v1.3e, SCU Beamer Theme(Color Theme)] 17 | %%%% ---------------------------------------------------------------- 18 | 19 | 20 | % ---------------- 21 | % Declare of Options 22 | % Confirmed in v1.3c(2024/04/16). 23 | % Established in v1.2a(2022/03/10). 24 | % Updated in v1.3a(2022/03/16), v1.3b(2022/04/13). 25 | % ---------------- 26 | % CMD:: \DeclareOptionBeamer - 声明参数. 27 | % CMD:: \ExecuteOptionsBeamer - 预执行参数. 28 | % CMD:: \ProcessOptionsBeamer - 处理参数. 29 | % ---------------- 30 | % KEY:: ColorDisplay. 31 | % VALUE:: JXred | BSblue | Custom. 32 | \DeclareOptionBeamer{ColorDisplay}{\def\beamer@scu@ColorDisplay{#1}} 33 | 34 | \ExecuteOptionsBeamer{ColorDisplay=JXred} 35 | \ProcessOptionsBeamer 36 | % ---------------- 37 | 38 | 39 | % ---------------- 40 | % Declare of Packages 41 | % Confirmed in v1.3c(2024/04/16). 42 | % Established in v1.3b(2022/04/13). 43 | % ---------------- 44 | % CMD:: \RequirePackage - 调用宏包. 45 | % ---------------- 46 | \RequirePackage{xcolor}% xcolor: 设置颜色. 47 | % ---------------- 48 | 49 | 50 | % ---------------- 51 | % Declare of Colors 52 | % Confirmed in v1.3c(2024/04/16). 53 | % Established in v1.2a(2022/03/10). 54 | % Updated in v1.3a(2022/03/16). 55 | % ---------------- 56 | % 依据四川大学VIS视觉识别系统(2014), 定义了主题色 scured, scugrey, 与辅助色 scublue, scugreen, scuyellow. 57 | % 上述定义颜色均采用 CMYK 颜色模式. 58 | % 注: 常用的颜色模式有 RGB 与 CMYK, 对应 LaTeX 中 rgb(0-1小数制, x/255), RGB(原始数值), cmyk(0-1小数制, x/100). 59 | % ---------------- 60 | % CMD:: \definecolor - 依据颜色代码定义新颜色. 61 | % CMD:: \colorlet - 依据已有颜色延申新颜色. 62 | % ---------------- 63 | % COLOR:: 锦绣红 - scured - CMYK(12,92,95,20). 64 | \definecolor{scured} {cmyk}{0.12,0.92,0.95,0.20} 65 | \colorlet{scured10} {scured!10!white} 66 | \colorlet{scured20} {scured!20!white} 67 | \colorlet{scured30} {scured!30!white} 68 | \colorlet{scured40} {scured!40!white} 69 | \colorlet{scured50} {scured!50!white} 70 | \colorlet{scured60} {scured!60!white} 71 | \colorlet{scured70} {scured!70!white} 72 | \colorlet{scured80} {scured!80!white} 73 | \colorlet{scured90} {scured!90!white} 74 | 75 | % COLOR:: 优雅灰 - scugrey - CMYK(47,37,37,20). 76 | \definecolor{scugrey} {cmyk}{0.47,0.37,0.37,0.00} 77 | \colorlet{scugrey10} {scugrey!10!white} 78 | \colorlet{scugrey20} {scugrey!20!white} 79 | \colorlet{scugrey30} {scugrey!30!white} 80 | \colorlet{scugrey40} {scugrey!40!white} 81 | \colorlet{scugrey50} {scugrey!50!white} 82 | \colorlet{scugrey60} {scugrey!60!white} 83 | \colorlet{scugrey70} {scugrey!70!white} 84 | \colorlet{scugrey80} {scugrey!80!white} 85 | \colorlet{scugrey90} {scugrey!90!white} 86 | 87 | % COLOR:: 宝石蓝 - scublue - CMYK(100,60,0,15). 88 | \definecolor{scublue} {cmyk}{1.00,0.60,0.00,0.15} 89 | \colorlet{scublue10} {scublue!10!white} 90 | \colorlet{scublue20} {scublue!20!white} 91 | \colorlet{scublue30} {scublue!30!white} 92 | \colorlet{scublue40} {scublue!40!white} 93 | \colorlet{scublue50} {scublue!50!white} 94 | \colorlet{scublue60} {scublue!60!white} 95 | \colorlet{scublue70} {scublue!70!white} 96 | \colorlet{scublue80} {scublue!80!white} 97 | \colorlet{scublue90} {scublue!90!white} 98 | 99 | % COLOR:: 荷叶绿 - scugreen - CMYK(100,0,90,15). 100 | \definecolor{scugreen} {cmyk}{1.00,0.00,0.90,0.15} 101 | \colorlet{scugreen10} {scugreen!10!white} 102 | \colorlet{scugreen20} {scugreen!20!white} 103 | \colorlet{scugreen30} {scugreen!30!white} 104 | \colorlet{scugreen40} {scugreen!40!white} 105 | \colorlet{scugreen50} {scugreen!50!white} 106 | \colorlet{scugreen60} {scugreen!60!white} 107 | \colorlet{scugreen70} {scugreen!70!white} 108 | \colorlet{scugreen80} {scugreen!80!white} 109 | \colorlet{scugreen90} {scugreen!90!white} 110 | 111 | % COLOR:: 银杏黄 - scuyellow - CMYK(0,40,100,15). 112 | \definecolor{scuyellow}{cmyk}{0.00,0.40,1.00,0.15} 113 | \colorlet{scuyellow10}{scuyellow!10!white} 114 | \colorlet{scuyellow20}{scuyellow!20!white} 115 | \colorlet{scuyellow30}{scuyellow!30!white} 116 | \colorlet{scuyellow40}{scuyellow!40!white} 117 | \colorlet{scuyellow50}{scuyellow!50!white} 118 | \colorlet{scuyellow60}{scuyellow!60!white} 119 | \colorlet{scuyellow70}{scuyellow!70!white} 120 | \colorlet{scuyellow80}{scuyellow!80!white} 121 | \colorlet{scuyellow90}{scuyellow!90!white} 122 | % ---------------- 123 | 124 | 125 | \mode 126 | 127 | 128 | % ---------------- 129 | % Beamer Theme Color Mode Layout 130 | % Confirmed in v1.3c(2024/04/16). 131 | % Established in v1.3a(2022/03/16). 132 | % Updated in v1.3c(2024/04/16). 133 | % ---------------- 134 | % | PrimaryC | AuxiliaryC | SecondaryAuxiliaryC | IntersperseC || 135 | % | 主题色 | 辅助色 | 第二辅助色 | 点缀色 | 136 | % -------------------------------------------------------------- 137 | % | NomalTextC | AlertedTextC | BackgroundC | BlockExampleC | 138 | % | 普通文本色 | 强调文本色 | 背景主体色 | Example 区块色 | 139 | % ------------------------------------------------------------ 140 | % | BlockDefinitionC | BlockLemmaC | BlockConditionC | 141 | % | Definition 区块色 | Lemma 区块色| Condition 区块色 | 142 | % ---------------- 143 | \if\EqualOptionsBeamer{ColorDisplay}{JXred}% 144 | \colorlet{PrimaryC} {scured} 145 | \colorlet{AuxiliaryC} {scugrey50} 146 | \colorlet{SecondaryAuxiliaryC}{scugrey} 147 | \colorlet{IntersperseC} {scured60} 148 | \colorlet{NomalTextC} {black} 149 | \colorlet{AlertedTextC} {scured90} 150 | \colorlet{BackgroundC} {white} 151 | \colorlet{BlockExampleC} {scugrey!80!black} 152 | \colorlet{BlockDefinitionC} {scublue} 153 | \colorlet{BlockLemmaC} {scugreen} 154 | \colorlet{BlockConditionC} {scuyellow} 155 | \colorlet{HighlightCodeLineC} {scured10} 156 | \else\if\EqualOptionsBeamer{ColorDisplay}{BSblue}% 157 | \colorlet{PrimaryC} {scublue} 158 | \colorlet{AuxiliaryC} {scugrey50} 159 | \colorlet{SecondaryAuxiliaryC}{scugrey} 160 | \colorlet{IntersperseC} {scublue60} 161 | \colorlet{NomalTextC} {black} 162 | \colorlet{AlertedTextC} {scublue90} 163 | \colorlet{BackgroundC} {white} 164 | \colorlet{BlockExampleC} {scugrey!80!black} 165 | \colorlet{BlockDefinitionC} {scured} 166 | \colorlet{BlockLemmaC} {scugreen} 167 | \colorlet{BlockConditionC} {scuyellow} 168 | \colorlet{HighlightCodeLineC} {scublue10} 169 | \else\if\EqualOptionsBeamer{ColorDisplay}{Custom}% 170 | \def\beamer@scu@colorprovide#1#2{% 171 | % #1:: colorname. 172 | % #2:: set color. 173 | \@ifundefined{\string\color@#1}{\colorlet{#1}{#2}}{}% 174 | } 175 | \beamer@scu@colorprovide{PrimaryC} {scured} 176 | \beamer@scu@colorprovide{AuxiliaryC} {scugrey50} 177 | \beamer@scu@colorprovide{SecondaryAuxiliaryC}{scugrey} 178 | \beamer@scu@colorprovide{IntersperseC} {scured60} 179 | \beamer@scu@colorprovide{NomalTextC} {black} 180 | \beamer@scu@colorprovide{AlertedTextC} {scured90} 181 | \beamer@scu@colorprovide{BackgroundC} {white} 182 | \beamer@scu@colorprovide{BlockExampleC} {scugrey!80!black} 183 | \beamer@scu@colorprovide{BlockDefinitionC} {scublue} 184 | \beamer@scu@colorprovide{BlockLemmaC} {scugreen} 185 | \beamer@scu@colorprovide{BlockConditionC} {scuyellow} 186 | \beamer@scu@colorprovide{HighlightCodeLineC} {scured10} 187 | \fi\fi\fi 188 | % ---------------- 189 | 190 | 191 | % ---------------- 192 | % Beamer Theme Color Layout 193 | % Confirmed in v1.3e(2024/10/31). 194 | % Established in v1.2a(2022/03/10). 195 | % Updated in v1.3a(2022/03/16), v1.3c(2024/04/16), v1.3e(2024/10/31). 196 | % ---------------- 197 | % 基本颜色设置. 198 | \setbeamercolor{structure}{fg=PrimaryC} 199 | \setbeamercolor{background canvas}{bg=BackgroundC} 200 | 201 | % 调色板颜色设置. 202 | \setbeamercolor{palette primary} {fg=BackgroundC, bg=PrimaryC} 203 | \setbeamercolor{palette secondary} {fg=NomalTextC} 204 | \setbeamercolor{palette tertiary} {fg=AlertedTextC} 205 | \setbeamercolor{palette quaternary}{fg=AuxiliaryC, bg=IntersperseC} 206 | 207 | % 页眉页脚颜色设置. 208 | \setbeamercolor{section in head/foot} {parent=palette primary} 209 | \setbeamercolor{subsection in head/foot} {parent=structure} 210 | \setbeamercolor{frametitle} {parent=structure} 211 | \setbeamercolor{framesubtitle} {parent=palette tertiary} 212 | \setbeamercolor{author in head/foot} {parent=palette secondary} 213 | \setbeamercolor{title in head/foot} {parent=structure} 214 | \setbeamercolor{framenumber in head/foot}{parent=structure} 215 | 216 | % 封页颜色设置. 217 | \setbeamercolor{title} {bg=BackgroundC, fg=PrimaryC} 218 | \setbeamercolor{subtitle} {bg=BackgroundC, fg=PrimaryC} 219 | %\setbeamercolor{author} {fg=white,bg=} 220 | %\setbeamercolor{date} {fg=white,bg=} 221 | \setbeamercolor{titlepageheader}{bg=white, fg=black} 222 | \setbeamercolor{titlepagefooter}{bg=white, fg=black} 223 | 224 | % 区块颜色设置. 225 | \setbeamercolor*{block title} {parent=palette primary} 226 | \setbeamercolor*{block body} {fg=, bg=scured40} 227 | \setbeamercolor*{block title example}{fg=white, bg=scublue} 228 | \setbeamercolor*{block body example} {fg=, bg=scublue40} 229 | \setbeamercolor*{block title alerted}{parent=palette primary} 230 | \setbeamercolor*{block body alerted} {fg=, bg=scured40} 231 | 232 | % 列表颜色设置. 233 | \setbeamercolor{item} {parent=structure} 234 | \setbeamercolor{item projected} {parent=structure} 235 | \setbeamercolor{enumerate item} {parent=structure} 236 | \setbeamercolor{enumerate subitem} {parent=structure} 237 | \setbeamercolor{enumerate subsubitem}{parent=structure} 238 | 239 | % 文本颜色设置. 240 | \setbeamercolor*{normal text} {parent=palette secondary} 241 | \setbeamercolor*{alerted text}{parent=palette tertiary} 242 | % ---------------- 243 | 244 | 245 | %%%% ---------------------------------------------------------------- 246 | \endinput 247 | %%%% ---------------------------------------------------------------- 248 | % End of file `beamercolorthemescu.sty'. -------------------------------------------------------------------------------- /beamerinnerthemescu.sty: -------------------------------------------------------------------------------- 1 | % This is file `beamerinnerthemescu.sty'. 2 | % Copyright (C) 2021-2024 by Linrong Wu. 3 | % Version: 2024/10/31 v1.3e (Original Version: 2024/04/16 v1.3c). 4 | % 5 | % This file may be distributed and/or modified 6 | % 7 | % 1. under the LaTeX Project Public License and/or 8 | % 2. under the GNU Public License. 9 | % 10 | % See the file doc/licenses/LICENSE for more details. 11 | % 12 | % 本文件为 SCU_Beamer_Slide-demo 内部主题宏包文件. 13 | % !请勿轻易改动此文档中代码. 14 | %%%% ---------------------------------------------------------------- 15 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] 16 | \ProvidesPackage{beamerinnerthemescu}[2024/10/31 v1.3e, SCU Beamer Theme(Inner Theme)] 17 | %%%% ---------------------------------------------------------------- 18 | 19 | 20 | \mode 21 | 22 | 23 | % ---------------- 24 | % Beamer Theme Title Page Layout 25 | % Confirmed in v1.3c(2024/04/16). 26 | % Established in v1.3c(2024/04/16). 27 | % ---------------- 28 | % CMD:: \newdimen - 创建长度寄存器. 29 | % CMD:: \newsavebox - 创建盒子. 30 | % ---------------- 31 | % DIMEN:: title 框底部高度 - titlelow. 32 | \newdimen\beamer@scu@len@titlelow 33 | \beamer@scu@len@titlelow=0.4\paperheight 34 | % DIMEN:: title 框顶部高度 - titlehigh. 35 | \newdimen\beamer@scu@len@titlehigh 36 | \beamer@scu@len@titlehigh=0.65\paperheight 37 | % DIMEN:: title 框文字顶部高度 - titletexthigh. 38 | \newdimen\beamer@scu@len@titletexthigh 39 | \beamer@scu@len@titletexthigh=\dimexpr\beamer@scu@len@titlehigh-0.025\paperheight\relax 40 | % DIMEN:: author 框顶部高度 - authorhigh. 41 | \newdimen\beamer@scu@len@authorhigh 42 | \beamer@scu@len@authorhigh=0.475\paperheight 43 | % DIMEN:: author 框文字顶部高度 - authortexthigh. 44 | \newdimen\beamer@scu@len@authortexthigh 45 | \beamer@scu@len@authortexthigh=\dimexpr\beamer@scu@len@authorhigh-0.025\paperheight\relax 46 | % DIMEN:: author 框最小宽度 - authorwidthmin. 47 | \newdimen\beamer@scu@len@authorwidthmin 48 | \beamer@scu@len@authorwidthmin=0.75\paperwidth 49 | % DIMEN:: author 框顶部到 title 框底部距离 - titletoauthor. 50 | \newdimen\beamer@scu@len@titletoauthor 51 | \beamer@scu@len@titletoauthor=\dimexpr\beamer@scu@len@authorhigh-\beamer@scu@len@titlelow+0.2pt\relax 52 | % DIMEN:: author 框高度 - titletoauthor. 53 | \newdimen\beamer@scu@len@authorheight 54 | 55 | % 封面样式定义. 56 | \defbeamertemplate*{title page}{SCU title page theme}{% 57 | \newsavebox{\beamer@scu@authorbox} 58 | \sbox{\beamer@scu@authorbox}{\parbox{.72\paperwidth}{% 59 | \setlength{\baselineskip}{10pt}% 60 | {\usebeamerfont{author}\insertauthor\par}% 61 | {\vskip6pt}% 62 | {\usebeamerfont{institute}\insertinstitute}% 63 | }}% savebox 存储 64 | \settototalheight{\beamer@scu@len@authorheight}{\usebox{\beamer@scu@authorbox}}% 计算高度 65 | \beamer@scu@len@authorheight=\dimexpr\beamer@scu@len@authorheight+0.036\paperwidth\relax% 补齐上下空白部分 66 | \begin{beamercolorbox}[wd=\paperwidth,ht=\paperheight]{}% 67 | \begin{tikzpicture}[overlay, yshift=-13.3pt]% 68 | \node[anchor=north west, inner sep=0pt, outer sep=0pt]% 69 | at (16pt, \dimexpr\paperheight-14pt\relax) {\pgfuseimage{lg-name}};% 绘制 logo-name 70 | \node[anchor=south east, inner sep=0pt, outer sep=0pt]% 71 | at (\paperwidth, \beamer@scu@len@titlehigh) {\pgfuseimage{building}};% 绘制望江楼房 72 | \fill[PrimaryC] (0, \beamer@scu@len@titlelow) rectangle (\paperwidth, \beamer@scu@len@titlehigh); % 绘制 title 框 73 | \node[anchor=north west, inner sep=0pt, outer sep=0pt,% 74 | text width=.9\paperwidth] at (16pt, \beamer@scu@len@titletexthigh) {% 75 | {\usebeamerfont{title}\usebeamercolor[bg]{title}\inserttitle\par}% 76 | {\vskip6pt}% 77 | {\usebeamerfont{subtitle}\usebeamercolor[bg]{subtitle}\insertsubtitle\par}% 78 | };% 绘制 title | subtitle 文字 79 | \fill[PrimaryC!10!BackgroundC] (0, \beamer@scu@len@authorhigh)% 80 | -- (\beamer@scu@len@authorwidthmin, \beamer@scu@len@authorhigh)% 81 | -- ++ (0.5\beamer@scu@len@authorheight, -\beamer@scu@len@authorheight)% 82 | -- (0, \dimexpr\beamer@scu@len@authorhigh-\beamer@scu@len@authorheight\relax)% 83 | -- cycle;% 绘制 author 框 84 | \fill[BackgroundC] (0, \beamer@scu@len@authorhigh)% 85 | -- (\dimexpr\beamer@scu@len@authorwidthmin+1.56pt\relax, \beamer@scu@len@authorhigh)% 86 | -- ++ (\dimexpr0.5\beamer@scu@len@titletoauthor\relax, -\beamer@scu@len@titletoauthor)% 87 | -- ++ (-1.6pt, 0)% 88 | -- ++ (-\dimexpr0.5\beamer@scu@len@titletoauthor-0.8pt\relax, \dimexpr\beamer@scu@len@titletoauthor-1.6pt\relax)% 89 | -- (0, \dimexpr\beamer@scu@len@authorhigh-1.6pt\relax) -- cycle;% 绘制装饰线 90 | \node[anchor=north west, inner sep=0pt, outer sep=0pt]% 91 | at (16pt, \beamer@scu@len@authortexthigh) (AuthorText) {\usebox{\beamer@scu@authorbox}};% 绘制 author | institute 文字 92 | \node[anchor=south west, inner sep=0pt, outer sep=0pt] at (16pt, 14pt) {\usebeamerfont{date}\insertdate};% 绘制 date 文字 93 | \node[anchor=south east, inner sep=0pt, outer sep=0pt] at (\dimexpr\paperwidth-16pt\relax, 14pt) {\pgfuseimage{verify}};% 绘制 verify 校训 94 | % \node[anchor=south west,draw] at (0, 0) {00}; 95 | \end{tikzpicture}% 96 | \end{beamercolorbox}% 97 | } 98 | \setbeamertemplate{title page}[SCU title page theme] 99 | % ---------------- 100 | 101 | 102 | %%%% ---------------------------------------------------------------- 103 | \endinput 104 | %%%% ---------------------------------------------------------------- 105 | % End of file `beamerinnerthemescu.sty'. -------------------------------------------------------------------------------- /beamerouterthemescu.sty: -------------------------------------------------------------------------------- 1 | % This is file `beamerouterthemescu.sty'. 2 | % Copyright (C) 2021-2024 by Linrong Wu. 3 | % Version: 2024/10/31 v1.3e (Original Version: 2024/04/16 v1.3c). 4 | % 5 | % This file may be distributed and/or modified 6 | % 7 | % 1. under the LaTeX Project Public License and/or 8 | % 2. under the GNU Public License. 9 | % 10 | % See the file doc/licenses/LICENSE for more details. 11 | % 12 | % 本文件为 SCU_Beamer_Slide-demo 外部主题宏包文件. 13 | % !请勿轻易改动此文档中代码. 14 | %%%% ---------------------------------------------------------------- 15 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] 16 | \ProvidesPackage{beamerouterthemescu}[2024/10/31 v1.3e, SCU Beamer Theme(Outer Theme)] 17 | %%%% ---------------------------------------------------------------- 18 | 19 | 20 | % ---------------- 21 | % Declare of Options 22 | % Confirmed in v1.3e(2024/10/31). 23 | % Established in v1.3c(2024/04/16), v1.3e(2024/10/31). 24 | % ---------------- 25 | % CMD:: \DeclareOptionBeamer - 声明参数. 26 | % CMD:: \ExecuteOptionsBeamer - 预执行参数. 27 | % CMD:: \ProcessOptionsBeamer - 处理参数. 28 | % ---------------- 29 | % KEY:: Miniframes. 30 | % VALUE:: follow | separate | negate. 31 | \DeclareOptionBeamer{Miniframes}{\def\beamer@scu@Miniframes{#1}} 32 | % KEY:: NavigationTool. 33 | % VALUE:: negate | 1 | 2 | 3 | 1-2 | 1-3 | 2-3 | 1-2-3. 34 | \DeclareOptionBeamer{NavigationTool}{\def\beamer@scu@NavigationTool{#1}} 35 | 36 | \ExecuteOptionsBeamer{% 37 | Miniframes=follow,% 38 | NavigationTool=1-2-3% 39 | } 40 | \ProcessOptionsBeamer 41 | % ---------------- 42 | 43 | 44 | % ---------------- 45 | % Declare of Packages 46 | % Confirmed in v1.3d(2024/05/18). 47 | % Established in v1.3c(2024/04/16). 48 | % Updated in v1.3d(2024/05/18). 49 | % ---------------- 50 | % CMD:: \usetikzlibrary - 调用 TikZ 库. 51 | % ---------------- 52 | % \usetikzlibrary{positioning, calc} 53 | \usetikzlibrary{calc} 54 | % ---------------- 55 | 56 | 57 | \mode 58 | 59 | 60 | % ---------------- 61 | % Beamer Theme Headline Layout 62 | % Confirmed in v1.3e(2024/10/31). 63 | % Established in v1.0a(2021/12/03). 64 | % Updated in v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3b(2022/04/13), v1.3c(2024/04/16), v1.3d(2024/05/18), v1.3e(2024/10/31). 65 | % ---------------- 66 | % 于 v1.3c(2024/04/16) 与 Headline TikZ 绘图部分合并, 强化代码关联度. 67 | % 于 v1.3e(2024/10/31) 修改 beamerthemescu.sty 中 Miniframe Layout 并合并于此. 68 | % ---------------- 69 | % CMD:: \newdimen - 创建长度寄存器. 70 | % CMD:: \newsavebox - 创建盒子. 71 | % ---------------- 72 | % FORMAT:: section [cn - ALL; en - CURRENT] | subsection (with mini-frames). 73 | % ---------------- 74 | % DIMEN:: 节导航栏宽度 - secbar. 75 | \newdimen\beamer@scu@len@secbar 76 | \if\EqualOptionsBeamer{LanguageMode}{cn}% 77 | \beamer@scu@len@secbar=0.64\paperwidth% 78 | \else\if\EqualOptionsBeamer{LanguageMode}{en}% 79 | \beamer@scu@len@secbar=0.52\paperwidth% 80 | \fi\fi 81 | % DIMEN:: 小节与标题间分隔线 - sectotitleline. 82 | \newdimen\beamer@scu@len@sectotitleline 83 | \beamer@scu@len@sectotitleline=\dimexpr\the\paperwidth-\beamer@scu@len@secbar-20pt\relax 84 | 85 | % savebox 存储 TikZ Headline 背景底图绘图. 86 | \newsavebox{\beamer@scu@headlinebox} 87 | \sbox{\beamer@scu@headlinebox}{% 88 | \begin{tikzpicture}% 89 | % 绘图辅助节点定义. 90 | \coordinate (LineNorthWest) at (0, -11pt);% 小节-标题分隔线 西北节点 91 | \coordinate (LineSouthWest) at (0, -13pt);% 小节-标题分隔线 西南节点 92 | \coordinate (LineSouthEast) at (\beamer@scu@len@sectotitleline, -13pt);% 小节-标题分隔线 东北节点 93 | \coordinate (SecbarNorthEast) at (\the\paperwidth, 0);% 章节栏 东北节点 94 | \coordinate (SecbarSouthEast) at (\the\paperwidth, -13pt);% 章节栏 东南节点 95 | \coordinate (SecbarSouthWest) at ([xshift=-\beamer@scu@len@secbar]SecbarSouthEast);% 章节栏 西南节点 96 | \coordinate (SecbarNorthWest) at ([xshift=-6.5pt, yshift=13pt]SecbarSouthWest);% 章节栏 西南节点 97 | \coordinate (AdornDarkNorthWest) at ([xshift=-4pt]SecbarNorthWest);% 深色装饰 西北节点 98 | \coordinate (AdornDarkSouthEast) at ([xshift=3.5pt, yshift=-7pt]SecbarNorthWest);% 深色装饰 东南节点 99 | \coordinate (AdornLightNorthWest) at ([xshift=-4pt]AdornDarkSouthEast);% 浅色装饰 西北节点 100 | \coordinate (AdornLightSouthEast) at ([xshift=2pt, yshift=-4pt]AdornDarkSouthEast);% 浅色装饰 东南节点 101 | % 颜色图形绘制. 102 | \fill[PrimaryC] (SecbarNorthEast) -- (SecbarSouthEast)% 103 | -- (SecbarSouthWest) -- (SecbarNorthWest) -- cycle;% 章节栏背景 104 | \fill[IntersperseC] (AdornDarkNorthWest) -- (SecbarNorthWest)% 105 | -- (AdornDarkSouthEast) -- ++ (-4pt, 0) -- cycle;% 深色装饰 106 | \fill[AuxiliaryC] (AdornLightNorthWest) -- (AdornDarkSouthEast)% 107 | -- (AdornLightSouthEast) -- ++ (-4pt, 0) -- cycle;% 浅色装饰 108 | \fill[PrimaryC] (LineNorthWest) -- (LineSouthWest)% 109 | -- (LineSouthEast) -- ++ (-1pt, 2pt) -- cycle;% 小节与标题间分隔线 110 | \end{tikzpicture}% 111 | }% 112 | 113 | % 插入章节栏水平导航. 114 | \def\insert@secbar#1{% 115 | % #1:: en LanguageMode 下尾部距离. 116 | \usebeamerfont{section in head/foot}% 117 | \usebeamercolor[fg]{section in head/foot}% 118 | \if\EqualOptionsBeamer{LanguageMode}{cn}% 119 | \insertsectionnavigationhorizontal{\beamer@scu@len@secbar}{}{}% 120 | \else\if\EqualOptionsBeamer{LanguageMode}{en}% 121 | \insertsectionhead\hspace*{#1}% 122 | \fi\fi% 123 | } 124 | 125 | % 插入小节标题. 126 | \def\insert@subsec{% 127 | \usebeamerfont{subsection in head/foot}% 128 | \usebeamercolor[fg]{subsection in head/foot}% 129 | \insertsubsectionhead% 130 | } 131 | 132 | % 插入小节迷你帧 [采用 \slideentry 方式生成]. 133 | %% 参考:: 134 | %% Beamer Class beamerbasenavigation.sty - definition of \slideentry 135 | %% https://tex.stackexchange.com/questions/170122/simple-mini-frames-under-frame-title-beamer 136 | %% https://tex.stackexchange.com/questions/23151/beamer-infolines-outer-theme-with-miniframe-bullets-only-for-the-current-section 137 | %% https://tex.stackexchange.com/questions/308343/how-to-create-mini-sections-mini-subsections-and-mini-frames-in-beamer-presenta 138 | \def\insert@subsecminiframes#1#2{% 139 | % #1:: baselineskip. 140 | % #2:: mini-frames space. 141 | \setlength{\baselineskip}{#1}% 调整 baselineskip 以减小行间距 142 | % \usebeamerfont{subsection in head/foot}% 注释 与上行冲突 143 | \usebeamercolor[fg]{subsection in head/foot}% 144 | \def\sectionentry##1##2##3##4##5{}% 145 | \def\slideentry##1##2##3##4##5##6{% 146 | %section number, subsection number, slide number, first/last frame, last subsection, part number 147 | \ifnum##6=\c@part\ifnum##1=\c@section\ifnum##2>0\ifnum##3>0% 148 | \beamer@link(##4){% 149 | \usebeamerfont{mini frames}% 150 | \ifnum\c@subsection=##2% 151 | \usebeamercolor{mini frame}% 152 | \ifnum\c@subsectionslide<##3% 153 | \usebeamertemplate{mini frame in current subsection}% 154 | \hskip#2%\beamer@minisliderowhilight% 155 | \else% 156 | \usebeamertemplate{mini frame}% 157 | \hskip#2%\beamer@minislidehilight% 158 | \fi% 159 | \fi}% 160 | \hskip0pt% 避免换行导致超链接中断 161 | \fi\fi\fi\else% 162 | \fakeslideentry{##1}{##2}{##3}{##4}{##5}{##6}% 163 | \fi% 164 | \ignorespaces% 165 | }% 166 | \setbox\beamer@sectionbox=\hbox{}% 167 | \hskip0pt\dohead% 168 | \box\beamer@sectionbox% 169 | } 170 | % 插入小节帧进度 [已废除 v1.3e(2024/10/31), 此处做整合存档]. 171 | %% 参考:: 172 | %% https://tex.stackexchange.com/questions/314847/beamer-theme-antibes-plus-navigation-bar-with-circles-for-subsections 173 | % % 计数器 - 小节起始页. 174 | % \newcount\beamer@subsectionstartframe% 175 | % \beamer@subsectionstartframe=2% 176 | % % 使用 etoolbox 宏包修改 `beamerbasesection.sty' 中 \beamer@subsection 命令. 177 | % \apptocmd{\beamer@subsection}{% 178 | % \addtocontents{nav}{\protect\headcommand{% 179 | % \protect\beamer@subsectionframes{% 180 | % \the\beamer@subsectionstartframe% 181 | % }{\the\c@framenumber}% 182 | % }}% 183 | % }{}{}% 184 | % \apptocmd{\beamer@subsection}{% 185 | % \beamer@subsectionstartframe=\c@framenumber\relax% 186 | % }{}{}% 187 | % document 结束时设置 \headcommand 写入项. (\noexpand 表示不展开命令) 188 | % \AtEndDocument{% 189 | % \immediate\write\@auxout{\string\@writefile{nav}{% 190 | % \noexpand\headcommand{% 191 | % \noexpand\beamer@subsectionframes{% 192 | % \the\beamer@subsectionstartframe% 193 | % }{\the\c@framenumber}}% 194 | % }}% 195 | % }{}{}% 196 | % % 定义小节结束页命令. (实际此处设置为后续小节起始帧, document 结束时设置为结束帧) 197 | % \def\beamer@subsectionendframe{2} 198 | % \def\beamer@subsectionframes#1#2{% 199 | % \ifnum\c@framenumber<#1% 200 | % \else% 201 | % \ifnum\c@framenumber>#2% 202 | % \else% 203 | % \gdef\beamer@subsectionendframe{#2}% 204 | % \fi% 205 | % \fi% 206 | % }% ------ 207 | % % 按照 beamer 方式储存命令. 208 | % \newcommand\insertsubsectionendframe{\beamer@subsectionendframe}% 209 | % % 计数器 - 小节中当前幻灯帧数. 210 | % \newcounter{subsectioncurrentframe}% 211 | % % 计数器 - 小节中总幻灯帧数. 212 | % \newcounter{subsectiontotalframes}% 213 | % % 长度 - 迷你帧间距. 214 | % \newlength{\beamer@scu@miniframesspace}% ------ 215 | % \def\insertsubsectionminiframes#1#2#3{% 216 | % % #1:: 迷你帧间距 - 小节幻灯帧数不大于10. 217 | % % #2:: 迷你帧间距 - 小节幻灯帧数大于10且不大于15. 218 | % % #3:: 迷你帧间距 - 小节幻灯帧数大于15. 219 | % % 小节当前幻灯帧数设置. 220 | % \setcounter{subsectioncurrentframe}{\insertframenumber}% 221 | % \addtocounter{subsectioncurrentframe}{1}% 222 | % \addtocounter{subsectioncurrentframe}{-\beamer@subsectionstartpage}% 223 | % % 小节总幻灯帧数设置. 224 | % \setcounter{subsectiontotalframes}{\insertsubsectionendframe}% 225 | % \addtocounter{subsectiontotalframes}{0}% 226 | % \addtocounter{subsectiontotalframes}{-\beamer@subsectionstartpage}% 227 | % % 迷你帧间距设置. 228 | % \ifnum\c@subsectiontotalframes>15% 229 | % \setlength{\beamer@scu@miniframesspace}{#3}% 230 | % \else\ifnum\c@subsectiontotalframes>10% 231 | % \setlength{\beamer@scu@miniframesspace}{#2}% 232 | % \else% 233 | % \setlength{\beamer@scu@miniframesspace}{#1}% 234 | % \fi\fi% 235 | % % foreach 循环控制 mini-frames 输出. 236 | % \ifnum\c@subsectiontotalframes>1% 237 | % \foreach \i in {1,...,\c@subsectiontotalframes}{% 238 | % \usebeamercolor{mini frame}% 239 | % % 帧数小于当前帧, 则输出实心圆, 否则输出空心圆. 240 | % \ifnum\i<\numexpr\c@subsectioncurrentframe+1% 241 | % \usebeamertemplate{mini frame}% 242 | % \else% 243 | % \usebeamertemplate{mini frame in current section}% 244 | % \fi% 245 | % \ifnum\i<\c@subsectiontotalframes% 246 | % \hskip\beamer@scu@miniframesspace% 247 | % \fi% 248 | % % \ifnum\i=\the\numexpr(\c@subsectiontotalframes+1)/2\relax% 249 | % % \\[-3pt]% 250 | % % \fi% 251 | % }% 252 | % \fi% 253 | % }% ------ 254 | % \def\insert@miniframes{% 255 | % \setlength{\baselineskip}{3.8pt}% 256 | % % \usebeamerfont{subsection in head/foot}% 257 | % \usebeamercolor[fg]{subsection in head/foot}% 258 | % \insertsubsecminiframes{1.8pt}{1.5pt}{1.2pt}% 259 | % } 260 | 261 | % 页眉样式定义. 262 | \def\beamer@scu@headline{% 263 | \begin{tikzpicture}[overlay, remember picture]% 264 | % 绘图辅助节点定义. 265 | \coordinate (NorthEast) at (current page.north east);% 东北节点 266 | \coordinate (NorthWest) at (current page.north west);% 西北节点 267 | % 图形文字绘制. 268 | \node[anchor=north west, inner sep=0pt, outer sep=0pt] at (NorthWest) {% 269 | \usebox{\beamer@scu@headlinebox}};% 绘制 headline 背景底图 270 | \node[left, inner sep=0pt, outer sep=0pt,% 271 | yshift=-7pt] at (NorthEast) {\insert@secbar{9pt}};% 绘制章节栏水平导航 272 | \node[right, inner sep=0pt, outer sep=0pt,% 273 | xshift=9pt, yshift=-5.75pt] at (NorthWest) (Subsec) {\insert@subsec};% 绘制小节标题 274 | \if\EqualOptionsBeamer{Miniframes}{follow}% 275 | \path let \p{subsec} = (Subsec.east)% 276 | in node[right, inner sep=0pt, outer sep=0pt,% 277 | xshift=6pt, yshift=-.5pt] at (\p{subsec}) {\parbox{% 278 | \dimexpr\beamer@scu@len@sectotitleline-\x{subsec}+4pt\relax}{\raggedright\insert@subsecminiframes{3.8pt}{1.6pt}}};% 绘制小节迷你帧 279 | % \node[right=6pt of Subsec, inner sep=0pt, outer sep=0pt] {\insert@miniframes};% 绘制小节帧进度 280 | \else\if\EqualOptionsBeamer{Miniframes}{separate}% 281 | \node[anchor=north east, inner sep=0pt, outer sep=0pt,% 282 | xshift=-7.2pt, yshift=-15pt] at (NorthEast) {% 283 | \insert@subsecminiframes{3.8pt}{1.6pt}};% 绘制小节迷你帧 284 | \else\if\EqualOptionsBeamer{Miniframes}{negate}% 285 | \relax% 286 | \fi\fi\fi% 287 | \end{tikzpicture}% 288 | } 289 | 290 | % 设置 Headline 主题模板. 291 | \defbeamertemplate*{headline}{SCU headline theme}{% 292 | \begin{beamercolorbox}[wd=\paperwidth,ht=11.5pt]{}% 293 | \beamer@scu@headline% 294 | \end{beamercolorbox}% 295 | } 296 | \setbeamertemplate{headline}[SCU headline theme] 297 | % ---------------- 298 | 299 | 300 | % ---------------- 301 | % Beamer Theme Frametitle Layout 302 | % Confirmed in v1.3c(2024/04/16). 303 | % Established in v1.0a(2021/12/03). 304 | % Updated in v1.2a(2022/03/10), v1.3b(2022/04/13), v1.3c(2024/04/16). 305 | % ---------------- 306 | % FORMAT:: frametitle | framesubtitle. 307 | % ---------------- 308 | % 设置 Frametitle 主题模板. 309 | \defbeamertemplate*{frametitle}{SCU frametitle theme}{% 310 | \ifx\insertframesubtitle\@empty% 311 | \begin{beamercolorbox}[wd=\paperwidth,% 312 | ht=2.5ex, dp=.5ex, leftskip=8.6pt]{}%{frametitle} 313 | \usebeamerfont{frametitle}% 314 | \usebeamercolor[fg]{frametitle}% 315 | \insertframetitle% 316 | \end{beamercolorbox}% 317 | \else% 318 | \begin{beamercolorbox}[wd=\paperwidth,% 319 | ht=2.5ex, dp=.5ex, leftskip=8.6pt]{}%{frametitle} 320 | \usebeamerfont{frametitle}% 321 | \usebeamercolor[fg]{frametitle}% 322 | \insertframetitle~% 323 | \textcolor{SecondaryAuxiliaryC}{\rule[-.2ex]{.08em}{1.8ex}}~% 324 | \usebeamerfont{framesubtitle}% 325 | \usebeamercolor[fg]{framesubtitle}% 326 | \insertframesubtitle% 327 | \end{beamercolorbox}% 328 | \fi% 329 | } 330 | \setbeamertemplate{frametitle}[SCU frametitle theme] 331 | % ---------------- 332 | 333 | 334 | % ---------------- 335 | % Beamer Theme Footline Layout 336 | % Confirmed in v1.3e(2024/10/31). 337 | % Established in v1.0a(2021/12/03). 338 | % Updated in v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3b(2022/04/13), v1.3c(2024/04/16), v1.3e(2024/10/31). 339 | % ---------------- 340 | % 于 v1.3c(2024/04/16) 与 Footline TikZ 绘图部分合并, 强化代码关联度 341 | % ---------------- 342 | % CMD:: \newdimen - 创建长度寄存器. 343 | % CMD:: \newcount - 创建计数器. 344 | % CMD:: \newsavebox - 创建盒子. 345 | % ---------------- 346 | % FORMAT:: NAME of SCU | author | short title | navigation tool | framenumber. 347 | % ---------------- 348 | % DIMEN:: Acrobat 页面跳转按钮宽度 - GoToPage. 349 | \newdimen\beamer@scu@len@GoToPage 350 | % DIMEN:: ProgressBar Width - probarwd. 351 | \newdimen\beamer@scu@len@probarwd 352 | \beamer@scu@len@probarwd=\dimexpr\the\paperwidth-48pt\relax 353 | % DIMEN:: ProgressBar auxiliary dimension - probartmpdim. 354 | \newdimen\beamer@scu@len@probartmpdim 355 | 356 | % COUNT:: 当前帧页码(正文/附录) - currentframe. 357 | \newcount\beamer@scu@count@currentframe 358 | % COUNT:: 当前总页码(正文/附录) - totalframe. 359 | \newcount\beamer@scu@count@totalframe 360 | 361 | % savebox 存储 TikZ Footline 背景底图绘图. 362 | \newsavebox{\beamer@scu@footlinebox} 363 | \sbox{\beamer@scu@footlinebox}{% 364 | \begin{tikzpicture}% 365 | % 绘图辅助节点定义. 366 | \coordinate (LogoNorthWest) at (0, 12pt);% Logo 西北节点 367 | \coordinate (LogoNorthEast) at (48pt, 12pt);% Logo 东北节点 368 | \coordinate (LogoSouthEast) at (54pt, 0);% Logo 东南节点 369 | \coordinate (AdornLightSouthEast) at (58pt, 0);% 浅色装饰 东南节点 370 | \coordinate (AdornLightNorthEast) at (55.5pt, 5pt);% 浅色装饰 东北节点 371 | \coordinate (AdornLightNorthWest) at (51.5pt, 5pt);% 浅色装饰 西北节点 372 | \coordinate (AdornDarkNorthEast) at (53.5pt, 9pt);% 深色装饰 东北节点 373 | \coordinate (AdornDarkNorthWest) at (49.5pt, 9pt);% 深色装饰 西北节点 374 | % 颜色图形绘制. 375 | \fill[PrimaryC] (0, 0) -- (LogoNorthWest)% 376 | -- (LogoNorthEast) -- (LogoSouthEast) -- cycle;% Logo 背景 377 | \node[inner sep=0pt, outer sep=0pt] at (25pt, 6pt) {\pgfuseimage{lg}}; 378 | \fill[AuxiliaryC] (LogoSouthEast) -- (AdornLightNorthWest)% 379 | -- (AdornLightNorthEast) -- (AdornLightSouthEast) -- cycle;% 浅色装饰 380 | \fill[IntersperseC] (AdornLightNorthWest) -- (AdornDarkNorthWest)% 381 | -- (AdornDarkNorthEast) -- (AdornLightNorthEast) -- cycle;% 深色装饰 382 | \end{tikzpicture}% 383 | }% 384 | 385 | % 设置帧页码计数器(正文/附录). 386 | \def\beamer@scu@framenumber{% 387 | \ifbeamer@inappendix% 附录帧取附录帧页码 388 | \beamer@scu@count@currentframe=\insertframenumberinappendix% 389 | \beamer@scu@count@totalframe=\insertappendixframenumber% 390 | \else% 正文帧取除开附录帧页码 391 | \beamer@scu@count@currentframe=\insertframenumber% 392 | \beamer@scu@count@totalframe=\insertmainframenumber% 393 | \fi% 394 | } 395 | 396 | % 插入帧页码. 397 | \def\insert@framenumber{% 页码显示为"x / total" 398 | \usebeamerfont{framenumber in head/foot}% 399 | \usebeamercolor[fg]{framenumber in head/foot}% 400 | \usebeamertemplate*{page number in head/foot}% 401 | } 402 | 403 | % 插入带有 Acrobat 页面跳转按钮的页码. 404 | \def\insert@framenumberwithbutton{% 405 | % \raisebox{0pt}[0pt][0pt]{\rlap{xx}xx}% 406 | \Acrobatmenu{GoToPage}{% 407 | \usebeamerfont{framenumber in head/foot}% 408 | \usebeamercolor[fg]{framenumber in head/foot}% 409 | \the\beamer@scu@count@currentframe}% 410 | \usebeamerfont{framenumber in head/foot}% 411 | \textcolor{SecondaryAuxiliaryC}{~\scalebox{1.33}[0.9]{\faCaretRight}\,\the\beamer@scu@count@totalframe}% 412 | } 413 | 414 | % Compute Navigation Tool num. 415 | \if\EqualOptionsBeamer{NavigationTool}{negate}% 416 | \relax% 417 | \else% 418 | \StrSubstitute{\beamer@scu@NavigationTool}{-}{, }[\NavigationTool@group] 419 | \StrCount{\NavigationTool@group}{,}[\NavigationTool@len] 420 | \fi% 421 | % 插入 Navigation Tools. 422 | \def\insert@footnavigationtool#1#2{% 423 | % #1:: 组内工具间距. 424 | % #2:: 组间工具间距. 425 | \usebeamercolor[fg]{palette quaternary}%\tiny% 426 | \foreach \group [count=\c] in \NavigationTool@group {% 427 | \IfInteger{\group}{% 428 | \ifnum\group=1% 429 | % 上一小节 | 当前小节开始 | 下一小节. 430 | \setfontscu{5}% 431 | \hyperlinksubsectionendprev{\faCaretLeft}\hskip#1% 432 | \hyperlinksubsectionstart{\faStream}\hskip#1% 433 | \hyperlinksubsectionstartnext{\faCaretRight}% 434 | \else\ifnum\group=2% 435 | % 初始页 | 查找 | 结尾页. 436 | \setfontscu{5}% 437 | \hyperlinkpresentationstart{\faCaretLeft\hskip-.05em\faCaretLeft}\hskip#1% 438 | \setfontscu{4.5}% 439 | \Acrobatmenu{Find}{\faSearch}\hskip#1% 440 | \setfontscu{5}% 441 | \hyperlinkpresentationend{\faCaretRight\hskip-.05em\faCaretRight}% 442 | \else\ifnum\group=3% 443 | % 上一视图 | 全屏 | 下一视图. 444 | \setfontscu{4.5}% 445 | \Acrobatmenu{GoBack}{\faReply}\hskip#1% 446 | \setfontscu{5}% 447 | \Acrobatmenu{FullScreen}{\faExpand}\hskip#1% 448 | \setfontscu{4.5}% 449 | \Acrobatmenu{GoForward}{\reflectbox{\faReply}}% 450 | \fi\fi\fi% 451 | \ifnum\c<\numexpr\NavigationTool@len+1\relax% 452 | \hskip#2% 453 | \fi% 454 | }{% 455 | \PackageError{beamerthemescu}{% 456 | Improper usage: `\protect\usetheme[...]{scu}' option [NavigationTool=xxx].\MessageBreak% 457 | `NavigationTool' should be set to `nagate'\MessageBreak% 458 | or an option composed of numbers 1 to 3 and the symbol `-', such as `2', `1-3', and `1-2-3'% 459 | }{% 460 | `NavigationTool' should be set to `nagate' or an option composed of numbers 1 to 3 and the symbol `-', such as `2', `1-3', and `1-2-3'% 461 | }% 462 | }% 463 | }% 464 | } 465 | 466 | % 页脚样式定义. 467 | \def\beamer@scu@footline{% 468 | \begin{tikzpicture}[overlay]% 469 | % 绘图辅助节点定义. 470 | \coordinate (SouthWest) at (current page.south west);% 西南节点 471 | \coordinate (SouthEast) at (current page.south east);% 东南节点 472 | % \coordinate (SouthWest) at (0, 0);% 西南节点 473 | % \coordinate (SouthEast) at (0, \paperwidth);% 东南节点 474 | % 图形文字绘制. 475 | \node[anchor=south west, inner sep=0pt, outer sep=0pt] at (SouthWest) {\usebox{\beamer@scu@footlinebox}};% 绘制 footline 背景底图 476 | \node[right, inner sep=0pt, outer sep=0pt,% 477 | xshift=64pt, yshift=4.5pt] at (SouthWest) {% 478 | \usebeamerfont{author in head/foot}% 479 | \usebeamercolor[fg]{author in head/foot}% 480 | \insertshortauthor\,% 481 | \usebeamerfont{title in head/foot}% 482 | \textcolor{SecondaryAuxiliaryC}{·\,}% 483 | \usebeamercolor[fg]{title in head/foot}% 484 | \insertshorttitle% 485 | };% 绘制 Beamer 标题 486 | \node[left, inner sep=0pt, outer sep=0pt,% 487 | xshift=-9pt, yshift=4.5pt] at (SouthEast) (FootlinePage) {% 488 | \insert@framenumberwithbutton};% 绘制带有 Acrobat 页面跳转按钮的页码 489 | \if\EqualOptionsBeamer{NavigationTool}{negate}% 490 | \relax% 491 | \else% 492 | \node[left, inner sep=0pt, outer sep=0pt,% 493 | xshift=-6pt] at (FootlinePage.west) {% 494 | \insert@footnavigationtool{1.6pt}{4.2pt}};% 绘制 Navigation Tools 495 | \fi% 496 | \end{tikzpicture}% 497 | } 498 | 499 | % 进度条样式定义. 500 | \def\beamer@scu@progressbar#1#2#3{% 501 | % #1:: 未放映部分颜色. 502 | % #2:: 已放映部分颜色. 503 | % #3:: 辅助色. 504 | \beamer@scu@len@probartmpdim=\beamer@scu@len@probarwd% 505 | \divide\beamer@scu@len@probartmpdim by 1000% 506 | \multiply\beamer@scu@len@probartmpdim by \beamer@scu@count@currentframe% 507 | \divide\beamer@scu@len@probartmpdim by \beamer@scu@count@totalframe% 508 | \multiply\beamer@scu@len@probartmpdim by 1000% 509 | \begin{tikzpicture}[very thin, overlay, remember picture]% 510 | % 绘图辅助节点定义. 511 | \coordinate (SouthWest) at (current page.south west);% 西南节点 512 | \coordinate (ProBar) at ([xshift=48pt, yshift=9pt]SouthWest);% 初始节点 513 | % 图形绘制. 514 | \fill[#1] (ProBar) rectangle ++ (\beamer@scu@len@probarwd, 3pt);% 未放映部分 515 | \fill[#2] ([yshift=9pt]SouthWest) rectangle ++ (48pt, 3pt); 516 | \fill[#2] (ProBar) rectangle ++ (\beamer@scu@len@probartmpdim, 3pt);% 已放映部分 517 | \fill[#3, draw=#2, line width=.48pt] ([xshift=\beamer@scu@len@probartmpdim, yshift=1.5pt]ProBar) circle (1.26pt); 518 | \end{tikzpicture}% 519 | } 520 | 521 | % 设置 Page Number 包含附录模式. 522 | % \setbeamertemplate{page number in head/foot}[appendixframenumber] 523 | 524 | % 设置 Footline 主题模板. 525 | \defbeamertemplate*{footline}{SCU footline theme}{% 526 | \begin{beamercolorbox}[wd=\paperwidth,ht=12pt]{}% 527 | \beamer@scu@framenumber% 优先调用计数器设置 528 | \beamer@scu@progressbar{AuxiliaryC}{PrimaryC}{BackgroundC}% 529 | \beamer@scu@footline% 530 | \end{beamercolorbox}% 531 | } 532 | \setbeamertemplate{footline}[SCU footline theme] 533 | % ---------------- 534 | 535 | 536 | % ---------------- 537 | % Beamer Theme Navigation Symbols Layout 538 | % ---------------- 539 | %\addtobeamertemplate{footline}{% 540 | % \leavevmode% 541 | % \hbox{% 542 | % \begin{beamercolorbox}[wd=0.4\paperwidth,ht=3ex,dp=.75ex,right,rightskip=1.2em]{frametitle}% 543 | % \usebeamercolor[fg]{navigation symbols}\insertslidenavigationsymbol% 544 | % \insertframenavigationsymbol% 545 | % \insertsubsectionnavigationsymbol% 546 | % \insertsectionnavigationsymbol% 547 | % \insertdocnavigationsymbol% 548 | % \insertbackfindforwardnavigationsymbol% 549 | % \end{beamercolorbox}% 550 | % }} 551 | % ---------------- 552 | 553 | 554 | %%%% ---------------------------------------------------------------- 555 | \endinput 556 | %%%% ---------------------------------------------------------------- 557 | % End of file `beamerouterthemescu.sty'. -------------------------------------------------------------------------------- /beamerthemescu.sty: -------------------------------------------------------------------------------- 1 | % This is file `beamerthemescu.sty'. 2 | % Copyright (C) 2021-2024 by Linrong Wu. 3 | % Version: 2024/10/31 v1.3e (Original Version: 2021/11/30 v1.0a). 4 | % 5 | % This file may be distributed and/or modified 6 | % 7 | % 1. under the LaTeX Project Public License and/or 8 | % 2. under the GNU Public License. 9 | % 10 | % See the file doc/licenses/LICENSE for more details. 11 | % 12 | % Provide options: 13 | % MathFont = LM | XITS 14 | % ColorDisplay = JXred | BSblue | Custom 15 | % CodeDisplay = listing | minted 16 | % MintedStyle = lightmode | darkmode | 17 | % BlockDisplay = colorful | followtheme | allgrey 18 | % Miniframes = follow | separate | negate 19 | % LanguageMode = cn | en 20 | % BIBMode = biber | none 21 | % BIBStyle = biber-gb7714 22 | % ContentMuticols = true | false 23 | % Background = true | false 24 | % 25 | % 本文件为 SCU_Beamer_Slide-demo 宏包文件. 26 | % !请勿轻易改动此文档中代码. 27 | %%%% ---------------------------------------------------------------- 28 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] 29 | \ProvidesPackage{beamerthemescu}[2024/10/31 v1.3e, SCU Beamer Theme(Main Theme)] 30 | %%%% ---------------------------------------------------------------- 31 | 32 | 33 | % ---------------- 34 | % Declare of Commands 35 | % Confirmed in v1.3e(2024/10/31). 36 | % Established in v1.3b(2022/04/13). 37 | % Updated in v1.3e(2024/10/31). 38 | % ---------------- 39 | \def\mycopyright{\vspace{2ex}Copyright\enspace\copyright\enspace2021-2024 by LR Wu.}% 版权声明. 40 | \def\myestablish#1#2{Establish: \textcolor{scugreen}{#1 (#2)}} 41 | \def\myupdate#1#2{Update: \textcolor{scugreen}{#1 (#2)}} 42 | \def\kvtcb@label@sep{:}% tcolorbox 中 label 分隔符. 43 | 44 | % 定义执行命令. 修改自 sjtubeamer. 45 | \def\EqualOptionsBeamer{% 46 | \relax\fi\ifEqualOptionsBeamer% 47 | } 48 | \def\ifEqualOptionsBeamer#1#2{% 49 | % #1:: Option - Key. 50 | % #2:: Option - Value. 51 | \newif\ifoption@tmp% 52 | \edef\optionkey@tmp{% 53 | \csname beamer@scu@#1\endcsname% 54 | }% 55 | \edef\optionvalue@tmp{#2}% 56 | \ifx\optionkey@tmp\optionvalue@tmp\option@tmptrue% 57 | \else\option@tmpfalse\fi% 58 | \ifoption@tmp% 59 | } 60 | 61 | % 定义命令写法. 修改自 lshort-zh-cn. 62 | \DeclareRobustCommand*\cmd[1]{\alert{\texttt{\char`\\#1}}} 63 | \DeclareRobustCommand*\env[1]{\alert{\texttt{#1}}} 64 | \DeclareRobustCommand*\pkg[1]{\alert{\textsf{#1}}} 65 | \DeclareRobustCommand*\cls[1]{\alert{\textsf{#1}}} 66 | \DeclareRobustCommand*\marg{\@ifstar\@marg\@margmeta} 67 | \DeclareRobustCommand*\oarg{\@ifstar\@oarg\@oargmeta} 68 | \DeclareRobustCommand*\Arg[1]{\@meta{#1}} 69 | \def\@oarg#1{\textcolor{scugrey}{\texttt{[#1]}}} 70 | \def\@oargmeta#1{\@oarg{\@meta{#1}}} 71 | \def\@marg#1{\texttt{\{#1\}}} 72 | \def\@margmeta#1{\@marg{\@meta{#1}}} 73 | \def\@meta#1{$\m@th\langle$\textnormal{\textit{#1}}$\m@th\rangle$} 74 | 75 | % 定义字体命令. 76 | \def\setfontscu#1{\fontsize{#1}{4}\selectfont} 77 | % ---------------- 78 | 79 | 80 | % ---------------- 81 | % Declare of Options 82 | % Confirmed in v1.3e(2024/10/31). 83 | % Established in v1.0a(2021/12/03). 84 | % Updated in v1.1a(2021/12/31), v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3b(2022/04/13), v1.3c(2024/04/16), v1.3d(2024/05/18), v1.3e(2024/10/31). 85 | % ---------------- 86 | % CMD:: \DeclareOptionBeamer - 声明参数. 87 | % CMD:: \ExecuteOptionsBeamer - 预执行参数. 88 | % CMD:: \ProcessOptionsBeamer - 处理参数. 89 | % ---------------- 90 | % 定义新的 if. 91 | \newif\ifbeamer@scu@contentmuticols 92 | \newif\ifbeamer@scu@background 93 | 94 | % KEY:: MathFont. 95 | % VALUE:: XITS | LM. 96 | \DeclareOptionBeamer{MathFont}{\def\beamer@scu@MathFont{#1}} 97 | % KEY:: BlockDisplay. 98 | % VALUE:: colorful | followtheme | allgrey. 99 | \DeclareOptionBeamer{BlockDisplay}{\def\beamer@scu@BlockDisplay{#1}} 100 | % KEY:: CodeDisplay. 101 | % VALUE:: minted | listing. 102 | \DeclareOptionBeamer{CodeDisplay}{\def\beamer@scu@CodeDisplay{#1}} 103 | % KEY:: MintedStyle [BASED:: CodeDisplay]. 104 | % VALUE:: lightmode | darkmode | . 105 | \DeclareOptionBeamer{MintedStyle}{\def\beamer@scu@MintedStyle{#1}} 106 | % KEY:: ColorDisplay [PASSTO:: beamercolorthemescu.sty]. 107 | % VALUE:: JXred | BSblue. 108 | \DeclareOptionBeamer{ColorDisplay}{\PassOptionsToPackage{ColorDisplay=#1}{beamercolorthemescu}} 109 | % KEY:: Miniframes [PASSTO:: beamerouterthemescu.sty]. 110 | % VALUE:: follow | separate | negate. 111 | \DeclareOptionBeamer{Miniframes}{\PassOptionsToPackage{Miniframes=#1}{beamerouterthemescu}} 112 | % KEY:: NavigationTool [PASSTO:: beamerouterthemescu.sty]. 113 | % VALUE:: negate | 1 | 2 | 3 | 1-2 | 1-3 | 2-3 | 1-2-3. 114 | \DeclareOptionBeamer{NavigationTool}{\PassOptionsToPackage{NavigationTool=#1}{beamerouterthemescu}} 115 | % KEY:: LanguageMode. 116 | % VALUE:: cn | en. 117 | \DeclareOptionBeamer{LanguageMode}{\def\beamer@scu@LanguageMode{#1}} 118 | % KEY:: BIBMode. 119 | % VALUE:: biber | none. 120 | \DeclareOptionBeamer{BIBMode}{\def\beamer@scu@BIBMode{#1}} 121 | % KEY:: BIBStyle [BASED:: BIBMode]. 122 | % VALUE:: biber-gb7714. 123 | \DeclareOptionBeamer{BIBStyle}{\def\beamer@scu@BIBStyle{#1}} 124 | \DeclareOptionBeamer{ContentMuticols}{\csname beamer@scu@contentmuticols#1\endcsname} 125 | \DeclareOptionBeamer{Background}{\csname beamer@scu@background#1\endcsname} 126 | 127 | %\PassOptionsToClass{aspectratio=169}{beamer} 128 | 129 | \ExecuteOptionsBeamer{% 130 | MathFont=LM,% 131 | BlockDisplay=colorful,% 132 | CodeDisplay=listing,% 133 | ColorDisplay=JXred,% 134 | Miniframes=follow,% 135 | NavigationTool=1-2-3,% 136 | LanguageMode=cn,% 137 | BIBMode=biber,% 138 | ContentMuticols=true,% 139 | Background=true% 140 | } 141 | \ProcessOptionsBeamer 142 | \if\EqualOptionsBeamer{CodeDisplay}{minted}% 143 | \ExecuteOptionsBeamer{MintedStyle=lightmode}% 144 | \fi 145 | \if\EqualOptionsBeamer{BIBMode}{biber}% 146 | \ExecuteOptionsBeamer{BIBStyle=biber-gb7714} 147 | \fi 148 | \ProcessOptionsBeamer 149 | % ---------------- 150 | 151 | 152 | % ---------------- 153 | % Declare of Packages 154 | % Confirmed in v1.3e(2024/10/31). 155 | % Established in v1.3b(2022/04/13). 156 | % Updated in v1.3c(2024/04/16), v1.3d(2024/05/18), v1.3e(2024/10/31). 157 | % ---------------- 158 | % CMD:: \RequirePackage - 调用宏包. 159 | % ---------------- 160 | \if\EqualOptionsBeamer{LanguageMode}{cn} 161 | \RequirePackage[fontset=none]{ctex}% ctex: 提供统一的 LaTeX 中文文档框架. 162 | \else\if\EqualOptionsBeamer{LanguageMode}{en} 163 | \RequirePackage[fontset=none, scheme=plain]{ctex}% ctex: 提供统一的 LaTeX 中文文档框架. 164 | \fi\fi 165 | \RequirePackage{fontspec}% fontspec: 字体设置. 166 | \RequirePackage{amsmath,amsfonts,amssymb} % math equations, symbols 167 | \RequirePackage{mathtools} 168 | \RequirePackage{unicode-math}% unicode-math: OpenType 数学字体. 169 | \RequirePackage{tikz}% tikz: 绘制图像. 170 | \RequirePackage{comment}% comment: 提供注释环境. 171 | \RequirePackage{xparse}% xparse: 指定命令参数. 172 | \RequirePackage{varioref}% varioref: 交叉引用. 173 | \if\EqualOptionsBeamer{LanguageMode}{en}% 174 | \PassOptionsToPackage{english}{cleveref} 175 | \fi 176 | \RequirePackage{cleveref}% cleveref: 交叉引用. 177 | \RequirePackage{tcolorbox}% tcolorbox: 绘制彩色文本框. 178 | \if\EqualOptionsBeamer{CodeDisplay}{minted}% 179 | % minted 临时文件存储在 mintedbuild 文件夹 180 | \PassOptionsToPackage{outputdir=./mintedbuild}{minted} 181 | \RequirePackage{minted}% minted: 代码高亮. 182 | \tcbuselibrary{skins, breakable, xparse, listings, minted} 183 | \PackageWarningNoLine{beamerthemescu}{% 184 | Option [CodeDisplay=minted] is loaded. % 185 | Please add `-shell-escape' and `-8bit' parameters to XeLaTeX} 186 | \else\if\EqualOptionsBeamer{CodeDisplay}{listing}% 187 | \tcbuselibrary{skins, breakable, xparse, listings} 188 | \PackageWarningNoLine{beamerthemescu}{% 189 | Option [CodeDisplay=listing] is loaded. % 190 | If you have configured Python environment, % 191 | you are recommended to set [CodeDisplay=minted] option and % 192 | install Pygments through pip. % 193 | Additionally, add `-shell-escape' and `-8bit' parameters to XeLaTeX} 194 | \fi\fi 195 | \RequirePackage{ifthen}% ifthen: 控制结构语句. 196 | \RequirePackage{fontawesome5}% fontawesome5: 提供可缩放矢量图标. 197 | \RequirePackage{tabularx}% tabularx: 智能表格环境. 198 | \if\EqualOptionsBeamer{BIBMode}{biber}% 199 | \PassOptionsToPackage{backend=biber}{biblatex}% 后端 biber 引擎. 200 | \if\EqualOptionsBeamer{BIBStyle}{biber-gb7714}% 201 | \PassOptionsToPackage{autolang=hyphen,% 202 | style=gb7714-2015,% 203 | gbalign=gb7714-2015,%style=gb7714-2015ms 204 | gbstyle=false, url=false, doi=false, isbn=false,% 205 | sorting=none}{biblatex}% 206 | \fi 207 | \RequirePackage{biblatex}% biblatex: 参考文献. 208 | \else\if\EqualOptionsBeamer{BIBMode}{none}% 209 | \relax 210 | \fi\fi 211 | 212 | \RequirePackage{calc}% biblatex: 参考文献. 213 | % ---------------- 214 | 215 | 216 | \mode 217 | 218 | 219 | % ---------------- 220 | % Some Settings 221 | % ---------------- 222 | %\hyperref{urlcolor=scugreen} 223 | % 调整左右边距. 224 | \setbeamersize{text margin left=0.03\paperwidth, text margin right=0.03\paperwidth}% 0.036, 0.036 225 | % 设置目录深度为 2 (显示至 subsection). 226 | \setcounter{tocdepth}{2} 227 | % 设置图片路径为项目文件夹下 `image' `images' `figure' `figures'. 228 | \graphicspath{{image/}{images/}{figure/}{figures/}{resources/}} 229 | % 半透明化尚未出现的内容. 230 | \setbeamercovered{transparent} 231 | % 导航栏为空. 232 | \beamertemplatenavigationsymbolsempty 233 | % ---------------- 234 | 235 | 236 | % ---------------- 237 | % Theme Layout 238 | % Confirmed in v1.3c(2024/04/16). 239 | % Established in v1.0a(2021/12/03). 240 | % Updated in v1.1a(2021/12/31), v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3b(2022/04/13), v1.3c(2024/04/16). 241 | % ---------------- 242 | % 包含外部主题, 内部主题, 颜色主题. 243 | % ---------------- 244 | % 设置 "SCUname.pdf" 为图片 "logo". 245 | \pgfdeclareimage[width=40pt]% 246 | {lg}{./resources/SCUname.pdf} 247 | % 设置 "SCUname.pdf" 为图片 "logo". 248 | \pgfdeclareimage[height=36pt]% 249 | {lg-name}{./resources/SCUlogo_name.pdf} 250 | \pgfdeclareimage[height=80pt]% 251 | {building}{./resources/SCUbuilding.png} 252 | \pgfdeclareimage[height=30pt]% 253 | {verify}{./resources/SCUverify.png} 254 | % 颜色主题 - scu. 255 | \usecolortheme{scu} 256 | % 外部主题 - scu. 257 | \useoutertheme{scu} 258 | % 内部主题 - scu. 259 | \useinnertheme{scu} 260 | % 取消 itemize 环境编号. 261 | \setbeamertemplate{itemize items}[square] 262 | % 设置 enumerate 环境编号为圆形. 263 | \setbeamertemplate{enumerate items}[square] 264 | % 设置目录中章节编号为圆形. 265 | \setbeamertemplate{sections/subsections in toc}[square] 266 | % 图标题编号. 267 | \setbeamertemplate{caption}[numbered] 268 | % 定理标题编号. 269 | \setbeamertemplate{theorems}[numbered] 270 | % 设置 blocks 区块为 rounded (圆形边框). 271 | \setbeamertemplate{blocks}[rounded] 272 | % 压缩模式. 273 | \beamer@compresstrue 274 | % ---------------- 275 | 276 | 277 | % ---------------- 278 | % Background Layout 279 | % Confirmed in v1.3c(2024/04/16). 280 | % Established in v1.0a(2021/12/03). 281 | % Updated in v1.1a(2021/12/31), v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3c(2024/04/16). 282 | % ---------------- 283 | % 设置了主题背景选项 "background=true" & "background=false". 284 | % 设置了页眉 logo. 285 | % ---------------- 286 | \ifbeamer@scu@background% 287 | % 设置 "background.png" 为图片 "bg". 288 | \pgfdeclareimage[width=\paperwidth]% 289 | {bg}{./resources/background.png} 290 | % 设置图片 "bg" 为背景图片. 291 | \usebackgroundtemplate{\pgfuseimage{bg}} 292 | % 设置 "backgroundofsubsectiontocpage.png" 为图片 "bgofsubsectoc". 293 | \pgfdeclareimage[width=\paperwidth]% 294 | {bgofsubsectoc}{./resources/backgroundofsubsectiontocpage.png} 295 | % 设置 "backgroundoftitlepage.png" 为图片 "bgoftitle". 296 | % \pgfdeclareimage[width=\paperwidth]% 297 | % {bgoftitle}{./resources/backgroundoftitlepage.png} 298 | \pgfdeclareimage[width=\paperwidth]% 299 | {bgoftitle}{./resources/backgroundoftitlepage(Empty).png} 300 | \else% 301 | % 设置 "backgroundoftitlepage(Light).png" 为图片 "bgoftitle". 302 | % \pgfdeclareimage[width=\paperwidth]% 303 | % {bgoftitle}{./resources/backgroundoftitlepage(Light).png} 304 | \pgfdeclareimage[width=\paperwidth]% 305 | {bgoftitle}{./resources/backgroundoftitlepage(Empty).png} 306 | \fi 307 | % ---------------- 308 | 309 | 310 | % ---------------- 311 | % Font Layout 312 | % Confirmed in v1.3d(2024/05/18). 313 | % Established in v1.0a(2021/12/03). 314 | % Updated in v1.1a(2021/12/31), v1.2a(2022/03/10), v1.3d(2024/05/18). 315 | % ---------------- 316 | % 设置了主题数学字体选项 "mathdisplay=XITS" & "mathdisplay=LM". 317 | % ---------------- 318 | %\newfontfamily\cmcsc{cmcsc10.mf} 319 | %\def\scshape{\cmcsc} 320 | %\setmainfont[SmallCapsFont]{cmcsc10.mf} 321 | % 设置无衬线字体为 Computer Modern Unicode Bright 字体族(Opentype 格式). 322 | %\setsansfont{CMU Sans Serif} 323 | \setsansfont{Kurier} 324 | 325 | % 数学字体设置. 326 | \if\EqualOptionsBeamer{MathFont}{XITS}% 327 | % 数学字体 - XITS Math. 328 | \setmathfont{XITS Math} 329 | \else\if\EqualOptionsBeamer{MathFont}{LM}% 330 | % 数学字体 - Latin Modern Math. 331 | \setmathfont{Latin Modern Math} 332 | \fi\fi 333 | 334 | % 设置中文无衬线字体为项目文件夹下 "fonts" 中 "simkai.ttf" (楷体), 加粗为 "simhei.ttf" (黑体). 335 | %\setCJKsansfont[Path="fonts/",BoldFont={simhei.ttf}]{simkai.ttf} 336 | \setCJKsansfont[Scale=0.956]{Microsoft YaHei} 337 | % \setCJKsansfont{LXGWWenKai-Bold.ttf}[Path="fonts/",Scale=0.956,BoldFont={SourceHanSansSC-Medium.otf}] 338 | % \setCJKsansfont{LXGW WenKai Bold}[Scale=0.956,BoldFont={Source Han Sans SC Medium}] 339 | %\usefonttheme{professionalfonts} 340 | % ---------------- 341 | 342 | 343 | % ---------------- 344 | % Font Sizes Layout 345 | % ---------------- 346 | % 幻灯标题字体设置. 347 | \setbeamerfont{frametitle}{size=\large,series=\bfseries} 348 | \setbeamerfont{framesubtitle}{size=\scriptsize,series=\bfseries} 349 | % 封页字体设置. 350 | \setbeamerfont{title}{size=\LARGE,series=\bfseries} 351 | \setbeamerfont{subtitle}{size=\small,series=\bfseries} 352 | \setbeamerfont{author}{size=\small,series=\bfseries} 353 | \setbeamerfont{date}{size=\footnotesize,series=\bfseries} 354 | 355 | \setbeamerfont{block title}{size=\normalsize} 356 | \setbeamerfont{structure}{size=\normalsize,series=\bfseries} 357 | % 脚注字号设置. 358 | \setbeamerfont{footnote}{size=\scriptsize} 359 | % 页眉页脚字体设置. 360 | \setbeamerfont{section in head/foot}{size=\scriptsize,series=\bfseries} 361 | \setbeamerfont{subsection in head/foot}{size=\scriptsize,series=\bfseries} 362 | \setbeamerfont{institute in head/foot}{size=\scriptsize,series=\bfseries} 363 | \setbeamerfont{author in head/foot}{size=\tiny,series=\mdseries} 364 | \setbeamerfont{title in head/foot}{size=\tiny,series=\bfseries} 365 | \setbeamerfont{framenumber in head/foot}{size=\scriptsize,series=\bfseries} 366 | % itemize 环境序号设置. 367 | % \setbeamertemplate{itemize item}{\scriptsize\raise1.25pt\hbox{\textbullet}} 368 | % \setbeamertemplate{itemize subitem}{\scriptsize\raise1.25pt\hbox{\textbullet}} 369 | % \setbeamertemplate{itemize subsubitem}{\scriptsize\raise1.25pt\hbox{\textbullet}} 370 | % ---------------- 371 | 372 | 373 | % ---------------- 374 | % Bibliography Layout 375 | % Confirmed in v1.3b(2022/04/13). 376 | % Established in v1.3b(2022/04/13). 377 | % Updated in v1.3d(2024/05/18). 378 | % ---------------- 379 | \if\EqualOptionsBeamer{BIBMode}{biber}% 380 | % 参考文献 bib 库. 381 | \addbibresource[location=local]{ref.bib} 382 | % 参考文献设置. 383 | \beamertemplatetextbibitems 384 | % 设置 bibliography 列表为 text 显示模式. 385 | \setbeamertemplate{bibliography item}[text] 386 | % 设置 bibitem 间距. 387 | \setlength{\bibitemsep}{0.75ex} 388 | % 参考文献目录字号设置为6号. 389 | \renewcommand*{\bibfont}{\footnotesize} 390 | \fi 391 | % 设置参考文献脚注引用. 392 | \newcommand{\footfullcitetext}[2][]{% 393 | \footnotetext{% 394 | \ifstrempty{#1}{\fullcite{#2}}{\fullcite[{[#1]}]{#2}}% 395 | }} 396 | % ---------------- 397 | 398 | 399 | % ---------------- 400 | % Tcolorbox Style Layout 401 | % Confirmed in v1.3b(2022/04/13). 402 | % Established in v1.0a(2021/12/03). 403 | % Updated in v1.1a(2021/12/30), v1.2a(2022/03/10), v1.3a(2022/03/16). 404 | % ---------------- 405 | % 定义了多种 Tcolorbox 盒子的基础样式. 修改自 Tcolorbox 手册. 406 | % ---------------- 407 | % 盒子基础样式定义. 408 | % 普通盒子基础样式定义. 409 | \def\beamer@scu@tcbstyle#1#2#3{% 410 | % #1: 关键字 - 样式类型. 411 | % #2: 上部颜色. 412 | % #3: 下部颜色. 413 | \tcbset{tcb#1style/.style={% 414 | enhanced jigsaw,% 415 | arc=1.5mm,% 416 | toprule=1mm, leftrule=1mm,% 417 | boxsep=-.5mm,% 418 | left=1.8mm, right=2mm, top=2.5mm,% 419 | fonttitle=\normalsize\bfseries,% 420 | fontupper=\usebeamercolor[fg]{nomal text},% 421 | fontlower=\usebeamercolor[fg]{nomal text},% 422 | frame style={% 423 | upper left=#2, upper right=#2!50,% 424 | lower left=#3!50, lower right=#3% 425 | },% 426 | interior style={white, opacity=.8},% 427 | segmentation style={% 428 | black, solid,% 429 | opacity=.2, line width=1pt% 430 | },% 431 | breakable, break at=.78\textheight,% 432 | pad at break=.5ex 433 | }}% 434 | } 435 | 436 | % 定理盒子基础样式定义. 437 | \def\beamer@scu@tcbstyletheo#1#2{% 438 | % #1: 关键字 - 样式类型. 439 | % #2: 颜色. 440 | \tcbset{tcb#1style/.style={empty,% 441 | attach boxed title to top left,% 442 | boxed title style={empty,% 443 | % colback=white!98!#2, opacityback=0.96, enhanced,% 444 | % fuzzy shadow={-0.2mm}{0.2mm}{0mm}{0.2mm}{white!90!#2},% 445 | % fuzzy shadow={0.2mm}{-0.2mm}{0mm}{0.2mm}{black!90!#2},% 446 | size=minimal,% 447 | toprule=2pt, top=4pt, left=1pt, right=1pt,% 448 | overlay={% 449 | \draw [#2, line width=2.5pt, rounded corners=1pt]% 450 | ([yshift=-1pt]frame.north west) -- ([yshift=-1pt]frame.north east); 451 | \draw [white!80!#2, line width=2.5pt, rounded corners=1pt]% 452 | ([xshift=.25em,yshift=-1pt]frame.north west)% 453 | -- ([xshift=.5em, yshift=-1pt]frame.north west); 454 | },% 455 | },% 456 | coltitle=#2!90!black, fonttitle=\normalsize\bfseries,% 457 | before=\par\medskip\noindent, vfill before first,% 458 | parbox=false, boxsep=0pt,% 459 | top=4pt, bottom=4pt, left=0pt, right=2mm,% 460 | fontupper=\usebeamercolor[fg]{nomal text},% 461 | fontlower=\usebeamercolor[fg]{nomal text},% 462 | breakable, break at=.78\textheight,% 463 | pad at break*=.5ex,% 464 | overlay unbroken={% 465 | \draw [#2, line width=1pt, rounded corners=1pt]% 466 | ([yshift=-1pt]title.north east)% 467 | -- ([xshift=-0.5pt,yshift=-1pt]title.north-|frame.east)% 468 | -- ([xshift=-0.5pt]frame.south east) -- (frame.south west); 469 | \draw [white!80!#2, line width=1pt, rounded corners=1pt]% 470 | ([xshift=2em]frame.south west) -- ([xshift=5em]frame.south west); 471 | },% 472 | overlay first={% 473 | \draw [#2, line width=1pt, rounded corners=1pt]% 474 | ([yshift=-1pt]title.north east)% 475 | -- ([xshift=-0.5pt,yshift=-1pt]title.north-|frame.east)% 476 | -- ([xshift=-0.5pt]frame.south east); 477 | },% 478 | overlay middle={% 479 | \draw [#2, line width=1pt, rounded corners=1pt]% 480 | ([xshift=-0.5pt]frame.north east) -- ([xshift=-0.5pt]frame.south east); 481 | },% 482 | overlay last={% 483 | \draw [#2, line width=1pt, rounded corners=1pt]% 484 | ([xshift=-0.5pt]frame.north east) -- ([xshift=-0.5pt]frame.south east)% 485 | -- (frame.south west); 486 | \draw [white!80!#2, line width=1pt, rounded corners=1pt]% 487 | ([xshift=2em]frame.south west) -- ([xshift=5em]frame.south west); 488 | }% 489 | }}% 490 | } 491 | 492 | % 代码盒子基础样式定义. 493 | \def\beamer@scu@tcbstylecode#1{% 494 | % #1: 关键字 - 样式类型. 495 | % #2: 颜色. 496 | \tcbset{codestyle/.style={empty,% 497 | attach boxed title to top left,% 498 | boxed title style={empty,% 499 | % colback=white!98!#1, opacityback=0.96, enhanced,% 500 | % fuzzy shadow={-0.2mm}{0.2mm}{0mm}{0.2mm}{white!90!#1},% 501 | % fuzzy shadow={0.2mm}{-0.2mm}{0mm}{0.2mm}{black!90!#1},% 502 | size=minimal,% 503 | toprule=2pt, top=4pt, left=1pt, right=1pt,% 504 | overlay={% 505 | \draw [#1, line width=2.5pt, rounded corners=1pt]% 506 | ([yshift=-1pt]frame.north west) -- ([yshift=-1pt]frame.north east); 507 | \draw [white!80!#1, line width=2.5pt, rounded corners=1pt]% 508 | ([xshift=.25em,yshift=-1pt]frame.north west)% 509 | -- ([xshift=.5em, yshift=-1pt]frame.north west); 510 | },% 511 | },% 512 | coltitle=#1!90!black, fonttitle=\normalsize\bfseries,% 513 | before=\par\medskip\noindent, vfill before first,% 514 | parbox=false, boxsep=0pt,% 515 | top=4pt, bottom=4pt, left=1pt, right=2mm,% 516 | fontupper=\usebeamercolor[fg]{nomal text},% 517 | fontlower=\usebeamercolor[fg]{nomal text},% 518 | breakable, break at=.78\textheight,% 519 | pad at break*=.5ex,%\\ 520 | listing only,% 521 | overlay unbroken={% 522 | \draw [#1, line width=1pt, rounded corners=1pt]% 523 | ([yshift=-1pt]title.north east)% 524 | -- ([xshift=-0.5pt,yshift=-1pt]title.north-|frame.east)% 525 | -- ([xshift=-0.5pt]frame.south east) -- (frame.south west); 526 | \draw [white!80!#1, line width=1pt, rounded corners=1pt]% 527 | ([xshift=2em]frame.south west) -- ([xshift=5em]frame.south west); 528 | \node [anchor=north east] at ([xshift=-1.5pt,yshift=-2pt]title.north-|frame.east) {% 529 | \textcolor{#1}{\normalsize ##1}%\faCode\faFileCode[regular] 530 | }; 531 | },% 532 | overlay first={% 533 | \draw [#1, line width=1pt, rounded corners=1pt]% 534 | ([yshift=-1pt]title.north east)% 535 | -- ([xshift=-0.5pt,yshift=-1pt]title.north-|frame.east)% 536 | -- ([xshift=-0.5pt]frame.south east); 537 | },% 538 | overlay middle={% 539 | \draw [#1, line width=1pt, rounded corners=1pt]% 540 | ([xshift=-0.5pt]frame.north east) -- ([xshift=-0.5pt]frame.south east); 541 | },% 542 | overlay last={% 543 | \draw [#1, line width=1pt, rounded corners=1pt]% 544 | ([xshift=-0.5pt]frame.north east) -- ([xshift=-0.5pt]frame.south east)% 545 | -- (frame.south west); 546 | \draw [white!80!#1, line width=1pt, rounded corners=1pt]% 547 | ([xshift=2em]frame.south west) -- ([xshift=5em]frame.south west); 548 | }% 549 | }} 550 | } 551 | 552 | % 基础样式应用. 553 | \beamer@scu@tcbstyle{rb}{scured} {scublue} 554 | \beamer@scu@tcbstyle{yg}{scuyellow}{scugreen} 555 | \if\EqualOptionsBeamer{BlockDisplay}{colorful}% 556 | \beamer@scu@tcbstyletheo{theo}{PrimaryC}% 557 | \beamer@scu@tcbstyletheo{exa} {BlockExampleC}% 558 | \beamer@scu@tcbstyletheo{def} {BlockDefinitionC}% 559 | \beamer@scu@tcbstyletheo{lem} {BlockLemmaC}% 560 | \beamer@scu@tcbstyletheo{cond}{BlockConditionC}% 561 | \beamer@scu@tcbstylecode{PrimaryC}% 562 | \else\if\EqualOptionsBeamer{BlockDisplay}{followtheme}% 563 | \beamer@scu@tcbstyletheo{theo}{PrimaryC}% 564 | \beamer@scu@tcbstyletheo{exa} {PrimaryC}% 565 | \beamer@scu@tcbstyletheo{def} {PrimaryC}% 566 | \beamer@scu@tcbstyletheo{lem} {PrimaryC}% 567 | \beamer@scu@tcbstyletheo{cond}{PrimaryC}% 568 | \beamer@scu@tcbstylecode{PrimaryC}% 569 | \else\if\EqualOptionsBeamer{BlockDisplay}{allgrey}% 570 | \beamer@scu@tcbstyletheo{theo}{BlockExampleC}% 571 | \beamer@scu@tcbstyletheo{exa} {BlockExampleC}% 572 | \beamer@scu@tcbstyletheo{def} {BlockExampleC}% 573 | \beamer@scu@tcbstyletheo{lem} {BlockExampleC}% 574 | \beamer@scu@tcbstyletheo{cond}{BlockExampleC}% 575 | \beamer@scu@tcbstylecode{BlockExampleC}% 576 | \fi\fi\fi 577 | % ---------------- 578 | 579 | 580 | % ---------------- 581 | % Tcolorbox Layout 582 | % Confirmed in v1.3a. 583 | % ---------------- 584 | % 定义了两个渐变样式( rb 为红蓝渐变, yg 为黄绿渐变)的 Tcolorbox. 585 | % #1: <可选>附加参数. 586 | % #2: 标题. 587 | % ---------------- 588 | \newtcolorbox{scutcbrb}[2][]{% 589 | tcbrbstyle, title={#2}, #1% 590 | } 591 | \newtcolorbox{scutcbyg}[2][]{% 592 | tcbygstyle, title={#2}, #1% 593 | } 594 | % ---------------- 595 | 596 | 597 | % ---------------- 598 | % Theorem Layout 599 | % Confirmed in v1.3b(2022/04/13). 600 | % Established in v1.0a(2021/12/03). 601 | % Updated in v1.1a(2021/12/30), v1.2a(2022/03/10), v1.3a(2022/03/16). 602 | % ---------------- 603 | % 使用 tcolorbox 重定义定理环境, 原始的不带 scu 前缀的定理环境仍可使用. 604 | % ---------------- 605 | % 定理区块名称设置. 606 | \if\EqualOptionsBeamer{LanguageMode}{cn}% 607 | \def\beamer@scu@theonametheorem {定理} 608 | \def\beamer@scu@theonameexample {例} 609 | \def\beamer@scu@theonamealgorithm {算法} 610 | \def\beamer@scu@theonamedefinition {定义} 611 | \def\beamer@scu@theonameaxiom {公理} 612 | \def\beamer@scu@theonameproperty {性质} 613 | \def\beamer@scu@theonameproposition{命题} 614 | \def\beamer@scu@theonamelemma {引理} 615 | \def\beamer@scu@theonamecorollary {推论} 616 | \def\beamer@scu@theonamecondition {条件} 617 | \def\beamer@scu@theonameconclusion {结论} 618 | \def\beamer@scu@theonameassumption {假设} 619 | \def\beamer@scu@theonameremark {注} 620 | \def\beamer@scu@theonameproof {证明} 621 | % 622 | \def\beamer@scu@theonametheorem@pl {定理} 623 | \def\beamer@scu@theonameexample@pl {例} 624 | \def\beamer@scu@theonamealgorithm@pl {算法} 625 | \def\beamer@scu@theonamedefinition@pl {定义} 626 | \def\beamer@scu@theonameaxiom@pl {公理} 627 | \def\beamer@scu@theonameproperty@pl {性质} 628 | \def\beamer@scu@theonameproposition@pl{命题} 629 | \def\beamer@scu@theonamelemma@pl {引理} 630 | \def\beamer@scu@theonamecorollary@pl {推论} 631 | \def\beamer@scu@theonamecondition@pl {条件} 632 | \def\beamer@scu@theonameconclusion@pl {结论} 633 | \def\beamer@scu@theonameassumption@pl {假设} 634 | \def\beamer@scu@theonameremark@pl {注} 635 | \def\beamer@scu@theonameproof@pl {证明} 636 | \else\if\EqualOptionsBeamer{LanguageMode}{en}% 637 | \def\beamer@scu@theonametheorem {Theorem} 638 | \def\beamer@scu@theonameexample {Example} 639 | \def\beamer@scu@theonamealgorithm {Algorithm} 640 | \def\beamer@scu@theonamedefinition {Definition} 641 | \def\beamer@scu@theonameaxiom {Axiom} 642 | \def\beamer@scu@theonameproperty {Property} 643 | \def\beamer@scu@theonameproposition{Proposition} 644 | \def\beamer@scu@theonamelemma {Lemma} 645 | \def\beamer@scu@theonamecorollary {Corollary} 646 | \def\beamer@scu@theonamecondition {Condition} 647 | \def\beamer@scu@theonameconclusion {Conclusion} 648 | \def\beamer@scu@theonameassumption {Assumption} 649 | \def\beamer@scu@theonameremark {Remark} 650 | \def\beamer@scu@theonameproof {Proof} 651 | % 652 | \def\beamer@scu@theonametheorem@pl {Theorems} 653 | \def\beamer@scu@theonameexample@pl {Examples} 654 | \def\beamer@scu@theonamealgorithm@pl {Algorithms} 655 | \def\beamer@scu@theonamedefinition@pl {Definitions} 656 | \def\beamer@scu@theonameaxiom@pl {Axioms} 657 | \def\beamer@scu@theonameproperty@pl {Properties} 658 | \def\beamer@scu@theonameproposition@pl{Propositions} 659 | \def\beamer@scu@theonamelemma@pl {Lemmas} 660 | \def\beamer@scu@theonamecorollary@pl {Corollaries} 661 | \def\beamer@scu@theonamecondition@pl {Conditions} 662 | \def\beamer@scu@theonameconclusion@pl {Conclusions} 663 | \def\beamer@scu@theonameassumption@pl {Assumptions} 664 | \def\beamer@scu@theonameremark@pl {Remarks} 665 | \def\beamer@scu@theonameproof@pl {Proofs} 666 | \fi\fi 667 | 668 | % theorem, example, algorithm, definition, axiom, property, proposition, lemma, corollary, condition, conclusion, assumption 设置. 669 | % 计数器 - 定理环境. 670 | \newcounter{beamer@scu@theorem@count} 671 | \newcounter{beamer@scu@example@count} 672 | \newcounter{beamer@scu@algorithm@count} 673 | \newcounter{beamer@scu@definition@count} 674 | \newcounter{beamer@scu@axiom@count} 675 | \newcounter{beamer@scu@property@count} 676 | \newcounter{beamer@scu@proposition@count} 677 | \newcounter{beamer@scu@lemma@count} 678 | \newcounter{beamer@scu@corollary@count} 679 | \newcounter{beamer@scu@condition@count} 680 | \newcounter{beamer@scu@conclusion@count} 681 | \newcounter{beamer@scu@assumption@count} 682 | % 定理区块参数设置. 683 | \def\beamer@scu@theo#1#2#3{% 684 | % #1: 后缀 - 环境名称. 685 | % #2: 前缀 - 样式类型. 686 | % #3: 前缀 - 标签. 687 | % 无*环境. 688 | \DeclareTColorBox[use counter=beamer@scu@#1@count,% 689 | % ##1: <可选>附加参数 - Tcolorbox. 690 | % ##2: 标题. 691 | % ##3: <可选>模式选择 - 带 * 即不显示区块标题头. 692 | % ##4: <可选>后缀 - 标签. 693 | number within=section, reset counter on overlays]% 694 | {beamerscuoriginal#1}{ O{} m !s !O{} }{% 695 | title={% 696 | \IfBooleanTF{##3}{\ifstrempty{##2}{}{##2}}{% 697 | \csname beamer@scu@theoname#1\endcsname% 698 | ~\thetcbcounter\ifstrempty{##2}{}{:~##2}% 699 | }% 700 | },% 701 | IfValueT={##4}{label={#3\kvtcb@label@sep##4}},% 702 | nameref={##2}, #2style, ##1% 703 | }% 704 | % 带*环境. 705 | \DeclareTColorBox[no counter]% 706 | % ##1: <可选>附加参数 - Tcolorbox. 707 | % ##2: 标题. 708 | % ##3: <可选>模式选择 - 带*即不显示区块标题头. 709 | % ##4: <可选>后缀 - 标签. 710 | {beamerscuoriginal#1*}{ O{} m !s !O{} }{% 711 | title={% 712 | \IfBooleanTF{##3}{\ifstrempty{##2}{}{##2}}{% 713 | \csname beamer@scu@theoname#1\endcsname% 714 | \ifstrempty{##2}{}{:~##2}% 715 | }% 716 | },% 717 | IfValueT={##4}{label={#3\kvtcb@label@sep##4}},% 718 | nameref={##2}, #2style, ##1% 719 | }% 720 | \DeclareDocumentEnvironment{scu#1}% 721 | % ##1: <可选>模式选择 - 带 * 即不显示序号 (目前已实现带星号环境不参与计数器递进). 722 | % ##2: <可选>Overlay选择 - Beamer. 723 | % ##3: <可选>附加参数 - Tcolorbox. 724 | % ##4: 标题. 725 | % ##5: <可选>模式选择 - 带 * 即不显示区块标题前缀. 726 | % ##6: <可选>后缀 - 标签. 727 | { s D<>{1-} O{} m !s !O{} }{% 728 | \begin{actionenv}<##2>% 729 | \IfBooleanTF{##1}% 730 | {\IfBooleanTF{##5}% 731 | {\begin{beamerscuoriginal#1*}[##3]{##4}*[##6]}% 732 | {\begin{beamerscuoriginal#1*}[##3]{##4}[##6]}}% 733 | {\IfBooleanTF{##5}% 734 | {\begin{beamerscuoriginal#1}[##3]{##4}*[##6]}% 735 | {\begin{beamerscuoriginal#1}[##3]{##4}[##6]}}% 736 | }{\IfBooleanTF{##1}% 737 | {\end{beamerscuoriginal#1*}}% 738 | {\end{beamerscuoriginal#1}}% 739 | \end{actionenv}% 740 | }% 741 | } 742 | \beamer@scu@theo{theorem} {tcbtheo}{theo} 743 | \beamer@scu@theo{example} {tcbexa} {exam} 744 | \beamer@scu@theo{algorithm} {tcbexa} {algo} 745 | \beamer@scu@theo{definition} {tcbdef} {def} 746 | \beamer@scu@theo{axiom} {tcbtheo}{axio} 747 | \beamer@scu@theo{property} {tcbdef} {prope} 748 | \beamer@scu@theo{proposition}{tcbdef} {propo} 749 | \beamer@scu@theo{lemma} {tcblem} {lemm} 750 | \beamer@scu@theo{corollary} {tcblem} {coro} 751 | \beamer@scu@theo{condition} {tcbcond}{cond} 752 | \beamer@scu@theo{conclusion} {tcblem} {conc} 753 | \beamer@scu@theo{assumption} {tcbcond}{assu} 754 | 755 | % scuremark 设置. 756 | % 计数器 - 定理环境. 757 | \newcounter{beamer@scu@remark@count} 758 | % 定理区块参数设置. 759 | \DeclareTColorBox[use counter=beamer@scu@remark@count,% 760 | % #1: <可选>附加参数 - Tcolorbox. 761 | % #2: 标题. 762 | % #3: <可选>后缀 - 标签. 763 | no counter]{beamerscuoriginalremark}{ O{} m !O{} }{% 764 | title={\beamer@scu@theonameremark% 765 | \ifstrempty{#2}{}{:~#2}% 766 | },% 767 | IfValueT={#3}{label={rema:#3}},% 768 | nameref={#2}, tcbexastyle, #1% 769 | } 770 | \DeclareDocumentEnvironment{scuremark}% 771 | % #1: <可选>Overlay选择 - Beamer. 772 | % #2: <可选>附加参数 - Tcolorbox. 773 | % #3: 标题. 774 | % #4: <可选>后缀 - 标签. 775 | { D<>{1-} O{} m !O{} }{% 776 | \begin{actionenv}<#1>% 777 | \begin{beamerscuoriginalremark}[#2]{#3}[#4]% 778 | }{\end{beamerscuoriginalremark}\end{actionenv}}% 779 | 780 | % scuproof 设置. 781 | % 计数器 - 定理环境. 782 | \newcounter{beamer@scu@proof@count} 783 | % 定理区块参数设置. 784 | \providecommand\pushQED{\def\beamer@qed} 785 | \DeclareTColorBox[use counter=beamer@scu@proof@count,% 786 | % #1: <可选>附加参数 - Tcolorbox. 787 | % #2: 标题. 788 | % #3: <可选>后缀 - 标签. 789 | no counter]{beamerscuoriginalproof}{ O{} m !O{} }{% 790 | title={% \@addpunct: Be intelligently omitted when punctuation is already present. 791 | \ifblank{#2}{\beamer@scu@theonameproof}{#2}\@addpunct{.}% 792 | },% 793 | IfValueT={#3}{label={rema:#3}},% 794 | nameref={#2}, tcbexastyle, #1% 795 | } 796 | \DeclareDocumentEnvironment{scuproof}% 797 | % #1: <可选>Overlay选择 - Beamer. 798 | % #2: <可选>附加参数 - Tcolorbox. 799 | % #3: 标题. 800 | % #4: <可选>后缀 - 标签. 801 | { D<>{1-} O{} m !O{} }{% 802 | \begin{actionenv}<#1>% 803 | \begin{beamerscuoriginalproof}[#2]{#3}[#4]% 804 | \pushQED{\qed}% 805 | }{\popQED\end{beamerscuoriginalproof}\end{actionenv}}% 806 | % Beamer 下原始 proof 环境. 807 | %\renewenvironment<>{SCUproof}[1][证明]{% 808 | % \par 809 | % \def\insertproofname{#1\@addpunct{.}}% 810 | % \pushQED{\qed} 811 | % \usebeamertemplate{proof begin}#2} 812 | %{\popQED\usebeamertemplate{proof end}} 813 | 814 | % 智能引用名称定义. 815 | \Crefname{beamer@scu@theorem@count}% 816 | {\beamer@scu@theonametheorem}% 817 | {\beamer@scu@theonametheorem@pl} 818 | \Crefname{beamer@scu@example@count}% 819 | {\beamer@scu@theonameexample}% 820 | {\beamer@scu@theonameexample@pl} 821 | \Crefname{beamer@scu@algorithm@count}% 822 | {\beamer@scu@theonamealgorithm}% 823 | {\beamer@scu@theonamealgorithm@pl} 824 | \Crefname{beamer@scu@definition@count}% 825 | {\beamer@scu@theonamedefinition}% 826 | {\beamer@scu@theonamedefinition@pl} 827 | \Crefname{beamer@scu@axiom@count}% 828 | {\beamer@scu@theonameaxiom}% 829 | {\beamer@scu@theonameaxiom@pl} 830 | \Crefname{beamer@scu@property@count}% 831 | {\beamer@scu@theonameproperty}% 832 | {\beamer@scu@theonameproperty@pl} 833 | \Crefname{beamer@scu@proposition@count}% 834 | {\beamer@scu@theonameproposition}% 835 | {\beamer@scu@theonameproposition@pl} 836 | \Crefname{beamer@scu@lemma@count}% 837 | {\beamer@scu@theonamelemma}% 838 | {\beamer@scu@theonamelemma@pl} 839 | \Crefname{beamer@scu@corollary@count}% 840 | {\beamer@scu@theonamecorollary}% 841 | {\beamer@scu@theonamecorollary@pl} 842 | \Crefname{beamer@scu@condition@count}% 843 | {\beamer@scu@theonamecondition}% 844 | {\beamer@scu@theonamecondition@pl} 845 | \Crefname{beamer@scu@conclusion@count}% 846 | {\beamer@scu@theonameconclusion}% 847 | {\beamer@scu@theonameconclusion@pl} 848 | \Crefname{beamer@scu@assumption@count}% 849 | {\beamer@scu@theonameassumption}% 850 | {\beamer@scu@theonameassumption@pl} 851 | \Crefname{beamer@scu@remark@count}% 852 | {\beamer@scu@theonameremark}% 853 | {\beamer@scu@theonameremark@pl} 854 | \Crefname{beamer@scu@proof@count}% 855 | {\beamer@scu@theonameproof}% 856 | {\beamer@scu@theonameproof@pl} 857 | % ---------------- 858 | 859 | 860 | % ---------------- 861 | % Listing Layout 862 | % Confirmed in v1.3c(2024/04/16). 863 | % Established in v1.0a(2021/12/03). 864 | % Updated in v1.1a(2021/12/30), v1.2a(2022/03/10), v1.3a(2022/03/16), v1.3c(2024/04/16). 865 | % ---------------- 866 | % 定义了一个用作代码演示的 Listing, 和一个不带计数的 Listing. 867 | % ---------------- 868 | % 代码区块名称设置. 869 | \if\EqualOptionsBeamer{LanguageMode}{cn}% 870 | \def\beamer@scu@codename{源码} 871 | \def\beamer@scu@codename@pl{源码} 872 | \else\if\EqualOptionsBeamer{LanguageMode}{en}% 873 | \def\beamer@scu@codename{Source Code} 874 | \def\beamer@scu@codename@pl{Source Codes} 875 | \fi\fi 876 | 877 | % scucode 设置. 878 | % 计数器 - 定理环境. 879 | \newcounter{beamer@scu@code@count} 880 | % 定理区块参数设置. 881 | \if\EqualOptionsBeamer{CodeDisplay}{minted}% 882 | \if\EqualOptionsBeamer{MintedStyle}{lightmode}% 883 | \tcbset{minted style=default}% 884 | \else\if\EqualOptionsBeamer{MintedStyle}{darkmode}% 885 | \tcbset{minted style=rrt}% 886 | \else\if\EqualOptionsBeamer{MintedStyle}{\beamer@scu@MintedStyle}% 887 | \edef\set@MintedStyle{\noexpand% 888 | \pgfkeys{/tcb, minted style=\beamer@scu@MintedStyle}}% 889 | \set@MintedStyle% 890 | \fi\fi\fi 891 | \renewcommand{\theFancyVerbLine}{% 892 | \sffamily\textcolor{PrimaryC}{% 893 | \tiny\oldstylenums{\arabic{FancyVerbLine}}% 894 | }}% 895 | \DeclareTCBListing[use counter=beamer@scu@code@count,% 896 | % #1: <可选>附加参数 - Tcolorbox. 897 | % #2: 标题. 898 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 899 | % #4: <可选>后缀 - 标签. 900 | % #5: 抄录语言. 901 | % #6: <可选>附加参数 - minted. 902 | % #7: 注释定界符. 903 | number within=section, reset counter on overlays]% 904 | {scucode}{ O{} m s O{} m !O{} !D''{||} }{% 905 | listing engine=minted,% 906 | minted language={#5},% 907 | minted options={% 908 | autogobble, tabsize=2,% 909 | highlightcolor=HighlightCodeLineC,% 910 | beameroverlays, escapeinside=#7,% 911 | mathescape, texcl,% 912 | breaklines, breakbytokenanywhere,% 913 | linenos, numbersep=2pt,% 914 | fontsize=\scriptsize\ttfamily, #6% 915 | },% 916 | title={% 917 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 918 | \beamer@scu@codename~\thetcbcounter% 919 | \ifstrempty{#2}{}{:~#2}% 920 | }% 921 | },% 922 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 923 | nameref={#2}, codestyle={\faCode}, #1% 924 | }% 925 | \DeclareTCBListing[no counter]% 926 | % #1: <可选>附加参数 - Tcolorbox. 927 | % #2: 标题. 928 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 929 | % #4: <可选>后缀 - 标签. 930 | % #5: 抄录语言. 931 | % #6: <可选>附加参数 - minted. 932 | % #7: 注释定界符. 933 | {scucode*}{ O{} m s O{} m !O{} !D''{||} }{% 934 | listing engine=minted,% 935 | minted language={#5},% 936 | minted options={% 937 | autogobble, tabsize=2,% 938 | highlightcolor=HighlightCodeLineC,% 939 | beameroverlays, escapeinside=#7,% 940 | mathescape, texcl,% 941 | breaklines, breakbytokenanywhere,% 942 | linenos, numbersep=2pt,% 943 | fontsize=\scriptsize\ttfamily, #6% 944 | },% 945 | title={% 946 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 947 | \beamer@scu@codename\ifstrempty{#2}{}{:~#2}% 948 | }% 949 | },% 950 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 951 | nameref={#2}, codestyle={\faCode}, #1% 952 | }% 953 | \DeclareTCBInputListing[use counter=beamer@scu@code@count,% 954 | % #1: <可选>附加参数 - Tcolorbox. 955 | % #2: 标题. 956 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 957 | % #4: <可选>后缀 - 标签. 958 | % #5: 抄录语言. 959 | % #6: <可选>附加参数 - minted. 960 | % #7: 文件名. 961 | % #8: 注释定界符. 962 | number within=section, reset counter on overlays]% 963 | {\scucodeinput}{ O{} m s O{} m O{} m !D''{||} }{% 964 | listing file={./sourcecode/#7},% 965 | listing engine=minted,% 966 | minted language={#5},% 967 | minted options={% 968 | autogobble, tabsize=2,% 969 | highlightcolor=HighlightCodeLineC,% 970 | beameroverlays, escapeinside=#7,% 971 | mathescape, texcl,% 972 | breaklines, breakbytokenanywhere,% 973 | linenos, numbersep=2pt,% 974 | fontsize=\scriptsize\ttfamily, #6% 975 | },% 976 | title={% 977 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 978 | \beamer@scu@codename~\thetcbcounter% 979 | \ifstrempty{#2}{}{:~#2}% 980 | }% 981 | },% 982 | before upper=\scriptsize{以下是文件\texttt{#7}中包含的源码:\vspace{.75ex}},% 983 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 984 | nameref={#2}, codestyle={\faFileCode[regular]}, #1% 985 | } 986 | \DeclareTCBInputListing[no counter]% 987 | % #1: <可选>附加参数 - Tcolorbox. 988 | % #2: 标题. 989 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 990 | % #4: <可选>后缀 - 标签. 991 | % #5: 抄录语言. 992 | % #6: <可选>附加参数 - minted. 993 | % #7: 文件名. 994 | % #8: 注释定界符. 995 | {\scucodeinputnocounter}{ O{} m s O{} m O{} m !D''{||} }{% 996 | listing file={./sourcecode/#7},% 997 | listing engine=minted,% 998 | minted language={#5},% 999 | minted options={% 1000 | autogobble, tabsize=2,% 1001 | highlightcolor=HighlightCodeLineC,% 1002 | beameroverlays, escapeinside=#8,% 1003 | mathescape, texcl,% 1004 | breaklines, breakbytokenanywhere,% 1005 | linenos, numbersep=2pt,% 1006 | fontsize=\scriptsize\ttfamily, #6% 1007 | },% 1008 | title={% 1009 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 1010 | \beamer@scu@codename\ifstrempty{#2}{}{:~#2}% 1011 | }% 1012 | },% 1013 | before upper=\scriptsize{以下是文件\texttt{#7}中包含的源码:\vspace{.75ex}},% 1014 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 1015 | nameref={#2}, codestyle={\faFileCode[regular]}, #1% 1016 | } 1017 | \else\if\EqualOptionsBeamer{CodeDisplay}{listing}% 1018 | \DeclareTCBListing[use counter=beamer@scu@code@count,% 1019 | % #1: <可选>附加参数 - Tcolorbox. 1020 | % #2: 标题. 1021 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 1022 | % #4: <可选>后缀 - 标签. 1023 | % #5: 抄录语言. 1024 | % #6: <可选>附加参数 - minted. 1025 | % #7: 注释定界符. 1026 | number within=section, reset counter on overlays]% 1027 | {scucode}{ O{} m s O{} m !O{} !D''{||} }{% 1028 | listing engine=listings,% 1029 | listing options={% 1030 | language={#5},% 1031 | breaklines, tabsize=2,%style=tcblatex, 1032 | columns=flexible,% 1033 | escapeinside=#7, texcl,% 1034 | numberstyle=\tiny\color{PrimaryC}\oldstylenums,% 1035 | basicstyle=\scriptsize\ttfamily,% 1036 | keywordstyle=\color{scured},% 1037 | commentstyle=\color{scugreen},% 1038 | stringstyle=\color{scuyellow},% 1039 | numbers=left, numbersep=2pt,% 1040 | aboveskip=-2pt, belowskip=-2pt,% 1041 | xrightmargin=-2pt,% 1042 | extendedchars=true, #6% 1043 | },% 1044 | title={% 1045 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 1046 | \beamer@scu@codename~\thetcbcounter% 1047 | \ifstrempty{#2}{}{:~#2}% 1048 | }% 1049 | },% 1050 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 1051 | nameref={#2}, codestyle={\faCode}, #1% 1052 | }% 1053 | \DeclareTCBListing[no counter]% 1054 | % #1: <可选>附加参数 - Tcolorbox. 1055 | % #2: 标题. 1056 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 1057 | % #4: <可选>后缀 - 标签. 1058 | % #5: 抄录语言. 1059 | % #6: <可选>附加参数 - minted. 1060 | % #7: 注释定界符. 1061 | {scucode*}{ O{} m s O{} m !O{} !D''{||} }{% 1062 | listing engine=listings,% 1063 | listing options={% 1064 | language={#5},% 1065 | breaklines, tabsize=2,%style=tcblatex, 1066 | columns=flexible,% 1067 | escapeinside=#7, texcl,% 1068 | numberstyle=\tiny\color{PrimaryC}\oldstylenums,% 1069 | basicstyle=\scriptsize\ttfamily,% 1070 | keywordstyle=\color{scured},% 1071 | commentstyle=\color{scugreen},% 1072 | stringstyle=\color{scuyellow},% 1073 | numbers=left, numbersep=2pt,% 1074 | aboveskip=-2pt, belowskip=-2pt,% 1075 | xrightmargin=-2pt,% 1076 | extendedchars=true, #6% 1077 | },% 1078 | title={% 1079 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 1080 | \beamer@scu@codename\ifstrempty{#2}{}{:~#2}% 1081 | }% 1082 | },% 1083 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 1084 | nameref={#2}, codestyle={\faCode}, #1% 1085 | }% 1086 | \DeclareTCBInputListing[use counter=beamer@scu@code@count,% 1087 | % #1: <可选>附加参数 - Tcolorbox. 1088 | % #2: 标题. 1089 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 1090 | % #4: <可选>后缀 - 标签. 1091 | % #5: 抄录语言. 1092 | % #6: <可选>附加参数 - minted. 1093 | % #7: 文件名. 1094 | % #8: 注释定界符. 1095 | number within=section, reset counter on overlays]% 1096 | {\scucodeinput}{ O{} m s O{} m O{} m !D''{||} }{% 1097 | listing file={./sourcecode/#7},% 1098 | listing engine=listings,% 1099 | listing options={% 1100 | language={#5},% 1101 | breaklines, tabsize=2,%style=tcblatex, 1102 | columns=flexible,% 1103 | escapeinside=#8, texcl,% 1104 | numberstyle=\tiny\color{PrimaryC}\oldstylenums,% 1105 | basicstyle=\scriptsize\ttfamily,% 1106 | keywordstyle=\color{scured},% 1107 | commentstyle=\color{scugreen},% 1108 | stringstyle=\color{scuyellow},% 1109 | numbers=left, numbersep=2pt,% 1110 | aboveskip=-2pt, belowskip=-2pt,% 1111 | xrightmargin=-2pt,% 1112 | extendedchars=true, #6% 1113 | },% 1114 | title={% 1115 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 1116 | \beamer@scu@codename~\thetcbcounter% 1117 | \ifstrempty{#2}{}{:~#2}% 1118 | }% 1119 | },% 1120 | before upper=\scriptsize{以下是文件\texttt{#7}中包含的源码:\vspace{.75ex}},% 1121 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 1122 | nameref={#2}, codestyle={\faFileCode[regular]}, #1% 1123 | } 1124 | \DeclareTCBInputListing[no counter]% 1125 | % #1: <可选>附加参数 - Tcolorbox. 1126 | % #2: 标题. 1127 | % #3: <可选>模式选择 - 带 * 即不显示区块标题前缀. 1128 | % #4: <可选>后缀 - 标签. 1129 | % #5: 抄录语言. 1130 | % #6: <可选>附加参数 - minted. 1131 | % #7: 文件名. 1132 | % #8: 注释定界符. 1133 | {\scucodeinputnocounter}{ O{} m s O{} m O{} m !D''{||} }{% 1134 | listing file={./sourcecode/#7},% 1135 | listing engine=listings,% 1136 | listing options={% 1137 | language={#5},% 1138 | breaklines, tabsize=2,%style=tcblatex, 1139 | columns=flexible,% 1140 | escapeinside=#8, texcl,% 1141 | numberstyle=\tiny\color{PrimaryC}\oldstylenums,% 1142 | basicstyle=\scriptsize\ttfamily,% 1143 | keywordstyle=\color{scured},% 1144 | commentstyle=\color{scugreen},% 1145 | stringstyle=\color{scuyellow},% 1146 | numbers=left, numbersep=2pt,% 1147 | aboveskip=-2pt, belowskip=-2pt,% 1148 | xrightmargin=-2pt,% 1149 | extendedchars=true, #6% 1150 | },% 1151 | title={% 1152 | \IfBooleanTF{#3}{\ifstrempty{#2}{}{#2}}{% 1153 | \beamer@scu@codename\ifstrempty{#2}{}{:~#2}% 1154 | }% 1155 | },% 1156 | before upper=\scriptsize{以下是文件\texttt{#7}中包含的源码:\vspace{.75ex}},% 1157 | IfValueT={#4}{label={code\kvtcb@label@sep#4}},% 1158 | nameref={#2}, codestyle={\faFileCode[regular]}, #1% 1159 | } 1160 | \fi\fi 1161 | 1162 | % 智能引用名称定义. 1163 | \Crefname{beamer@scu@code@count}% 1164 | {\beamer@scu@codename}% 1165 | {\beamer@scu@codename@pl} 1166 | % ---------------- 1167 | 1168 | 1169 | % ---------------- 1170 | % Automatic Frame Layout 1171 | % Confirmed in v1.3b(2022/04/13). 1172 | % Established in v1.0a(2021/12/03). 1173 | % Updated in v1.1a(2021/12/30). 1174 | % ---------------- 1175 | % 以下设置自动帧输出, 含封页, 小节前目录页. 1176 | % ---------------- 1177 | % 添加封页. 1178 | \AtBeginDocument{% 1179 | \begingroup% 1180 | \setbeamertemplate{background}{\pgfuseimage{bgoftitle}}% 1181 | % 取消页眉残留空白. 1182 | \vspace*{-\dimexpr\headheight+\topskip\relax}% 1183 | \begin{frame}[plain] 1184 | %\transfade 渐变 1185 | \titlepage% 显示 titlepage. 1186 | \end{frame} 1187 | \endgroup% 1188 | } 1189 | 1190 | % 定义目录输入命令. 1191 | \def\inserttableofcontent{ 1192 | \ifbeamer@scu@contentmuticols% 1193 | \begin{multicols}{2} 1194 | \tableofcontents[% 1195 | sectionstyle=show/shaded,% 1196 | subsectionstyle=show/shaded/hide,% 1197 | subsubsectionstyle=show/shaded/hide]% 1198 | \end{multicols} 1199 | \else% 1200 | \tableofcontents[% 1201 | sectionstyle=show/shaded,% 1202 | subsectionstyle=show/shaded/hide,% 1203 | subsubsectionstyle=show/shaded/hide]% 1204 | \fi% 1205 | } 1206 | % 小节前加目录. 1207 | \AtBeginSubsection[]{% 1208 | \begingroup% 1209 | \ifbeamer@scu@background% 1210 | \setbeamertemplate{background}{\pgfuseimage{bgofsubsectoc}}% 1211 | \fi% 1212 | \if\EqualOptionsBeamer{LanguageMode}{cn} 1213 | \begin{frame}{目录} 1214 | \inserttableofcontent% 1215 | \end{frame} 1216 | \else\if\EqualOptionsBeamer{LanguageMode}{en} 1217 | \begin{frame}{Outline} 1218 | \inserttableofcontent% 1219 | \end{frame} 1220 | \fi\fi 1221 | \endgroup% 1222 | } 1223 | % ---------------- 1224 | 1225 | 1226 | % ---------------- 1227 | % Ref Layout 1228 | % Confirmed in v1.3e(2024/10/31). 1229 | % Established in v1.0a(2021/12/03). 1230 | % Updated in v1.1a(2021/12/30), v1.3a(2022/03/16), v1.3b(2022/04/13), v1.3e(2024/10/31). 1231 | % ---------------- 1232 | % 重定义了 \vref & \cref 命令, 实现跳转. 1233 | % 重定义了页码计数器 page, 实现环境 frame 输出后值与计数器 framenumber 相同, 从而实现引用时页码不为 pdf 页码. 1234 | % 定义了中文下的 varioref 和 cleveref 包的显示项. (部分具体定义未知, 故未翻译) 1235 | % ---------------- 1236 | % Button. 1237 | \NewTotalTCBox{\scuminijump}{ O{} m O{PrimaryC} m }{% 1238 | standard jigsaw, nobeforeafter, size=fbox, boxsep=.6pt,% 1239 | IfEmptyF={#4}{after upper={\hskip.8pt\textcolor{#3}{#4}}},% 1240 | fontupper=\ttfamily\tiny, colframe=#3, opacityback=0, #1% 1241 | }{#2} 1242 | \def\scugoto#1#2{% 1243 | % #1:: labeluse - goto:xx. 1244 | % #2:: info. 1245 | \hyperlink{#1}{\scuminijump{#2}{\setfontscu{5}\faExternalLinkSquare*}}% 1246 | } 1247 | \def\scugoback#1#2{% 1248 | % #1:: labeluse - back:xx. 1249 | % #2:: info. 1250 | \hyperlink{#1}{\scuminijump{#2}{\setfontscu{5}\faReply}}% 1251 | } 1252 | 1253 | % 重定义 \vref & \cref. 1254 | \let\soscref\cref % 储存 \cref 原始命令. 1255 | \let\sosvref\vref % 储存 \vref 原始命令. 1256 | \renewcommand{\cref}[1]{\hyperlink{#1}{\soscref{#1}}} 1257 | \renewcommand{\vref}[1]{\hyperlink{#1}{\sosvref{#1}}} 1258 | 1259 | % 重定义计数器 page. 1260 | \AtBeginEnvironment{beamer@framepauses}{\setcounter{page}{\c@framenumber}} 1261 | 1262 | % 定义 varioref 和 cleveref 包的中文显示项. 1263 | \if\EqualOptionsBeamer{LanguageMode}{cn}% 1264 | \vref@addto\extraschinese{% 1265 | \def\reftextfaceafter {见\reftextvario{对}{下}页}% 1266 | \def\reftextfacebefore{见\reftextvario{对}{前}页}% 1267 | \def\reftextafter {见\reftextvario{下}{后}页}% 1268 | \def\reftextbefore {见\reftextvario{上}{前}页}% 1269 | \def\reftextcurrent {见\reftextvario{本}{此}页}% 1270 | \def\reftextfaraway#1{见第\pageref{#1}~页}% 1271 | \def\reftextpagerange#1#2{见第\pageref{#1}~到第\pageref{#2}~页}% 1272 | \def\reftextlabelrange#1#2{\ref{#1}到~\ref{#2}}% 1273 | \def\vrefformat#1#2{\ref{#2}(\vpageref[#1]{#2})}% 1274 | \def\Vrefformat#1#2{\Ref{#2}(\vpageref[#1]{#2})}% 1275 | \def\fullrefformat#1{\ref{#1}(\reftextfaraway{#1})}% 1276 | \def\vrefrangeformat#1#2#3{\reftextlabelrange{#2}{#3}% 1277 | (\vpagerefrange[{#1}]{#2}{#3})}% 1278 | } 1279 | %\cref@addlanguagedefs\extraschinese{% 1280 | \newcommand{\crefrangeconjunction}{ 到\nobreakspace}% 1281 | \newcommand\crefrangepreconjunction{}% 1282 | \newcommand\crefrangepostconjunction{}% 1283 | \newcommand{\crefpairconjunction}{ 和\nobreakspace}% 1284 | \newcommand{\crefmiddleconjunction}{, }% 1285 | \newcommand{\creflastconjunction}{ 和\nobreakspace}% 1286 | \newcommand{\crefpairgroupconjunction}{ 和\nobreakspace}% 1287 | \newcommand{\crefmiddlegroupconjunction}{, }% 1288 | \newcommand{\creflastgroupconjunction}{, 和\nobreakspace}% 1289 | % crefname 1290 | \Crefname{framenumber}{幻灯}{幻灯} 1291 | \Crefname{equation}{式}{式}% 1292 | \Crefname{figure}{图}{图}% 1293 | \Crefname{subfigure}{图}{图}% 1294 | \Crefname{table}{表}{表}% 1295 | \Crefname{subtable}{表}{表}% 1296 | \Crefname{page}{页}{页}% 1297 | \Crefname{part}{Part}{Parts}% 1298 | \Crefname{chapter}{章}{章}% 1299 | \Crefname{section}{节}{节}% 1300 | \Crefname{subsection}{节}{节}% 1301 | \Crefname{subsubsection}{节}{节}% 1302 | \Crefname{appendix}{附录}{附录}% 1303 | \Crefname{subappendix}{附录}{附录}% 1304 | \Crefname{subsubappendix}{附录}{附录}% 1305 | \Crefname{subsubsubappendix}{附录}{附录}% 1306 | \Crefname{enumi}{点}{点}% 1307 | \Crefname{enumii}{点}{点}% 1308 | \Crefname{enumiii}{点}{点}% 1309 | \Crefname{enumiv}{点}{点}% 1310 | \Crefname{enumv}{点}{点}% 1311 | \Crefname{footnote}{脚注}{脚注}% 1312 | \Crefname{theorem}{定理}{定理}% 1313 | \Crefname{lemma}{引理}{引理}% 1314 | \Crefname{corollary}{推论}{推论}% 1315 | \Crefname{proposition}{命题}{命题}% 1316 | \Crefname{definition}{定义}{定义}% 1317 | \Crefname{result}{结果}{结果}% 1318 | \Crefname{example}{例}{例}% 1319 | \Crefname{remark}{注}{注}% 1320 | \Crefname{note}{注}{注}% 1321 | \Crefname{algorithm}{算法}{算法}% 1322 | \Crefname{listing}{代码}{代码}% 1323 | \Crefname{line}{Line}{Lines}% 1324 | %} 1325 | \else\EqualOptionsBeamer{LanguageMode}{en}% 1326 | \Crefname{framenumber}{Slide}{Slides} 1327 | \fi 1328 | % ---------------- 1329 | 1330 | 1331 | %%%% ---------------------------------------------------------------- 1332 | \endinput 1333 | %%%% ---------------------------------------------------------------- 1334 | % End of file `beamerthemescu.sty'. -------------------------------------------------------------------------------- /fonts/README.md: -------------------------------------------------------------------------------- 1 | 本文件夹为字体存放文件夹. 2 | -------------------------------------------------------------------------------- /image/Fy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/image/Fy.pdf -------------------------------------------------------------------------------- /image/logo_name.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/image/logo_name.pdf -------------------------------------------------------------------------------- /image/stop-bk.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/image/stop-bk.pdf -------------------------------------------------------------------------------- /image/stop-gn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/image/stop-gn.pdf -------------------------------------------------------------------------------- /image/stop-rd.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/image/stop-rd.pdf -------------------------------------------------------------------------------- /main-en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/main-en.pdf -------------------------------------------------------------------------------- /main-en.tex: -------------------------------------------------------------------------------- 1 | % !TeX encoding = UTF-8 2 | % !BIB TS-program = biber 3 | % !TeX TS-program = xelatex 4 | % This is file `main-en.tex'. 5 | % Copyright (C) 2021-2022 by Linrong Wu. 6 | % Version: 2022/04/13 v1.3b (Original Version: 2022/04/13 v1.3b). 7 | % 本文件为 SCU_Beamer_Slide-demo 主文件源文件. 8 | % !使用前请阅读用户手册. 9 | 10 | % ================ % 11 | % 导言区 % 12 | % ================ % 13 | \documentclass[hyperref, UTF8, CJK]{beamer} 14 | %\special{dvipdfmx:config z 0} 15 | 16 | % --------SCU Beamer 模板宏包-------- 17 | % ---------------- 18 | \usetheme[ 19 | CodeDisplay=minted, 20 | LanguageMode=en, 21 | MintedStyle=dracula, 22 | ColorDisplay=BSblue, 23 | Background=false 24 | ]{scu}%, BIBMode=none 25 | 26 | % --------宏包调用-------- 27 | % ---------------- 28 | \usepackage{transparent} 29 | \usepackage{array} 30 | \usepackage{algorithm,algorithmic} 31 | \usepackage[english]{babel} 32 | \usepackage{color} % color content 33 | \usepackage{url} % hyperlinks 34 | \usepackage{multicol,multirow} 35 | \usepackage{ulem} % ulem: 添加线. 36 | \usepackage{booktabs} 37 | \usepackage{cprotect} 38 | \usepackage{makecell} 39 | \usepackage{listings} 40 | \usepackage{subcaption} 41 | \usepackage{varioref,cleveref} 42 | %\usepackage[active,tightpage]{preview} 43 | %\PreviewEnvironment{scucode} 44 | 45 | % --------newcommand 区-------- 46 | % 建议在此定义常用命令. 47 | % ---------------- 48 | \newcommand{\fverb}[1]{\texttt{#1}} 49 | 50 | % --------封面信息输入-------- 51 | % [], {} 方括号内容显示在页脚, 花括号内容为全称显示在封面. 52 | % ---------------- 53 | \title[A brief example in English for SCU Beamer Theme]{A brief example in English} 54 | \subtitle{For SCU Beamer Theme} % subtitle 未设置页脚显示项, 请在 title 中设置. 55 | \author[Linrong Wu]{Linrong Wu} 56 | \institute{% 57 | Management Science\\ 58 | Business School, Sichuan University\\ 59 | \textit{lr.wu.interact@outlook.com} 60 | } 61 | \date{\today} 62 | 63 | % ---------------- % 64 | % 正文区 % 65 | % ---------------- % 66 | \begin{document} 67 | 68 | % --------总目录-------- 69 | % 可注释. 70 | % ---------------- 71 | % \begin{frame}{目录} 72 | % %\transfade%淡入淡出 73 | % \tableofcontents % 显示目录. 74 | % \end{frame} 75 | 76 | % --------节: 介绍-------- 77 | % ---------------- 78 | \section{Introduction} 79 | \subsection{The Project} 80 | \begin{frame}{Info.} 81 | \faShare*\enspace{\color{scublue}lr.wu.interact@outlook.com} 82 | \faGithub\enspace{\color{scublue}\url{https://github.com/FvNCCR228/SCU_Beamer_Slide-demo}} 83 | 84 | 85 | \end{frame} 86 | 87 | % --------节: 区块示例-------- 88 | % ---------------- 89 | \section{Blocks} 90 | \subsection{Math Blocks} 91 | \begin{frame}[fragile,allowframebreaks]{Math Blocks} 92 | \begin{scutheorem}{A Theorem}[theorem1] 93 | \begin{equation} 94 | \dfrac{1}{n} \sum_{k=1}^{n} X_k - \dfrac{1}{n} \sum_{k=1}^{n} E(X_k) \stackrel{\;P\;}{\longrightarrow} 0 95 | \end{equation} 96 | \end{scutheorem} 97 | \begin{scuproof}{} 98 | A proof block. 99 | \end{scuproof} 100 | \begin{scuexample}{An Example}[example1] 101 | An example block. 102 | \end{scuexample} 103 | \begin{scualgorithm}{An Algorithm}[algorithm1] 104 | \begin{algorithmic}[1] 105 | \REQUIRE \LaTeX{} 106 | \ENSURE Computer 107 | \STATE ST 108 | \STATE A 109 | \STATE TE 110 | \RETURN Beamer 111 | \end{algorithmic} 112 | \end{scualgorithm} 113 | \begin{scudefinition}{A Defintion}[defintion1] 114 | A definition block. 115 | \end{scudefinition} 116 | \begin{scuaxiom}{An Axiom}[axiom1] 117 | An axiom block. Reference to~\Vref{def:defintion1} 118 | \end{scuaxiom} 119 | \begin{scuproperty}{A Property}[property1] 120 | A property block. Reference to~\Cref{axio:axiom1} 121 | \end{scuproperty} 122 | \begin{scuproposition}{A Proposition}[proposition1] 123 | A proposition block. Reference to~\vref{prope:property1} 124 | \begin{equation} 125 | \Delta x \Delta p \geq \dfrac{h}{4\pi} 126 | \end{equation} 127 | 其中$h$为普朗克常数. 128 | \end{scuproposition} 129 | \begin{sculemma}{A lemma}[lemma1] 130 | A lemma block. Reference to~\cref{propo:proposition1} 131 | \end{sculemma} 132 | \begin{scucorollary}{A Corollary}[corollary1] 133 | A corollary block. 134 | \end{scucorollary} 135 | \begin{scuremark}{}[remark1] 136 | A remark block. 137 | \end{scuremark} 138 | \begin{scucondition}{A Condition}[condition1] 139 | A condition block. 140 | \end{scucondition} 141 | \begin{scuconclusion}{A Conclusion}[conclusion1] 142 | A conclusion block. 143 | \end{scuconclusion} 144 | \begin{scuassumption}{An Assumption}[assumption] 145 | An assumption block. 146 | \end{scuassumption} 147 | \end{frame} 148 | 149 | \begin{frame}{A Stared Block} 150 | \begin{scutheorem}*<1-4>[after title=(after title: Theorem)]{A Stared Theorem Block}[staredblock1] 151 | \begin{itemize}[<+->] 152 | \item One 153 | \item Two~\only<2>{Two} 154 | \item \alert<3>{Three} 155 | \item Four 156 | \end{itemize} 157 | \end{scutheorem} 158 | \begin{scutheorem}<2-5>[after title=(after title: Theorem)]{Another Stared Theorem Block}*[staredblock2] 159 | \begin{itemize} 160 | \item Five 161 | \item Six~\only<3>{Six} 162 | \item \alert<3>{Seven} 163 | \item Eight 164 | \end{itemize} 165 | \end{scutheorem} 166 | \end{frame} 167 | 168 | \subsection{Source Code Block} 169 | \begin{frame}[fragile]{Source Code Block}{With frame option ``fragile''} 170 | \onslide<2> 171 | \begin{scucode}{A Cpp Program.}[cppcode]{c} 172 | #include 173 | int main() 174 | { 175 | std::cout << "Hello World!" << std::endl; 176 | std::cin.get(); 177 | } 178 | \end{scucode} 179 | \onslide<1> 180 | \begin{scucode}{A Python Program.}[pythoncode]{python} 181 | for i in range(1,5): 182 | for j in range(1,5): 183 | for k in range(1,5): 184 | if( i != k ) and (i != j) and (j != k): 185 | print (i,j,k) 186 | \end{scucode} 187 | \end{frame} 188 | 189 | \begin{frame}[fragile]{A Stared Source Code Block} 190 | \begin{scucode*}{A Stared Block.}[staredblock3]{c} 191 | #include 192 | int main() 193 | { 194 | std::cout << "Hello World!" << std::endl; 195 | std::cin.get(); 196 | } 197 | \end{scucode*} 198 | \begin{scucode}{Another Stared Theorem Block.}*[pythoncode]{python} 199 | for i in range(1,5): 200 | for j in range(1,5): 201 | for k in range(1,5): 202 | if( i != k ) and (i != j) and (j != k): 203 | print (i,j,k) 204 | \end{scucode} 205 | \end{frame} 206 | 207 | \begin{frame}[fragile]{Highlight Line} 208 | \begin{scucode}{Highlight Line.}[Highlight1]{c}[highlightlines={2,5}] 209 | #include 210 | int main() 211 | { 212 | std::cout << "Hello World!" << std::endl; 213 | std::cin.get(); 214 | } 215 | \end{scucode} 216 | \begin{scucode}{Highlight Line.}[pythoncode]{python}[highlightlines={2-3,5}] 217 | for i in range(1,5): 218 | for j in range(1,5): 219 | for k in range(1,5): 220 | if( i != k ) and (i != j) and (j != k): 221 | print (i,j,k) 222 | \end{scucode} 223 | refer \vref{code:Highlight1,code:pythoncode} 224 | \end{frame} 225 | 226 | \begin{frame}[fragile]{\LaTeX{} Comment}{Escapeinline} 227 | If you wanna add comments to the back of the line, it is recommended to use the corresponding language comment directly. 228 | \begin{scucode}{Comment.}[Comment1]{c} 229 | #include 230 | int main() 231 | {// $\pi$ 232 | std::cout << "Hello World!" << std::endl; |# \textsf{\LaTeX{} out hEllo wOrld}| 233 | |\colorbox{scugreen!60}{$\sum_\pi^\phi \alpha + \Gamma$}| std::cin.get(); 234 | } 235 | \end{scucode} 236 | \begin{scucode}{Comment}[Comment2]{python}'@@' 237 | for i in range(1,5): 238 | for j in range(1,5): @$\sum_\pi^\phi \alpha + \Gamma$@ 239 | for k in range(1,5): # $\sum_\pi^\phi \alpha + \Gamma$ 240 | if( i != k ) and (i != j) and (j != k): 241 | print (i,j,k) 242 | \end{scucode} 243 | \end{frame} 244 | 245 | \begin{frame}[fragile]{Overlay \& Label}{Escapeinline} 246 | \begin{scucode}{Comment.}[Escapeinline1]{c} 247 | #include 248 | int main() 249 | { 250 | std::cout << "Hello World!" << std::endl; // \only<1>{Value 1}\only<2>{Value 2} 251 | std::cin.get(); 252 | } 253 | \end{scucode} 254 | \begin{scucode}{Comment}[Escapeinline2]{python}[highlightlines={4}]'@@' 255 | for i in range(1,5): 256 | for j in range(1,5): 257 | for k in range(1,5): 258 | if( i != k ) and (i != j) and (j != k): @\label{line:qg}@ 259 | print (i,j,k) 260 | \end{scucode} 261 | Reference to Line~\ref{line:qg}, the if statement. 262 | \end{frame} 263 | 264 | \begin{frame}[fragile]{Source Code From File} 265 | \scucodeinput{Source Code From File}{c}{A cpp.cpp} 266 | \end{frame} 267 | 268 | % --------节: 参考文献-------- 269 | % ---------------- 270 | % \section{Reference} 271 | % \subsection{Reference} 272 | % \begin{frame}[allowframebreaks]{Reference} 273 | % \nocite{*} 274 | % \printbibliography[heading=none] 275 | % \end{frame} 276 | 277 | % --------节: 致谢-------- 278 | % ---------------- 279 | % \section{Acknowledgement} 280 | % \subsection{Acknowledgement} 281 | \begin{frame} 282 | \centering 283 | \Huge Thanks! 284 | \end{frame} 285 | 286 | \end{document} 287 | 288 | %% End of file `main-en.tex'. -------------------------------------------------------------------------------- /main.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FvNCCR228/SCU-Beamer-Theme/6d1b61aed9ae80a99059f7e6f54259b5d89a1417/main.pdf -------------------------------------------------------------------------------- /main.tex: -------------------------------------------------------------------------------- 1 | % !TeX encoding = UTF-8 2 | % !BIB TS-program = biber 3 | % !TeX TS-program = xelatex 4 | % This is file `main.tex'. 5 | % Copyright (C) 2021-2024 by Linrong Wu. 6 | % Version: 2024/10/31 v1.3e (Original Version: 2021/11/30 v1.0a). 7 | % 本文件为 SCU_Beamer_Slide-demo 主文件源文件. 8 | % !使用前请阅读用户手册. 9 | 10 | % ================ % 11 | % 导言区 % 12 | % ================ % 13 | \documentclass[hyperref, UTF8, CJK]{beamer} 14 | %\special{dvipdfmx:config z 0} 15 | 16 | % \colorlet{PrimaryC}{white} 17 | % \colorlet{BackgroundC}{black} 18 | % \colorlet{NomalTextC}{white} 19 | 20 | % --------SCU Beamer 模板宏包-------- 21 | % ---------------- 22 | \usetheme[ColorDisplay=Custom, 23 | ContentMuticols=true, 24 | Miniframes=follow, 25 | Background=false 26 | ]{scu} 27 | 28 | % --------不要调用的宏包-------- 29 | % ---------------- 30 | %\usepackage{pstricks} % pstricks: 绘图. (请勿调用, 本模板中调用的 adjustbox 宏包与之冲突) 31 | 32 | % --------宏包调用-------- 33 | % ---------------- 34 | \usepackage{transparent} 35 | \usetikzlibrary{shadings,arrows,decorations.pathmorphing,patterns} 36 | \usepackage{array} 37 | \usepackage{algorithm,algorithmic} 38 | \usepackage[english]{babel} 39 | \usepackage{color} % color content 40 | \usepackage{url} % hyperlinks 41 | \usepackage{multicol,multirow} 42 | \usepackage{ulem} % ulem: 添加线. 43 | \usepackage{booktabs} 44 | \usepackage{cprotect} 45 | \usepackage{makecell} 46 | \usepackage{listings} 47 | \usepackage{subcaption} 48 | \usepackage{varioref,cleveref} 49 | %\usepackage[active,tightpage]{preview} 50 | %\PreviewEnvironment{pspicture} 51 | 52 | % --------newcommand 区-------- 53 | % 建议在此定义常用命令. 54 | % ---------------- 55 | \newcommand{\fverb}[1]{\texttt{#1}} 56 | 57 | % --------封面信息输入-------- 58 | % [], {} 方括号内容显示在页脚, 花括号内容为全称显示在封面. 59 | % ---------------- 60 | \title[四川大学虚拟偶像研究 | Beamer模板使用答辩]{四川大学虚拟偶像研究} 61 | \subtitle{Beamer模板使用答辩} % subtitle 未设置页脚显示项, 请在 title 中设置. 62 | \author[我不卷, 你才卷]{马老卷\inst{1} \and 马小卷\inst{2}} 63 | \institute{% 64 | \inst{1} 混元形翼太极门 65 | ~(\textit{MaLJFake@taichi.hunyuan}) 66 | \vspace*{-6pt} \and 67 | \inst{2} ~Management Science, Business School, Sichuan University 68 | \\(\textit{MaXJFake@scu.edu.cn}) 69 | } 70 | \date{April 16th, 2024} 71 | 72 | % ---------------- % 73 | % 正文区 % 74 | % ---------------- % 75 | \begin{document} 76 | 77 | % --------总目录-------- 78 | % 可注释. 79 | % ---------------- 80 | % \begin{frame}{目录} 81 | % %\transfade%淡入淡出 82 | % \tableofcontents % 显示目录. 83 | % \end{frame} 84 | 85 | % --------节: 声明-------- 86 | % ---------------- 87 | \section{引言} 88 | \subsection{研究现状} 89 | \begin{frame}{关于本模板}%=0.85 90 | \begin{itemize} 91 | \item 创建初衷: 92 | \begin{itemize} 93 | \item 编者本人对\LaTeX{} 稍有涉足, 这也是编者的首个Beamer模板, 模板创建源于本学院李璐老师提出的PPT修改意见; 94 | \item 项目也源于制作者本人的兴趣, 但本人对\LaTeX{} 的了解仍处在较浅层次, 故编写的模板可能会存在不兼容、编译后版式错位等现象; 95 | \end{itemize} 96 | \item 项目地址: 97 | \begin{itemize} 98 | \item 使用前请前往下列地址中查看模板版本! 99 | \item \faGithub\enspace{\color{scublue}\url{https://github.com/FvNCCR228/SCU_Beamer_Slide-demo}} 100 | \item Gitee: \color{scublue}\url{https://gitee.com/NCCR/SCU_Beamer_Slide-demo} 101 | \end{itemize} 102 | % \framebreak 103 | % \pagebreak 104 | \item 联系方式: 105 | \begin{itemize} 106 | \item 制作者: lr.wu.interact@outlook.com 107 | \end{itemize} 108 | \end{itemize} 109 | \end{frame} 110 | 111 | \begin{frame}{使用注意}{雪豹闭嘴} 112 | \begin{itemize} 113 | \item<1-> \LaTeX 编辑器: 114 | \begin{itemize} 115 | \item<1-> 本地: TeX Live (推荐\href{https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/}{\color{scublue}清华大学开源软件镜像站}安装最新版)配合TeXstudio或VS Code使用. TeX Live安装时间极长, 请各位做好心理准备. 此外Apple设备IDE平台建议知乎; 116 | \item<1-> 在线: Overleaf平台, TeXPage平台. 117 | \end{itemize} 118 | \item<2-> \LaTeX 相关插件: 119 | \begin{itemize} 120 | \item<2-> 表格转换: Excel2\LaTeX~(\href{https://www.ctan.org/tex-archive/support/excel2latex/}{\color{scublue}CTAN Excel2\LaTeX}); 121 | \item<2-> 在线公式: \href{https://www.latexlive.com/}{\color{scublue}LaTeX公式编辑器}, \href{https://mathpix.com/}{\color{scublue} 122 | Mathpix}~\&~\href{https://mathf.itewqq.cn/}{\color{scublue}图片在线转LaTeX}. 123 | \end{itemize} 124 | \item<3-> \color{scured}!! 编译相关: 125 | \begin{itemize} 126 | \item<3-> \alert{!! 请使用UTF-8格式, 设置XeLaTeX和Biber进行编译}; 127 | \item<3-> 在线编辑请上传整个工作文件夹, 否则会出现严重错误(Bug遍地飞); 128 | \item<3-> \color{scured}!! 对\LaTeX 不熟悉的情况下, 请勿轻易改动".sty"文件(宏包文件)中代码, 也可按照文件中注释进行实验性修改(注意保留备份). 129 | \end{itemize} 130 | \item<4-> \color{scured} 建议使用Adobe Acrobat作为PDF浏览器(Ctrl+L全屏食用效果良好). 131 | \end{itemize} 132 | \end{frame} 133 | 134 | % --------节: 研究分析-------- 135 | % ---------------- 136 | \section{研究分析} 137 | \subsection{字} 138 | \begin{frame}[fragile]{添加线} 139 | \begin{multicols}{2} 140 | \verb|\uline|\hfill 下划线\qquad\uline{混}\\ 141 | \verb|\uuline|\hfill 双下划线\qquad\uuline{元}\\ 142 | \verb|\uwave|\hfill 波浪线\qquad\uwave{形}\\ 143 | \verb|\sout|\hfill 删除线\qquad\sout{翼}\\ 144 | \verb|\xout|\hfill 斜删除线\qquad\xout{太}\\ 145 | \verb|\dashuline|\hfill 虚线\qquad\dashuline{极}\\ 146 | \verb|\dotuline|\hfill 加点\qquad\dotuline{门} 147 | \end{multicols} 148 | \end{frame} 149 | 150 | \subsection{图, 表, 代码} 151 | \begin{frame}{图} 152 | \begin{figure}[h] 153 | \begin{subfigure}{.4\columnwidth} 154 | \centering 155 | \includegraphics% 156 | [width=.3\columnwidth]{stop-rd.pdf} 157 | \caption{白天的暂停} 158 | \end{subfigure} 159 | \quad 160 | \begin{subfigure}{.4\columnwidth} 161 | \centering 162 | \includegraphics% 163 | [width=.3\columnwidth]{stop-gn.pdf} 164 | \caption{晚上的暂停} 165 | \end{subfigure} 166 | \caption{掌门常用的暂停} 167 | \end{figure} 168 | \begin{figure}[h] 169 | \begin{minipage}[t]{.4\columnwidth} 170 | \centering 171 | \includegraphics% 172 | [width=.3\columnwidth]{stop-rd.pdf} 173 | \caption{掌门白天的暂停} 174 | \label{fig:ZhangmenBtdzt} 175 | \end{minipage} 176 | \quad 177 | \begin{minipage}[t]{.4\columnwidth} 178 | \centering 179 | \includegraphics% 180 | [width=.3\columnwidth]{stop-gn.pdf} 181 | \caption{掌门晚上的暂停} 182 | \label{fig:ZhangmenWsdzt} 183 | \end{minipage} 184 | \end{figure} 185 | \end{frame} 186 | 187 | \cprotEnv\begin{frame} 188 | \frametitle{表} 189 | 表格太麻烦了, 掌门说摸摸鱼, 编者觉得不错, 丢一个三线表示例. 当然也可以看看这个手册前面部分表格的源码. 190 | \scugoto{fig:ZhangmenWsdzt}{FIG} 191 | \begin{table}[htbp] 192 | \centering 193 | \caption{一些国风音乐} 194 | \label{tab:YixieGfyy} 195 | \begin{tabular}{rlc} 196 | \toprule 197 | 作曲家 & 歌名 & 门中喜欢的友人 \\ 198 | \midrule 199 | 李志辉 & 小桥流水人家 & 门主 \\ 200 | 林海 & 无羁(器乐版) & 初号 \\ 201 | 吕秀龄 & 逆伦 & 小初 \\ 202 | 麦振鸿 & 从来只有一个人 & 编者(假的) \\ 203 | \bottomrule 204 | \end{tabular} 205 | \end{table} 206 | \end{frame} 207 | 208 | \subsection{代码环境} 209 | \begin{frame}[fragile]{代码环境演示} 210 | \onslide<2> 211 | \begin{scucode}{A welcome program.}[cpphelloworld]{c} 212 | #include 213 | int main() 214 | { 215 | std::cout << "Hello World!" << std::endl; 216 | std::cin.get(); 217 | } 218 | \end{scucode} 219 | \onslide<1> 220 | \begin{scucode}{A welcome program.}[chelloworld]{c} 221 | #include 222 | int main() 223 | { 224 | printf("Hello World!"); 225 | return 0; 226 | } 227 | \end{scucode} 228 | \end{frame} 229 | 230 | \subsection{数学, 这小节很长很长} 231 | \begin{frame}[fragile,allowframebreaks]{数学环境} 232 | \begin{scutheorem}{切比雪夫大数率}[QiebiXfdsl] 233 | 对独立随机变量序列$\{X_k\}$, 若$E(X_k)$, $D(X_k)$都存在, $k=1,2,\cdots$, 且有常数$C$, 使得$D(X_k)\leq C$, $k=1,2,\cdots$, 则有 234 | \begin{equation} 235 | \dfrac{1}{n} \sum_{k=1}^{n} X_k - \dfrac{1}{n} \sum_{k=1}^{n} E(X_k) \stackrel{\;P\;}{\longrightarrow} 0 236 | \end{equation} 237 | \end{scutheorem} 238 | \begin{scuproof}{} 239 | 请读者自证. 240 | \end{scuproof} 241 | \begin{scuexample}{形翼门的规模}[HunyuanXytjmdgm] 242 | 本门昨天去了80个人打水, 今天去了79个人打水, 本门的规模有多大? 243 | \end{scuexample} 244 | \begin{scualgorithm}{怎么写Beamer模板}[ZengmoXBeamerzs] 245 | \begin{algorithmic}[1] 246 | \REQUIRE 一点点\LaTeX 知识, 不要太信任百度 247 | \ENSURE 不知道怎么搞 248 | \STATE 问门主, 肯定不知道 249 | \STATE 问初号, 当然不知道 250 | \STATE 问小初, 还是不知道 251 | \RETURN 算了, 不问了, 都是不知道 252 | \end{algorithmic} 253 | \end{scualgorithm} 254 | \begin{scudefinition}{马老卷}[MalaoJ] 255 | 是形翼门的打砸工, 直系上峰是马凡王, 入门改姓马, 自称老卷, 实则不卷. 256 | \end{scudefinition} 257 | \begin{scuaxiom}{皮亚诺公理}[PiyaNgl] 258 | 略. 259 | \end{scuaxiom} 260 | \begin{scuproperty}{刚体的性质}[GangtiDxz] 261 | 刚体是个理想模型. 虽然理想但是还是那么难整, 进动和章动就不会了. 262 | \end{scuproperty} 263 | \begin{scuproposition}{不确定性原理}[BuqueDxyl] 264 | 粒子的位置与动量不可同时被确定, 位置的不确定性与动量的不确定性遵守不等式 265 | \begin{equation} 266 | \Delta x \Delta p \geq \dfrac{h}{4\pi} 267 | \end{equation} 268 | 其中$h$为普朗克常数. 269 | \end{scuproposition} 270 | \begin{sculemma}{卷王森林法则}[JuanwangSlfz] 271 | 源自未知高校学生, 此处略. 272 | \end{sculemma} 273 | \begin{scucorollary}{狼人杀的重要性}[LangrenSdzyx] 274 | 编者实习时听公司导师说面试有可能是趣味性游戏, 狼人杀感觉很符合, 所以玩狼人杀吧. 275 | \end{scucorollary} 276 | \begin{scuremark}{}[Zhu] 277 | \vref{coro:LangrenSdzyx}, 只是推论, 编者瞎说的. 278 | \end{scuremark} 279 | \begin{scucondition}{面试狼人杀的条件}[MianshiLrsdtj] 280 | \vref{coro:LangrenSdzyx}, 此推论有条件, 即真有公司面试用狼人杀. 281 | \end{scucondition} 282 | \begin{scuconclusion}{爱废话的编者}[AifeiHdbz] 283 | 由上述可知: 编者爱废话. 284 | \end{scuconclusion} 285 | \begin{scuassumption}{编者不会废话}[BianzheBhfh] 286 | 我们可以假设编者不会废话, 假设成立, 编者当然不会废话. 287 | \end{scuassumption} 288 | \end{frame} 289 | 290 | \begin{frame}[fragile,allowframebreaks]{数学公式} 291 | 麦克斯韦分布函数$f(v) = \dfrac{\mathrm{d}N}{N\,\mathrm{d}v} = 4\pi \Big(\dfrac{\mu}{2\pi kT}\Big)^{3/2} v^2 \mathrm{exp}\Big(-\dfrac{\mu v^2}{2kT}\Big)$.\\[1ex] 292 | 最概然速率\[v_p = \sqrt{\dfrac{2kT}{\mu}} = \sqrt{\dfrac{2RT}{M}}\]其中$R$是气体常数, $M = N_A \mu$是物质的摩尔质量.\\[1ex] 293 | \begin{equation*} 294 | \bar{v} = \int_0^\infty vf(v)\,\mathrm{d}v = \sqrt{\dfrac{8kT}{\pi\mu}} = \sqrt{\dfrac{8RT}{\pi M}} 295 | \end{equation*} 296 | 方均根速率 297 | \begin{equation} 298 | v_{rms} = \Big(\int_0^\infty v^2f(v)\,\mathrm{d}v\Big)^{1/2} = \sqrt{\dfrac{3kT}{\mu}} = \sqrt{\dfrac{3RT}{M}} 299 | \end{equation} 300 | $\symbb{R}\symbbit{R}\symcal{R}\symscr{R}\symfrak{R}\symsfup{R}\symsfit{R}\symbfsf{R}\symbfup{R}\symbfit{R}\symbfcal{R}\symbfscr{R}\symbffrak{R}\symbfsfup{R}\symbfsfit{R}$\\[1ex] 301 | 多行公式 302 | \begin{multline} 303 | A=\lim_{n\rightarrow\infty}\Delta x\left(a^{2}+\left(a^{2}+2a\Delta x+\left(\Delta x\right)^{2}\right)\right.\label{eq:reset}\\ 304 | +\left(a^{2}+2\cdot2a\Delta x+2^{2}\left(\Delta x\right)^{2}\right)\\ 305 | +\left(a^{2}+2\cdot3a\Delta x+3^{2}\left(\Delta x\right)^{2}\right)\\ 306 | +\ldots\\ 307 | \left.+\left(a^{2}+2\cdot(n-1)a\Delta x+(n-1)^{2}\left(\Delta x\right)^{2}\right)\right)\\ 308 | =\frac{1}{3}\left(b^{3}-a^{3}\right) 309 | \end{multline}\\[1ex] 310 | 质能方程 311 | \begin{align} 312 | E=m&c^2 & &E=mc^2\\ 313 | E=~&mc^2 & E&=mc^2 \notag \\ 314 | E&=mc^2 & E=~&mc^2\\ 315 | &E=mc^2 & E=m&c^2 316 | \end{align} 317 | ? 318 | \begin{equation} 319 | \begin{aligned} 320 | \dfrac{\mathrm{d}}{\mathrm{d}t} \symbfit{f} &= \dfrac{\mathrm{d}f_x}{\mathrm{d}t} \symbfit{\hat{i}} + \dfrac{\mathrm{d}\symbfit{\hat{i}}}{\mathrm{d}t} f_x + \dfrac{\mathrm{d}f_y}{\mathrm{d}t} \symbfit{\hat{j}} + \dfrac{\mathrm{d}\symbfit{\hat{j}}}{\mathrm{d}t} f_y + \dfrac{\mathrm{d}f_z}{\mathrm{d}t} \symbfit{\hat{k}} + \dfrac{\mathrm{d}\symbfit{\hat{k}}}{\mathrm{d}t} f_z \\ 321 | &= \dfrac{\mathrm{d}f_x}{\mathrm{d}t} \symbfit{\hat{i}} + \dfrac{\mathrm{d}f_y}{\mathrm{d}t} \symbfit{\hat{j}} + \dfrac{\mathrm{d}f_z}{\mathrm{d}t} \symbfit{\hat{k}} + \big[\symbf{\Omega} \times \big( f_x \symbfit{\hat{i}} + f_y \symbfit{\hat{j}} + f_z \symbfit{\hat{k}}\big) \big] \\ 322 | &= \Big(\dfrac{\mathrm{d}\symbfit{f}}{\mathrm{d}t}\Big)_r + \symbf{\Omega} \times \symbfit{f}(t) 323 | \end{aligned} 324 | \end{equation} 325 | ! 326 | \begin{equation} 327 | \begin{dcases} 328 | \oint_l \symbfit{H} \cdot \mathrm{d}\symbfit{l} = \iint_S \symbfit{J} \cdot \mathrm{d}\symbfit{S} + \iint_S \dfrac{\partial\symbfit{D}}{\partial t} \cdot \mathrm{d}\symbfit{S} \\ 329 | \oint_l \symbfit{E} \cdot \mathrm{d}\symbfit{l} = - \iint_S \dfrac{\partial\symbfit{B}}{\partial t} \cdot \mathrm{d}\symbfit{S} \\ 330 | \oint_S \symbfit{B} \cdot \mathrm{d}\symbfit{S} = 0 \\ 331 | \oint_S \symbfit{D} \cdot \mathrm{d}\symbfit{S} = \iiint_V \rho \mathrm{d}V 332 | \end{dcases} 333 | \end{equation} 334 | \end{frame} 335 | 336 | % --------节: 总结与思考-------- 337 | % ---------------- 338 | \section{总结与思考} 339 | \subsection{页面相关} 340 | \begin{frame}[fragile,label={fra:Fenlan}]{分栏} 341 | \vspace{1ex} 342 | \begin{columns} 343 | \begin{column}[t]{0.35\linewidth} 344 | 这里是栏一 345 | \begin{figure}[h] 346 | \begin{center} 347 | \includegraphics[width=.8\columnwidth]{logo_name} 348 | \\四川大学校徽及校名\\ 349 | \vspace{1ex} 350 | \includegraphics[width=.4\columnwidth]{Fy} 351 | \\四川大学飞扬俱乐部 352 | \end{center} 353 | \end{figure} 354 | \end{column} 355 | \pause 356 | \begin{column}[t]{0.4\linewidth} 357 | 这里是栏二 358 | \vspace{1ex} 359 | \begin{itemize} 360 | \item 无序列表环境示例 361 | \begin{enumerate} 362 | \item 有序列表环境示例 363 | \item 有序列表环境示例 364 | \item 有序列表环境示例 365 | \end{enumerate} 366 | \item 无序列表环境示例 367 | \item 无序列表环境示例 368 | \end{itemize} 369 | \end{column} 370 | \pause 371 | \begin{column}[t]{0.25\linewidth} 372 | 这里是栏三 373 | \par\vskip1ex 374 | 四川大学校训\\ 375 | \vskip2ex 376 | 海纳百川\\[.5ex] 377 | 有容乃大 378 | \end{column} 379 | \end{columns} 380 | \end{frame} 381 | 382 | \subsection{引用} 383 | \begin{frame}[fragile]{交叉引用} 384 | 在Beamer中应避免过多的交叉引用, 此处编者给出了常用的引用命令及其示例. 385 | \begin{table}[h] 386 | \centering 387 | \caption{交叉引用命令表} 388 | \label{tab:JiaochaYymlb} 389 | \begin{tabular}{lcl} 390 | \toprule 391 | 命令 & 显示项 & 示例 \\ 392 | \midrule 393 | \verb|\ref|\verb|{