├── .gitignore ├── License ├── README.md ├── elegantpaper-cn.tex ├── elegantpaper-en.tex ├── elegantpaper.cls ├── image └── founder.png └── reference.bib /.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 | .DS_Store 15 | clean.bat 16 | elegant*-cn.pdf 17 | elegant*-en.pdf 18 | *.dates 19 | 20 | ## Intermediate documents: 21 | *.dvi 22 | *.xdv 23 | *-converted-to.* 24 | # these rules might exclude image files for figures etc. 25 | # *.ps 26 | # *.eps 27 | # *.pdf 28 | 29 | ## Generated if empty string is given at "Please type another file name for output:" 30 | .pdf 31 | 32 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 33 | *.bbl 34 | *.bcf 35 | *.blg 36 | *-blx.aux 37 | *-blx.bib 38 | *.run.xml 39 | 40 | ## Build tool auxiliary files: 41 | *.fdb_latexmk 42 | *.synctex 43 | *.synctex(busy) 44 | *.synctex.gz 45 | *.synctex.gz(busy) 46 | *.pdfsync 47 | 48 | ## Auxiliary and intermediate files from other packages: 49 | # algorithms 50 | *.alg 51 | *.loa 52 | 53 | # achemso 54 | acs-*.bib 55 | 56 | # amsthm 57 | *.thm 58 | 59 | # beamer 60 | *.nav 61 | *.pre 62 | *.snm 63 | *.vrb 64 | 65 | # changes 66 | *.soc 67 | 68 | # cprotect 69 | *.cpt 70 | 71 | # elsarticle (documentclass of Elsevier journals) 72 | *.spl 73 | 74 | # endnotes 75 | *.ent 76 | 77 | # fixme 78 | *.lox 79 | 80 | # feynmf/feynmp 81 | *.mf 82 | *.mp 83 | *.t[1-9] 84 | *.t[1-9][0-9] 85 | *.tfm 86 | 87 | #(r)(e)ledmac/(r)(e)ledpar 88 | *.end 89 | *.?end 90 | *.[1-9] 91 | *.[1-9][0-9] 92 | *.[1-9][0-9][0-9] 93 | *.[1-9]R 94 | *.[1-9][0-9]R 95 | *.[1-9][0-9][0-9]R 96 | *.eledsec[1-9] 97 | *.eledsec[1-9]R 98 | *.eledsec[1-9][0-9] 99 | *.eledsec[1-9][0-9]R 100 | *.eledsec[1-9][0-9][0-9] 101 | *.eledsec[1-9][0-9][0-9]R 102 | 103 | # glossaries 104 | *.acn 105 | *.acr 106 | *.glg 107 | *.glo 108 | *.gls 109 | *.glsdefs 110 | 111 | # gnuplottex 112 | *-gnuplottex-* 113 | 114 | # gregoriotex 115 | *.gaux 116 | *.gtex 117 | 118 | # htlatex 119 | *.4ct 120 | *.4tc 121 | *.idv 122 | *.lg 123 | *.trc 124 | *.xref 125 | 126 | # hyperref 127 | *.brf 128 | 129 | # knitr 130 | *-concordance.tex 131 | # TODO Comment the next line if you want to keep your tikz graphics files 132 | *.tikz 133 | *-tikzDictionary 134 | 135 | # listings 136 | *.lol 137 | 138 | # makeidx 139 | *.idx 140 | *.ilg 141 | *.ind 142 | *.ist 143 | 144 | # minitoc 145 | *.maf 146 | *.mlf 147 | *.mlt 148 | *.mtc[0-9]* 149 | *.slf[0-9]* 150 | *.slt[0-9]* 151 | *.stc[0-9]* 152 | 153 | # minted 154 | _minted* 155 | *.pyg 156 | 157 | # morewrites 158 | *.mw 159 | 160 | # nomencl 161 | *.nlg 162 | *.nlo 163 | *.nls 164 | 165 | # pax 166 | *.pax 167 | 168 | # pdfpcnotes 169 | *.pdfpc 170 | 171 | # sagetex 172 | *.sagetex.sage 173 | *.sagetex.py 174 | *.sagetex.scmd 175 | 176 | # scrwfile 177 | *.wrt 178 | 179 | # sympy 180 | *.sout 181 | *.sympy 182 | sympy-plots-for-*.tex/ 183 | 184 | # pdfcomment 185 | *.upa 186 | *.upb 187 | 188 | # pythontex 189 | *.pytxcode 190 | pythontex-files-*/ 191 | 192 | # thmtools 193 | *.loe 194 | 195 | # TikZ & PGF 196 | *.dpth 197 | *.md5 198 | *.auxlock 199 | 200 | # todonotes 201 | *.tdo 202 | 203 | # easy-todo 204 | *.lod 205 | 206 | # xmpincl 207 | *.xmpi 208 | 209 | # xindy 210 | *.xdy 211 | 212 | # xypic precompiled matrices 213 | *.xyc 214 | 215 | # endfloat 216 | *.ttt 217 | *.fff 218 | 219 | # Latexian 220 | TSWLatexianTemp* 221 | 222 | ## Editors: 223 | # WinEdt 224 | *.bak 225 | *.sav 226 | 227 | # Texpad 228 | .texpadtmp 229 | 230 | # Kile 231 | *.backup 232 | 233 | # KBibTeX 234 | *~[0-9]* 235 | 236 | # auto folder when using emacs and auctex 237 | ./auto/* 238 | *.el 239 | 240 | # expex forward references with \gathertags 241 | *-tags.tex 242 | 243 | # standalone packages 244 | *.sta 245 | 246 | # generated if using elsarticle.cls 247 | *.spl 248 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | The LaTeX Project Public License 2 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3 | 4 | LPPL Version 1.3c 2008-05-04 5 | 6 | Copyright 1999 2002-2008 LaTeX3 Project 7 | Everyone is allowed to distribute verbatim copies of this 8 | license document, but modification of it is not allowed. 9 | 10 | 11 | PREAMBLE 12 | ======== 13 | 14 | The LaTeX Project Public License (LPPL) is the primary license under 15 | which the LaTeX kernel and the base LaTeX packages are distributed. 16 | 17 | You may use this license for any work of which you hold the copyright 18 | and which you wish to distribute. This license may be particularly 19 | suitable if your work is TeX-related (such as a LaTeX package), but 20 | it is written in such a way that you can use it even if your work is 21 | unrelated to TeX. 22 | 23 | The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', 24 | below, gives instructions, examples, and recommendations for authors 25 | who are considering distributing their works under this license. 26 | 27 | This license gives conditions under which a work may be distributed 28 | and modified, as well as conditions under which modified versions of 29 | that work may be distributed. 30 | 31 | We, the LaTeX3 Project, believe that the conditions below give you 32 | the freedom to make and distribute modified versions of your work 33 | that conform with whatever technical specifications you wish while 34 | maintaining the availability, integrity, and reliability of 35 | that work. If you do not see how to achieve your goal while 36 | meeting these conditions, then read the document `cfgguide.tex' 37 | and `modguide.tex' in the base LaTeX distribution for suggestions. 38 | 39 | 40 | DEFINITIONS 41 | =========== 42 | 43 | In this license document the following terms are used: 44 | 45 | `Work' 46 | Any work being distributed under this License. 47 | 48 | `Derived Work' 49 | Any work that under any applicable law is derived from the Work. 50 | 51 | `Modification' 52 | Any procedure that produces a Derived Work under any applicable 53 | law -- for example, the production of a file containing an 54 | original file associated with the Work or a significant portion of 55 | such a file, either verbatim or with modifications and/or 56 | translated into another language. 57 | 58 | `Modify' 59 | To apply any procedure that produces a Derived Work under any 60 | applicable law. 61 | 62 | `Distribution' 63 | Making copies of the Work available from one person to another, in 64 | whole or in part. Distribution includes (but is not limited to) 65 | making any electronic components of the Work accessible by 66 | file transfer protocols such as FTP or HTTP or by shared file 67 | systems such as Sun's Network File System (NFS). 68 | 69 | `Compiled Work' 70 | A version of the Work that has been processed into a form where it 71 | is directly usable on a computer system. This processing may 72 | include using installation facilities provided by the Work, 73 | transformations of the Work, copying of components of the Work, or 74 | other activities. Note that modification of any installation 75 | facilities provided by the Work constitutes modification of the Work. 76 | 77 | `Current Maintainer' 78 | A person or persons nominated as such within the Work. If there is 79 | no such explicit nomination then it is the `Copyright Holder' under 80 | any applicable law. 81 | 82 | `Base Interpreter' 83 | A program or process that is normally needed for running or 84 | interpreting a part or the whole of the Work. 85 | 86 | A Base Interpreter may depend on external components but these 87 | are not considered part of the Base Interpreter provided that each 88 | external component clearly identifies itself whenever it is used 89 | interactively. Unless explicitly specified when applying the 90 | license to the Work, the only applicable Base Interpreter is a 91 | `LaTeX-Format' or in the case of files belonging to the 92 | `LaTeX-format' a program implementing the `TeX language'. 93 | 94 | 95 | 96 | CONDITIONS ON DISTRIBUTION AND MODIFICATION 97 | =========================================== 98 | 99 | 1. Activities other than distribution and/or modification of the Work 100 | are not covered by this license; they are outside its scope. In 101 | particular, the act of running the Work is not restricted and no 102 | requirements are made concerning any offers of support for the Work. 103 | 104 | 2. You may distribute a complete, unmodified copy of the Work as you 105 | received it. Distribution of only part of the Work is considered 106 | modification of the Work, and no right to distribute such a Derived 107 | Work may be assumed under the terms of this clause. 108 | 109 | 3. You may distribute a Compiled Work that has been generated from a 110 | complete, unmodified copy of the Work as distributed under Clause 2 111 | above, as long as that Compiled Work is distributed in such a way that 112 | the recipients may install the Compiled Work on their system exactly 113 | as it would have been installed if they generated a Compiled Work 114 | directly from the Work. 115 | 116 | 4. If you are the Current Maintainer of the Work, you may, without 117 | restriction, modify the Work, thus creating a Derived Work. You may 118 | also distribute the Derived Work without restriction, including 119 | Compiled Works generated from the Derived Work. Derived Works 120 | distributed in this manner by the Current Maintainer are considered to 121 | be updated versions of the Work. 122 | 123 | 5. If you are not the Current Maintainer of the Work, you may modify 124 | your copy of the Work, thus creating a Derived Work based on the Work, 125 | and compile this Derived Work, thus creating a Compiled Work based on 126 | the Derived Work. 127 | 128 | 6. If you are not the Current Maintainer of the Work, you may 129 | distribute a Derived Work provided the following conditions are met 130 | for every component of the Work unless that component clearly states 131 | in the copyright notice that it is exempt from that condition. Only 132 | the Current Maintainer is allowed to add such statements of exemption 133 | to a component of the Work. 134 | 135 | a. If a component of this Derived Work can be a direct replacement 136 | for a component of the Work when that component is used with the 137 | Base Interpreter, then, wherever this component of the Work 138 | identifies itself to the user when used interactively with that 139 | Base Interpreter, the replacement component of this Derived Work 140 | clearly and unambiguously identifies itself as a modified version 141 | of this component to the user when used interactively with that 142 | Base Interpreter. 143 | 144 | b. Every component of the Derived Work contains prominent notices 145 | detailing the nature of the changes to that component, or a 146 | prominent reference to another file that is distributed as part 147 | of the Derived Work and that contains a complete and accurate log 148 | of the changes. 149 | 150 | c. No information in the Derived Work implies that any persons, 151 | including (but not limited to) the authors of the original version 152 | of the Work, provide any support, including (but not limited to) 153 | the reporting and handling of errors, to recipients of the 154 | Derived Work unless those persons have stated explicitly that 155 | they do provide such support for the Derived Work. 156 | 157 | d. You distribute at least one of the following with the Derived Work: 158 | 159 | 1. A complete, unmodified copy of the Work; 160 | if your distribution of a modified component is made by 161 | offering access to copy the modified component from a 162 | designated place, then offering equivalent access to copy 163 | the Work from the same or some similar place meets this 164 | condition, even though third parties are not compelled to 165 | copy the Work along with the modified component; 166 | 167 | 2. Information that is sufficient to obtain a complete, 168 | unmodified copy of the Work. 169 | 170 | 7. If you are not the Current Maintainer of the Work, you may 171 | distribute a Compiled Work generated from a Derived Work, as long as 172 | the Derived Work is distributed to all recipients of the Compiled 173 | Work, and as long as the conditions of Clause 6, above, are met with 174 | regard to the Derived Work. 175 | 176 | 8. The conditions above are not intended to prohibit, and hence do not 177 | apply to, the modification, by any method, of any component so that it 178 | becomes identical to an updated version of that component of the Work as 179 | it is distributed by the Current Maintainer under Clause 4, above. 180 | 181 | 9. Distribution of the Work or any Derived Work in an alternative 182 | format, where the Work or that Derived Work (in whole or in part) is 183 | then produced by applying some process to that format, does not relax or 184 | nullify any sections of this license as they pertain to the results of 185 | applying that process. 186 | 187 | 10. a. A Derived Work may be distributed under a different license 188 | provided that license itself honors the conditions listed in 189 | Clause 6 above, in regard to the Work, though it does not have 190 | to honor the rest of the conditions in this license. 191 | 192 | b. If a Derived Work is distributed under a different license, that 193 | Derived Work must provide sufficient documentation as part of 194 | itself to allow each recipient of that Derived Work to honor the 195 | restrictions in Clause 6 above, concerning changes from the Work. 196 | 197 | 11. This license places no restrictions on works that are unrelated to 198 | the Work, nor does this license place any restrictions on aggregating 199 | such works with the Work by any means. 200 | 201 | 12. Nothing in this license is intended to, or may be used to, prevent 202 | complete compliance by all parties with all applicable laws. 203 | 204 | 205 | NO WARRANTY 206 | =========== 207 | 208 | There is no warranty for the Work. Except when otherwise stated in 209 | writing, the Copyright Holder provides the Work `as is', without 210 | warranty of any kind, either expressed or implied, including, but not 211 | limited to, the implied warranties of merchantability and fitness for a 212 | particular purpose. The entire risk as to the quality and performance 213 | of the Work is with you. Should the Work prove defective, you assume 214 | the cost of all necessary servicing, repair, or correction. 215 | 216 | In no event unless required by applicable law or agreed to in writing 217 | will The Copyright Holder, or any author named in the components of the 218 | Work, or any other party who may distribute and/or modify the Work as 219 | permitted above, be liable to you for damages, including any general, 220 | special, incidental or consequential damages arising out of any use of 221 | the Work or out of inability to use the Work (including, but not limited 222 | to, loss of data, data being rendered inaccurate, or losses sustained by 223 | anyone as a result of any failure of the Work to operate with any other 224 | programs), even if the Copyright Holder or said author or said other 225 | party has been advised of the possibility of such damages. 226 | 227 | 228 | MAINTENANCE OF THE WORK 229 | ======================= 230 | 231 | The Work has the status `author-maintained' if the Copyright Holder 232 | explicitly and prominently states near the primary copyright notice in 233 | the Work that the Work can only be maintained by the Copyright Holder 234 | or simply that it is `author-maintained'. 235 | 236 | The Work has the status `maintained' if there is a Current Maintainer 237 | who has indicated in the Work that they are willing to receive error 238 | reports for the Work (for example, by supplying a valid e-mail 239 | address). It is not required for the Current Maintainer to acknowledge 240 | or act upon these error reports. 241 | 242 | The Work changes from status `maintained' to `unmaintained' if there 243 | is no Current Maintainer, or the person stated to be Current 244 | Maintainer of the work cannot be reached through the indicated means 245 | of communication for a period of six months, and there are no other 246 | significant signs of active maintenance. 247 | 248 | You can become the Current Maintainer of the Work by agreement with 249 | any existing Current Maintainer to take over this role. 250 | 251 | If the Work is unmaintained, you can become the Current Maintainer of 252 | the Work through the following steps: 253 | 254 | 1. Make a reasonable attempt to trace the Current Maintainer (and 255 | the Copyright Holder, if the two differ) through the means of 256 | an Internet or similar search. 257 | 258 | 2. If this search is successful, then enquire whether the Work 259 | is still maintained. 260 | 261 | a. If it is being maintained, then ask the Current Maintainer 262 | to update their communication data within one month. 263 | 264 | b. If the search is unsuccessful or no action to resume active 265 | maintenance is taken by the Current Maintainer, then announce 266 | within the pertinent community your intention to take over 267 | maintenance. (If the Work is a LaTeX work, this could be 268 | done, for example, by posting to comp.text.tex.) 269 | 270 | 3a. If the Current Maintainer is reachable and agrees to pass 271 | maintenance of the Work to you, then this takes effect 272 | immediately upon announcement. 273 | 274 | b. If the Current Maintainer is not reachable and the Copyright 275 | Holder agrees that maintenance of the Work be passed to you, 276 | then this takes effect immediately upon announcement. 277 | 278 | 4. If you make an `intention announcement' as described in 2b. above 279 | and after three months your intention is challenged neither by 280 | the Current Maintainer nor by the Copyright Holder nor by other 281 | people, then you may arrange for the Work to be changed so as 282 | to name you as the (new) Current Maintainer. 283 | 284 | 5. If the previously unreachable Current Maintainer becomes 285 | reachable once more within three months of a change completed 286 | under the terms of 3b) or 4), then that Current Maintainer must 287 | become or remain the Current Maintainer upon request provided 288 | they then update their communication data within one month. 289 | 290 | A change in the Current Maintainer does not, of itself, alter the fact 291 | that the Work is distributed under the LPPL license. 292 | 293 | If you become the Current Maintainer of the Work, you should 294 | immediately provide, within the Work, a prominent and unambiguous 295 | statement of your status as Current Maintainer. You should also 296 | announce your new status to the same pertinent community as 297 | in 2b) above. 298 | 299 | 300 | WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE 301 | ====================================================== 302 | 303 | This section contains important instructions, examples, and 304 | recommendations for authors who are considering distributing their 305 | works under this license. These authors are addressed as `you' in 306 | this section. 307 | 308 | Choosing This License or Another License 309 | ---------------------------------------- 310 | 311 | If for any part of your work you want or need to use *distribution* 312 | conditions that differ significantly from those in this license, then 313 | do not refer to this license anywhere in your work but, instead, 314 | distribute your work under a different license. You may use the text 315 | of this license as a model for your own license, but your license 316 | should not refer to the LPPL or otherwise give the impression that 317 | your work is distributed under the LPPL. 318 | 319 | The document `modguide.tex' in the base LaTeX distribution explains 320 | the motivation behind the conditions of this license. It explains, 321 | for example, why distributing LaTeX under the GNU General Public 322 | License (GPL) was considered inappropriate. Even if your work is 323 | unrelated to LaTeX, the discussion in `modguide.tex' may still be 324 | relevant, and authors intending to distribute their works under any 325 | license are encouraged to read it. 326 | 327 | A Recommendation on Modification Without Distribution 328 | ----------------------------------------------------- 329 | 330 | It is wise never to modify a component of the Work, even for your own 331 | personal use, without also meeting the above conditions for 332 | distributing the modified component. While you might intend that such 333 | modifications will never be distributed, often this will happen by 334 | accident -- you may forget that you have modified that component; or 335 | it may not occur to you when allowing others to access the modified 336 | version that you are thus distributing it and violating the conditions 337 | of this license in ways that could have legal implications and, worse, 338 | cause problems for the community. It is therefore usually in your 339 | best interest to keep your copy of the Work identical with the public 340 | one. Many works provide ways to control the behavior of that work 341 | without altering any of its licensed components. 342 | 343 | How to Use This License 344 | ----------------------- 345 | 346 | To use this license, place in each of the components of your work both 347 | an explicit copyright notice including your name and the year the work 348 | was authored and/or last substantially modified. Include also a 349 | statement that the distribution and/or modification of that 350 | component is constrained by the conditions in this license. 351 | 352 | Here is an example of such a notice and statement: 353 | 354 | %% pig.dtx 355 | %% Copyright 2005 M. Y. Name 356 | % 357 | % This work may be distributed and/or modified under the 358 | % conditions of the LaTeX Project Public License, either version 1.3 359 | % of this license or (at your option) any later version. 360 | % The latest version of this license is in 361 | % http://www.latex-project.org/lppl.txt 362 | % and version 1.3 or later is part of all distributions of LaTeX 363 | % version 2005/12/01 or later. 364 | % 365 | % This work has the LPPL maintenance status `maintained'. 366 | % 367 | % The Current Maintainer of this work is M. Y. Name. 368 | % 369 | % This work consists of the files pig.dtx and pig.ins 370 | % and the derived file pig.sty. 371 | 372 | Given such a notice and statement in a file, the conditions 373 | given in this license document would apply, with the `Work' referring 374 | to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being 375 | generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' 376 | referring to any `LaTeX-Format', and both `Copyright Holder' and 377 | `Current Maintainer' referring to the person `M. Y. Name'. 378 | 379 | If you do not want the Maintenance section of LPPL to apply to your 380 | Work, change `maintained' above into `author-maintained'. 381 | However, we recommend that you use `maintained', as the Maintenance 382 | section was added in order to ensure that your Work remains useful to 383 | the community even when you can no longer maintain and support it 384 | yourself. 385 | 386 | Derived Works That Are Not Replacements 387 | --------------------------------------- 388 | 389 | Several clauses of the LPPL specify means to provide reliability and 390 | stability for the user community. They therefore concern themselves 391 | with the case that a Derived Work is intended to be used as a 392 | (compatible or incompatible) replacement of the original Work. If 393 | this is not the case (e.g., if a few lines of code are reused for a 394 | completely different task), then clauses 6b and 6d shall not apply. 395 | 396 | 397 | Important Recommendations 398 | ------------------------- 399 | 400 | Defining What Constitutes the Work 401 | 402 | The LPPL requires that distributions of the Work contain all the 403 | files of the Work. It is therefore important that you provide a 404 | way for the licensee to determine which files constitute the Work. 405 | This could, for example, be achieved by explicitly listing all the 406 | files of the Work near the copyright notice of each file or by 407 | using a line such as: 408 | 409 | % This work consists of all files listed in manifest.txt. 410 | 411 | in that place. In the absence of an unequivocal list it might be 412 | impossible for the licensee to determine what is considered by you 413 | to comprise the Work and, in such a case, the licensee would be 414 | entitled to make reasonable conjectures as to which files comprise 415 | the Work. 416 | 417 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # ElegantPaper 5 | 6 | [Homepage](https://elegantlatex.org/) | [Github](https://github.com/ElegantLaTeX/ElegantPaper) | [CTAN](https://ctan.org/pkg/elegantpaper) | [Download](https://github.com/ElegantLaTeX/ElegantPaper/releases) | [Wiki](https://github.com/ElegantLaTeX/ElegantPaper/wiki) | [Weibo](https://weibo.com/elegantlatex) 7 | 8 | ![License](https://img.shields.io/ctan/l/elegantpaper.svg) 9 | ![CTAN Version](https://img.shields.io/ctan/v/elegantpaper.svg) 10 | ![Github Version](https://img.shields.io/github/release/ElegantLaTeX/ElegantPaper.svg) 11 | ![Repo Size](https://img.shields.io/github/repo-size/ElegantLaTeX/ElegantPaper.svg) 12 | 13 | **Caution: This template will no longer be maintained since January 1st, 2023.** 14 | 15 | **注意:本模板自 2023 年 1 月 1 日开始,不再维护,不建议使用本系列模板!** 16 | 17 | ElegantPaper is designed for writing a working paper, especially for economics students. This template is based on the standard LaTeX article class. The goal of this template is to make the writing process easier and more comfortable. You can get rid of all the worries about the format. Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or email us at elegantlatex2e@gmail.com. 18 | 19 | 此模板基于 LaTeX 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒适,简便的写作体验。如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。用户 QQ 交流群(Q 群:692108391),欢迎加入。 20 | 21 | The official user guide is [here](https://github.com/ElegantLaTeX/ElegantPaper/releases), or you can refer to the [wiki](https://github.com/ElegantLaTeX/ElegantPaper/wiki). 22 | 23 | 模板使用说明请参见[模板文档](https://github.com/ElegantLaTeX/ElegantPaper/releases),或者 [wiki](https://github.com/ElegantLaTeX/ElegantPaper/wiki)。 24 | 25 | ## License 26 | 27 | This work is released under the LaTeX Project Public License, v1.3c or later. 28 | 29 | 本模板发布遵循 LaTeX 项目公共许可证 1.3c 或更高版本。 30 | -------------------------------------------------------------------------------- /elegantpaper-cn.tex: -------------------------------------------------------------------------------- 1 | %!TEX program = xelatex 2 | % 完整编译: xelatex -> biber/bibtex -> xelatex -> xelatex 3 | \documentclass[lang=cn,a4paper,newtx]{elegantpaper} 4 | 5 | \title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板} 6 | \author{作者1 \\ 某某大学/机构 \and 作者2 \\ 某某大学/机构} 7 | \institute{\href{https://elegantlatex.org/}{Elegant\LaTeX{} 项目组}} 8 | 9 | \version{0.11} 10 | \date{\zhdate{2022/12/31}} 11 | 12 | % 本文档命令 13 | \usepackage{array} 14 | \newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}} 15 | \addbibresource[location=local]{reference.bib} % 参考文献,不要删除 16 | 17 | \begin{document} 18 | 19 | \maketitle 20 | 21 | \begin{abstract} 22 | 本文为 \href{https://github.com/ElegantLaTeX/ElegantPaper/}{ElegantPaper} 的说明文档。此模板基于 \LaTeX{} 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒心的写作体验。如果你有其他问题、建议或者报告 bug,可以在 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{GitHub::ElegantPaper/issues} 留言。如果你想了解更多 Elegant\LaTeX{} 项目组设计的模板,请访问 \href{https://github.com/ElegantLaTeX/}{GitHub::ElegantLaTeX}。 23 | \keywords{Elegant\LaTeX{},工作论文,模板} 24 | \end{abstract} 25 | 26 | \section{模板使用须知} 27 | 28 | \textcolor{red}{\bfseries 本模板自 2023 年 1 月 1 日开始,不再维护,不建议使用本系列模板!为了保证之前版本的用户仍然能查到说明文档,本说明文档仍然保留过去的信息。} 29 | 30 | \subsection{注意事项} 31 | \textbf{文献部分}:我们将 bibtex 的默认文献编译方式改为 biblatex,不过我们也提供了两个后端,\lstinline{bibend=biber} 和 \lstinline{bibend=bibtex}。特别需要注意的是从 0.10 开始,文献文件改为 \lstinline{reference.bib},与 ElegantBook 保持一致,而参考文献的引文样式等更多格式,请参考后文参考文献部分,更多样式可以参考 biblatex 文档。 32 | 33 | \textbf{字体部分},我们将 newtxtext 宏包的支持方式改为了字体名称设定方式,设定英文字体为 TeX Gyre Terms/Heros,英文字体部分,根据编译方式选择不同字体。对于一般用户而言,不太需要关心这部分内容。 34 | 35 | 另外,中文请务必使用 \hologo{XeLaTeX} 编译。 36 | 37 | \subsection{模板介绍} 38 | 39 | 此模板基于 \LaTeX{} 的标准文类 article 设计,所以 article 文类的选项也能传递给本模板,比如 \lstinline{a4paper, 11pt} 等等。 40 | 41 | \begin{lstlisting} 42 | \documentclass[a4paper,11pt]{elegantpaper} 43 | \end{lstlisting} 44 | 45 | \textbf{注意}:Elegant\LaTeX{} 系列模板已经全部上传至 \href{https://www.overleaf.com/latex/templates/elegantpaper-template/yzghrqjhmmmr}{Overleaf} 上,用户可以在线使用。另外,为了方便国内用户,模板也已经传至\href{https://gitee.com/ElegantLaTeX/ElegantPaper}{码云}。 46 | 47 | 48 | \subsection{全局选项} 49 | 此模板定义了一个语言选项 \lstinline{lang},可以选择英文模式 \lstinline{lang=en}(默认)或者中文模式 \lstinline{lang=cn}。当选择中文模式时,图表的标题引导词以及参考文献,定理引导词等信息会变成中文。你可以通过下面两种方式来选择语言模式: 50 | \begin{lstlisting} 51 | \documentclass[lang=cn]{elegantpaper} % or 52 | \documentclass[cn]{elegantpaper} 53 | \end{lstlisting} 54 | 55 | \textbf{注意:} 英文模式下,由于没有添加中文宏包,无法输入中文。如果需要输入中文,可以通过在导言区引入中文宏包 \lstinline{ctex} 或者加入 \lstinline{xeCJK} 宏包后自行设置字体。 56 | \begin{lstlisting} 57 | \usepackage[UTF8,scheme=plain]{ctex} 58 | \end{lstlisting} 59 | 60 | \subsection{数学字体选项} 61 | 62 | 本模板定义了一个数学字体选项(\lstinline{math}),可选项有三个: 63 | \begin{enumerate} 64 | \item \lstinline{math=cm}(默认),使用 \LaTeX{} 默认数学字体(推荐,无需声明); 65 | \item \lstinline{math=newtx},使用 \lstinline{newtxmath} 设置数学字体(潜在问题比较多)。 66 | \item \lstinline{math=mtpro2},使用 \lstinline{mtpro2} 宏包设置数学字体,要求用户已经成功安装此宏包。 67 | \end{enumerate} 68 | 69 | \subsection{中文字体选项} 70 | 71 | 模板提供中文字体选项 \lstinline{chinesefont},可选项有 72 | \begin{enumerate} 73 | \item \lstinline{ctexfont}:默认选项,使用 \lstinline{ctex} 宏包根据系统自行选择字体,可能存在字体缺失的问题,更多内容参考 \lstinline{ctex} 宏包\href{https://ctan.org/pkg/ctex}{官方文档}\footnote{可以使用命令提示符,输入 \lstinline{texdoc ctex} 调出本地 \lstinline{ctex} 宏包文档}。 74 | \item \lstinline{founder}:方正字体选项(\textbf{需要安装方正字体}),后台调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,然后设置字体为方正四款免费字体,方正字体下载注意事项见后文,用户只需要安装方正字体即可使用该选项。 75 | \item \lstinline{nofont}:后台会调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。 76 | \end{enumerate} 77 | 78 | \subsubsection{方正字体选项} 79 | 由于使用 \lstinline{ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的{\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。用户可以自行从\href{http://www.foundertype.com/}{方正字体官网}下载此四款字体,在下载的时候请\textbf{务必}注意选择 GBK 字符集,也可以使用 \href{https://www.latexstudio.net/}{\LaTeX{} 工作室}提供的\href{https://pan.baidu.com/s/1BgbQM7LoinY7m8yeP25Y7Q}{方正字体,提取码为:njy9} 进行安装。安装时,{\kaishu Win 10 用户请右键选择为全部用户安装,否则会找不到字体。} 80 | 81 | \begin{figure}[!htb] 82 | \centering 83 | \includegraphics[width=0.9\textwidth]{founder.png} 84 | \end{figure} 85 | 86 | \subsubsection{其他中文字体} 87 | 如果你想完全自定义字体\footnote{这里仍然以方正字体为例。},你可以选择 \lstinline{chinesefont=nofont},然后在导言区设置即可,可以参考下方代码: 88 | \begin{lstlisting} 89 | \setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01} 90 | \setCJKsansfont[BoldFont={FZHei-B01}]{FZKai-Z03} 91 | \setCJKmonofont[BoldFont={FZHei-B01}]{FZFangSong-Z02} 92 | \setCJKfamilyfont{zhsong}{FZShuSong-Z01} 93 | \setCJKfamilyfont{zhhei}{FZHei-B01} 94 | \setCJKfamilyfont{zhkai}[BoldFont={FZHei-B01}]{FZKai-Z03} 95 | \setCJKfamilyfont{zhfs}[BoldFont={FZHei-B01}]{FZFangSong-Z02} 96 | \newcommand*{\songti}{\CJKfamily{zhsong}} 97 | \newcommand*{\heiti}{\CJKfamily{zhhei}} 98 | \newcommand*{\kaishu}{\CJKfamily{zhkai}} 99 | \newcommand*{\fangsong}{\CJKfamily{zhfs}} 100 | \end{lstlisting} 101 | 102 | 103 | 104 | \subsection{自定义命令} 105 | 此模板并没有修改任何默认的 \LaTeX{} 命令或者环境\footnote{目的是保证代码的可复用性,请用户关注内容,不要太在意格式,这才是本工作论文模板的意义。}。另外,本模板可以使用的 4 个额外命令: 106 | \begin{enumerate} 107 | \item \lstinline{\email}:创建邮箱地址的链接,比如 \email{xxx@outlook.com}; 108 | \item \lstinline{\figref}:用法和 \lstinline{\ref} 类似,但是会在插图的标题前添加 <\textbf{图 n}> ; 109 | \item \lstinline{\tabref}:用法和 \lstinline{\ref} 类似,但是会在表格的标题前添加 <\textbf{表 n}>; 110 | \item \lstinline{\keywords}:为摘要环境添加关键词。 111 | \end{enumerate} 112 | 113 | \subsection{参考文献} 114 | 115 | 文献部分,本模板调用了 biblatex 宏包,并提供了 biber(默认) 和 bibtex 两个后端选项,可以使用 \lstinline{bibend} 进行修改: 116 | 117 | \begin{lstlisting} 118 | \documentclass[bibtex]{elegantpaper} 119 | \documentclass[bibend=bibtex]{elegantpaper} 120 | \end{lstlisting} 121 | 122 | 关于文献条目(bib item),你可以在谷歌学术,Mendeley,Endnote 中取,然后把它们添加到 \lstinline{reference.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。 123 | 124 | 为了方便文献样式修改,模板引入了 \lstinline{bibstyle} 和 \lstinline{citestyle} 选项,默认均为数字格式(numeric),参考文献示例:\cite{cn1,en2,en3} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。 125 | 126 | 如果需要设置为国标 GB7714-2015,需要使用: 127 | \begin{lstlisting} 128 | \documentclass[citestyle=gb7714-2015, bibstyle=gb7714-2015]{elegantpaper} 129 | \end{lstlisting} 130 | 131 | 如果需要添加排序方式,可以在导言区加入 132 | \begin{lstlisting} 133 | \ExecuteBibliographyOptions{sorting=ynt} 134 | \end{lstlisting} 135 | 136 | 启用国标之后,可以加入 \lstinline{sorting=gb7714-2015}。 137 | 138 | 139 | \section{使用 newtx 系列字体} 140 | 141 | 如果需要使用原先版本的 \lstinline{newtx} 系列字体,可以通过显示声明数学字体: 142 | 143 | \begin{lstlisting} 144 | \documentclass[math=newtx]{elegantpaper} 145 | \end{lstlisting} 146 | 147 | \subsection{连字符} 148 | 149 | 如果使用 \lstinline{newtx} 系列字体宏包,需要注意下连字符的问题。 150 | \begin{equation} 151 | \int_{R^q} f(x,y) dy.\emph{of\kern0pt f} 152 | \end{equation} 153 | 154 | \begin{lstlisting} 155 | \begin{equation} 156 | \int_{R^q} f(x,y) dy.\emph{of \kern0pt f} 157 | \end{equation} 158 | \end{lstlisting} 159 | 160 | \subsection{宏包冲突} 161 | 162 | 有用户反馈模板在使用 \lstinline{yhmath} 以及 \lstinline{esvect} 等宏包时会报错: 163 | \begin{lstlisting} 164 | LaTeX Error: 165 | Too many symbol fonts declared. 166 | \end{lstlisting} 167 | 168 | 原因是在使用 \lstinline{newtxmath} 宏包时,重新定义了数学字体用于大型操作符,达到了 {\heiti 最多 16 个数学字体} 的上限,在调用其他宏包的时候,无法新增数学字体。为了减少调用非常用宏包,在此给出如何调用 \lstinline{yhmath} 以及 \lstinline{esvect} 宏包的方法。 169 | 170 | 请在 \lstinline{elegantpaper.cls} 内搜索 \lstinline{yhmath} 或者 \lstinline{esvect},将你所需要的宏包加载语句\textit{取消注释}即可。 171 | 172 | 173 | \section{常见问题 FAQ} 174 | 175 | \begin{enumerate}[label=\arabic*).] 176 | \item \textit{如何删除版本信息?}\\ 177 | 导言区不写 \lstinline|\version{x.xx}| 即可。 178 | \item \textit{如何删除日期?}\\ 179 | 需要注意的是,与版本 \lstinline{\version} 不同的是,导言区不写或注释 \lstinline{\date} 的话,仍然会打印出当日日期,原因是 \lstinline{\date} 有默认参数。如果不需要日期的话,日期可以留空即可,也即 \lstinline|\date{}|。 180 | \item \textit{如何获得中文日期?}\\ 181 | 为了获得中文日期,必须在中文模式下\footnote{英文模式下,由于未加载中文宏包,无法输入中文。},使用 \lstinline|\date{\zhdate{2019/10/11}}|,如果需要当天的汉化日期,可以使用 \lstinline|\date{\zhtoday}|,这两个命令都来源于 \href{https://ctan.org/pkg/zhnumber}{\lstinline{zhnumber}} 宏包。 182 | \item \textit{如何添加多个作者?}\\ 183 | 在 \lstinline{\author} 里面使用 \lstinline{\and},作者单位可以用 \lstinline{\\} 换行。 184 | \begin{lstlisting} 185 | \author{author 1\\ org. 1 \and author 2 \\ org. 2 } 186 | \end{lstlisting} 187 | \item \textit{如何添加中英文摘要?}\\ 188 | 请参考 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{GitHub::ElegantPaper/issues/5} 189 | \end{enumerate} 190 | 191 | 192 | \section{致谢} 193 | 194 | 特别感谢 \href{https://github.com/sikouhjw}{sikouhjw} 和 \href{https://github.com/syvshc}{syvshc} 长期以来对于 Github 上 issue 的快速回应,以及各个社区论坛对于 ElegantLaTeX 相关问题的回复。特别感谢 ChinaTeX 以及 \href{http://www.latexstudio.net/}{LaTeX 工作室} 对于本系列模板的大力宣传与推广。 195 | 196 | 如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。 197 | 198 | \nocite{*} 199 | \printbibliography[heading=bibintoc, title=\ebibname] 200 | 201 | \appendix 202 | %\appendixpage 203 | \addappheadtotoc 204 | 205 | \end{document} 206 | -------------------------------------------------------------------------------- /elegantpaper-en.tex: -------------------------------------------------------------------------------- 1 | %!TEX program = pdflatex 2 | % Full chain: pdflatex -> biber/bibtex -> pdflatex -> pdflatex 3 | \documentclass[11pt,en]{elegantpaper} 4 | 5 | \title{ElegantPaper: An Elegant \LaTeX{} Template for Working Papers} 6 | \author{Author1 \\ Institute1 \and Author2 \\ Institute2} 7 | \institute{\href{https://github.com/ElegantLaTeX}{Elegant\LaTeX{} Program}} 8 | 9 | \version{0.11} 10 | \date{Dec. 31, 2022} 11 | 12 | % cmd for this doc 13 | \usepackage{array} 14 | \newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}} 15 | 16 | \addbibresource[location=local]{reference.bib} % reference file 17 | \begin{document} 18 | 19 | \maketitle 20 | 21 | \begin{abstract} 22 | This documentation illustrates the usage of the \href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} template. This template is based on the standard \LaTeX{} article class, which is designed for working paper writing. With this template, you can get rid of all the worries about the format and merely focus on writing. For any question, please leave a message on \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{GitHub::ElegantPaper/issues}. Want to know more about Elegant\LaTeX{} Templates? Please visit: \href{https://github.com/ElegantLaTeX}{https://github.com/ElegantLaTeX}.\par 23 | \keywords{Elegant\LaTeX{}, Working Paper, Template} 24 | \end{abstract} 25 | 26 | \textcolor{red}{\bfseries Caution: This template will no longer be maintained since January 1st, 2023.} 27 | 28 | \section*{Update Notes} 29 | 30 | This version changes two important parts: fonts and bibliography. 31 | 32 | \textbf{Fonts}: Due to the newtx package updates, we change the font settings for all the templates of ElegantLaTeX. Under \hologo{XeLaTeX}, we use \lstinline{fontspec} package to set the font to TeX Gyre Terms/Heros. 33 | 34 | \textbf{Bibliography}: The bib file is no longer \lstinline{wpref.bib}, it's same with ElegantBook bibfile, \lstinline{reference.bib}. Besides, we use biblatex/biber rather than bibtex to handler bibliography, you can use bibstyle and citestyle to set the styles. For convenience, we offer a \lstinline{bibend} option, which can take values of \lstinline{biber} (default) and \lstinline{bibtex}, please refer to Bibliography section and biblatex package document for more information. 35 | 36 | \section{Introduction} 37 | 38 | This template is based on the standard \LaTeX{} article class, hence the arguments of article class are acceptable (\lstinline{a4paper}, \lstinline{10pt} and etc.). Alternative engines are \hologo{pdfLaTeX} and \hologo{XeLaTeX}. 39 | 40 | \begin{lstlisting} 41 | \documentclass[a4paper,11pt]{elegantpaper} 42 | \end{lstlisting} 43 | \textbf{Note:} ElegantPaper is available on \href{https://www.overleaf.com/latex/templates/elegantpaper-template/yzghrqjhmmmr}{Overleaf} and \href{https://gitee.com/ElegantLaTeX/ElegantPaper}{gitee}. 44 | 45 | \subsection{Global Options} 46 | Language mode option \lstinline{lang} allows two alternative inputs, \lstinline{lang=en} (default) for English or \lstinline{lang=cn} for Chinese. \lstinline{lang=cn} will make the caption of figure/table, abstract name, refname etc. Chinese. You can use this option as 47 | \begin{lstlisting} 48 | \documentclass[lang=cn]{elegantpaper} % or 49 | \documentclass[cn]{elegantpaper} 50 | \end{lstlisting} 51 | \textbf{Note:} Under the English mode \lstinline{lang=en}, Chinese characters are not allowed. To type in Chinese, please load \lstinline{ctex} or \lstinline{xeCJK} package at the preamble as: 52 | \begin{lstlisting} 53 | \usepackage[UTF8,scheme=plain]{ctex} 54 | \end{lstlisting} 55 | 56 | \subsection{Math Fonts} 57 | 58 | This template defines a new option (\lstinline{math}), with three options: 59 | 60 | \begin{enumerate} 61 | \item \lstinline{math=cm} (default), use \LaTeX{} default math font (recommended). 62 | \item \lstinline{math=newtx}, use \lstinline{newtxmath} math font (may bring about bugs). 63 | \item \lstinline{math=mtpro2}, use \lstinline{mtpro2} package to set math font. 64 | \end{enumerate} 65 | 66 | 67 | \subsection{Custom Commands} 68 | Default \LaTeX{} commands and environments are all the same in this template\footnote{To ensure the codes are replicatable. We recommend users pay more attention to the contents other than formats. This is the meaning of the existence of the template.}. We created four new commands: 69 | \begin{enumerate} 70 | \item \lstinline{\email}: create the hyperlink to email address. 71 | \item \lstinline{\figref}: same usage as \lstinline{\ref}, but start with label text \textbf{Figure n}. 72 | \item \lstinline{\tabref}: same usage as \lstinline{\ref}, but start with label text \textbf{Table n}. 73 | \item \lstinline{\keywords}: create the keywords in the abstract section. 74 | \end{enumerate} 75 | 76 | 77 | \subsection{Bibliography} 78 | 79 | This template uses biblatex to generate the bibliography, the default citestyle and bibliography style are both \lstinline{numeric}. Let's take a glance at the citation effect. ~\cite{en1} use data from a major peer-to-peer lending \cite{en3} marketplace in China to study whether female and male investors evaluate loan performance differently \parencite{en2}. 80 | 81 | If you want to use biblatex, you must create a file named \lstinline{reference.bib}, add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \lstinline{reference.bib} file, then cite the bibkey in the \lstinline{tex} file. The biber will automatically generate the bibliography for the reference you cited. 82 | 83 | 84 | To change the bibliography style, this version introduces two options: \lstinline{citestyle} and \lstinline{bibstyle}, please refer to \href{https://ctan.org/pkg/biblatex}{CTAN:biblatex} for more detail about these options. You can change your bibliography style as 85 | 86 | \begin{lstlisting} 87 | \documentclass[citestyle=numeric-comp, bibstyle=authoryear]{elegantpaper} 88 | \end{lstlisting} 89 | 90 | We also add the \lstinline{bibend} option to this template, you can choose \lstinline{biber} (default) or \lstinline{bibtex} as you like, \lstinline{biber} is recommended. 91 | 92 | \begin{lstlisting} 93 | \documentclass[bibtex]{elegantpaper} % or 94 | \documentclass[bibend=bibtex]{elegantpaper} 95 | \end{lstlisting} 96 | 97 | 98 | 99 | \subsection{Use newtx fonts} 100 | If you use \lstinline{newtx} fonts, you can use the \lstinline{math} option as 101 | \begin{lstlisting} 102 | \documentclass[math=newtx]{elegantpaper} 103 | \end{lstlisting} 104 | 105 | 106 | \subsubsection{Hyphens} 107 | Since the template uses \lstinline{newtx}, please pay attention to the hyphens. For instance, 108 | \begin{equation} 109 | \int_{R^q} f(x,y) dy.\emph{of\kern0pt f} 110 | \end{equation} 111 | 112 | The corresponding code is: 113 | \begin{lstlisting} 114 | \begin{equation} 115 | \int_{R^q} f(x,y) dy.\emph{of \kern0pt f} 116 | \end{equation} 117 | \end{lstlisting} 118 | 119 | \subsubsection{Symbol Fonts} 120 | Feedback from ElegantBook users claims that error occurs when using our templates with \lstinline{yhmath}, \lstinline{esvect} and other packages. 121 | \begin{lstlisting} 122 | LaTeX Error: 123 | Too many symbol fonts declared. 124 | \end{lstlisting} 125 | 126 | The reason is that the template redefines font for math so that no new math font is allowed to be added. To use \lstinline{yhmath} and/or \lstinline{esvect}, please locate \lstinline{yhmath} or \lstinline{esvect} in \lstinline{elegantpaper.cls}, uncomment corresponding related code. 127 | 128 | 129 | \section{FAQ} 130 | 131 | \begin{enumerate}[label=\arabic*).] 132 | \item \textit{How to remove the information of version?}\\ 133 | Please comment \lstinline|\version{x.xx}|. 134 | \item \textit{How to remove the information of date?}\\ 135 | Please type in \lstinline|\date{}|. 136 | \item \textit{How to add several authors?}\\ 137 | Use \lstinline{\and} in \lstinline{\author} and use \lstinline{\\} to start a new line. 138 | \begin{lstlisting} 139 | \author{author 1\\ org. 1 \and author 2 \\ org. 2 } 140 | \end{lstlisting} 141 | \item \textit{How to display bilingual abstracts?}\\ 142 | Please refer to \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{GitHub::ElegantPaper/issues/5} 143 | \end{enumerate} 144 | 145 | \section{Acknowledgement} 146 | 147 | Thank \href{https://github.com/sikouhjw}{sikouhjw} and \href{https://github.com/syvshc}{syvshc} for their quick response to Github issues and continuously support work for ElegantLaTeX. Thank ChinaTeX and \href{http://www.latexstudio.net/}{LaTeX Studio} for their promotion. 148 | 149 | 150 | 151 | \printbibliography[heading=bibintoc, title=\ebibname] 152 | 153 | \appendix 154 | %\appendixpage 155 | \addappheadtotoc 156 | 157 | 158 | \end{document} 159 | -------------------------------------------------------------------------------- /elegantpaper.cls: -------------------------------------------------------------------------------- 1 | % Author: Dongsheng Deng 2 | % Homepage: https://ddswhu.me/ 3 | % Email: elegantlatex2e@gmail.com 4 | % Lastest Version: https://github.com/ElegantLaTeX/ElegantPaper 5 | 6 | % --- Class structure: identification part 7 | \ProvidesClass{elegantpaper}[2022/12/31 v0.11 ElegantLaTeX Paper class] 8 | \NeedsTeXFormat{LaTeX2e} 9 | 10 | %%% 11 | \RequirePackage{kvoptions} 12 | \RequirePackage{etoolbox} 13 | \RequirePackage{calc} 14 | 15 | \SetupKeyvalOptions{family=ELEGANT, prefix=ELEGANT@, setkeys=\kvsetkeys} 16 | \newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}} 17 | 18 | \DeclareStringOption[en]{lang} 19 | \DeclareVoidOption{cn}{\ekv{lang=cn}} 20 | \DeclareVoidOption{en}{\ekv{lang=en}} 21 | 22 | \DeclareStringOption[cm]{math} 23 | 24 | \DeclareStringOption[numeric-comp]{citestyle} 25 | \DeclareStringOption[numeric]{bibstyle} 26 | 27 | \DeclareStringOption[biber]{bibend} 28 | \DeclareVoidOption{biber}{\ekv{bibend=biber}} 29 | \DeclareVoidOption{bibtex}{\ekv{bibend=bibtex}} 30 | 31 | 32 | \DeclareStringOption[ctexfont]{chinesefont} 33 | \DeclareVoidOption{ctexfont}{\ekv{chinesefont=ctexfont}} 34 | \DeclareVoidOption{founder}{\ekv{chinesefont=founder}} 35 | \DeclareVoidOption{nofont}{\ekv{chinesefont=nofont}} 36 | 37 | \DeclareVoidOption{newtx}{\ekv{math=newtx}} 38 | \DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}} 39 | \DeclareVoidOption{cm}{\ekv{math=cm}} 40 | 41 | \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{article}} 42 | \ProcessKeyvalOptions*\relax 43 | \LoadClass{article} 44 | 45 | \RequirePackage{hyperref} 46 | \hypersetup{ 47 | pdfborder={0 0 0}, 48 | colorlinks=true, 49 | linkcolor={winered}, 50 | urlcolor={winered}, 51 | filecolor={winered}, 52 | citecolor={winered}, 53 | linktoc=all, 54 | } 55 | % settings for the hyperref and geometry 56 | \RequirePackage[ 57 | left=1in, 58 | right=1in, 59 | top=1in, 60 | bottom=1in, 61 | headheight=0pt, 62 | headsep=0pt]{geometry} 63 | \setlength{\headsep}{5pt} 64 | 65 | \RequirePackage{amsthm} 66 | \RequirePackage{amsmath} 67 | \RequirePackage{amssymb} 68 | \RequirePackage{indentfirst} 69 | \RequirePackage{booktabs} 70 | \RequirePackage{multicol} 71 | \RequirePackage{multirow} 72 | % \RequirePackage{linegoal} 73 | \RequirePackage{xcolor} 74 | \RequirePackage{graphicx} 75 | \RequirePackage{fancyvrb} 76 | \RequirePackage{abstract} 77 | \RequirePackage{hologo} 78 | 79 | \linespread{1.35} 80 | \graphicspath{{image/}{figure/}{fig/}{img/}} 81 | 82 | % caption settings 83 | \RequirePackage[labelfont={bf}]{caption} 84 | \captionsetup[table]{skip=3pt} 85 | \captionsetup[figure]{skip=3pt} 86 | 87 | % list/itemize/enumerate setting 88 | \RequirePackage[shortlabels,inline]{enumitem} 89 | \setlist{nolistsep} 90 | 91 | 92 | % define the hyperref color 93 | \RequirePackage{xcolor} 94 | \definecolor{winered}{rgb}{0.5,0,0} 95 | 96 | \definecolor{lightgrey}{rgb}{0.95,0.95,0.95} 97 | \definecolor{commentcolor}{RGB}{0,100,0} 98 | \definecolor{frenchplum}{RGB}{190,20,83} 99 | 100 | 101 | % add the email cmd 102 | \newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}} 103 | 104 | % font settings 105 | 106 | 107 | \PassOptionsToPackage{no-math}{fontspec} 108 | \PassOptionsToPackage{quiet}{fontspec} 109 | \RequirePackage{iftex} 110 | 111 | \ifXeTeX 112 | \RequirePackage[no-math]{fontspec} 113 | \setmainfont{texgyretermes}[ 114 | UprightFont = *-regular , 115 | BoldFont = *-bold , 116 | ItalicFont = *-italic , 117 | BoldItalicFont = *-bolditalic , 118 | Extension = .otf , 119 | Scale = 1.0] 120 | 121 | \setsansfont{texgyreheros}[ 122 | UprightFont = *-regular , 123 | BoldFont = *-bold , 124 | ItalicFont = *-italic , 125 | BoldItalicFont = *-bolditalic , 126 | Extension = .otf , 127 | Scale = 0.9] 128 | \else 129 | \RequirePackage{newtxtext} 130 | \RequirePackage[scaled=.90]{helvet} 131 | \fi 132 | 133 | \ifdefstring{\ELEGANT@lang}{cn}{ 134 | \ifdefstring{\ELEGANT@chinesefont}{founder}{ 135 | \RequirePackage[UTF8,scheme=plain,fontset=none]{ctex} 136 | \setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01} 137 | \setCJKsansfont[BoldFont={FZHei-B01}]{FZKai-Z03} 138 | \setCJKmonofont[BoldFont={FZHei-B01}]{FZFangSong-Z02} 139 | \setCJKfamilyfont{zhsong}{FZShuSong-Z01} 140 | \setCJKfamilyfont{zhhei}{FZHei-B01} 141 | \setCJKfamilyfont{zhkai}[BoldFont={FZHei-B01}]{FZKai-Z03} 142 | \setCJKfamilyfont{zhfs}[BoldFont={FZHei-B01}]{FZFangSong-Z02} 143 | \newcommand*{\songti}{\CJKfamily{zhsong}} 144 | \newcommand*{\heiti}{\CJKfamily{zhhei}} 145 | \newcommand*{\kaishu}{\CJKfamily{zhkai}} 146 | \newcommand*{\fangsong}{\CJKfamily{zhfs}}}{\relax} 147 | 148 | \ifdefstring{\ELEGANT@chinesefont}{nofont}{ 149 | \RequirePackage[UTF8,scheme=plain,fontset=none]{ctex}}{\relax} 150 | 151 | \ifdefstring{\ELEGANT@chinesefont}{ctexfont}{ 152 | \RequirePackage[UTF8,scheme=plain]{ctex}}{\relax} 153 | 154 | \AfterEndPreamble{ 155 | \setlength\parindent{2\ccwd}} 156 | }{\relax} 157 | 158 | 159 | \ifcsname kaishu\endcsname 160 | \newcommand{\citshape}{\kaishu} 161 | \else 162 | \newcommand{\citshape}{\itshape} 163 | \fi 164 | \ifcsname kaishu\endcsname 165 | \newcommand{\cnormal}{\kaishu} 166 | \else 167 | \newcommand{\cnormal}{\normalfont} 168 | \fi 169 | 170 | \ifcsname fangsong\endcsname 171 | \newcommand{\cfs}{\fangsong} 172 | \else 173 | \newcommand{\cfs}{\normalfont} 174 | \fi 175 | 176 | \ifdefstring{\ELEGANT@math}{newtx}{ 177 | \RequirePackage{newtxmath} 178 | \let\Bbbk\relax 179 | \RequirePackage{esint} 180 | %%% use yhmath pkg, uncomment following code 181 | % \let\oldwidering\widering 182 | % \let\widering\undefined 183 | % \RequirePackage{yhmath} 184 | % \let\widering\oldwidering 185 | 186 | %%% use esvect pkg, uncomment following code 187 | % \RequirePackage{esvect} 188 | 189 | \DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n} 190 | \let\sumop\relax\let\prodop\relax 191 | \DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50} 192 | \DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51} 193 | }{\relax} 194 | 195 | 196 | \RequirePackage[ 197 | backend=\ELEGANT@bibend, 198 | citestyle=\ELEGANT@citestyle, 199 | bibstyle=\ELEGANT@bibstyle]{biblatex} 200 | 201 | \RequirePackage{appendix} 202 | 203 | \ifdefstring{\ELEGANT@lang}{cn}{ 204 | \theoremstyle{plain}% default 205 | \newtheorem{theorem}{定理}[section] % 206 | \newtheorem{lemma}[theorem]{引理} % 207 | \newtheorem{proposition}[theorem]{命题} % 208 | \newtheorem*{corollary}{推论} % 209 | \theoremstyle{definition} % 210 | \newtheorem{definition}{定义}[section] % 211 | \newtheorem{conjecture}{猜想}[section] % 212 | \newtheorem{example}{例}[section] % 213 | \theoremstyle{remark} % 214 | \newtheorem*{remark}{\normalfont\bfseries 评论} % 215 | \newtheorem*{note}{\normalfont\bfseries 注} % 216 | \newtheorem{case}{\normalfont\bfseries 案例} % 217 | \renewcommand*{\proofname}{\normalfont\bfseries 证明} % 218 | \renewcommand\contentsname{目录} 219 | \renewcommand\refname{参考文献} % 220 | \renewcommand\figurename{图} % 221 | \renewcommand\tablename{表}% 222 | \newcommand\versiontext{版本:}% 223 | \newcommand\updatetext{日期:}% 224 | \newcommand{\ebibname}{参考文献} 225 | \renewcommand\abstractname{摘\hspace{2em}要} 226 | \setlength\parindent{2\ccwd} 227 | \renewcommand{\abstracttextfont}{\small\citshape\noindent\ignorespaces} 228 | % 新定义命令 229 | \newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries 关键词: } #1} 230 | \newcommand\figref[1]{{\bfseries 图~\ref{#1}}} 231 | \newcommand\tabref[1]{{\bfseries 表~\ref{#1}}} 232 | \renewcommand{\appendixtocname}{附录} 233 | \renewcommand{\appendixpagename}{附录}}{\relax} 234 | 235 | \ifdefstring{\ELEGANT@lang}{en}{ 236 | \theoremstyle{plain}% default 237 | \newtheorem{theorem}{Theorem}[section] % 238 | \newtheorem{lemma}[theorem]{Lemma} % 239 | \newtheorem{proposition}[theorem]{Proposition} % 240 | \newtheorem*{corollary}{Corollary} % 241 | \theoremstyle{definition} % 242 | \newtheorem{definition}{Definition}[section] % 243 | \newtheorem{conjecture}{Conjecture}[section] % 244 | \newtheorem{example}{Example}[section] % 245 | \theoremstyle{remark} % 246 | \newtheorem*{remark}{Remark} % 247 | \newtheorem*{note}{Note} % 248 | \newtheorem{case}{Case} % 249 | \renewcommand*{\proofname}{\normalfont\bfseries Proof}% 250 | \newcommand\versiontext{\itshape Version: }% 251 | \newcommand\updatetext{\itshape Date: }% 252 | \setlength\parindent{2em} 253 | \renewcommand{\abstracttextfont}{\sffamily\small\noindent\ignorespaces} 254 | % newcommands defined in this template. 255 | \newcommand{\keywords}[1]{\vskip 2ex\par\noindent\normalfont{\bfseries Keywords: } #1} 256 | \newcommand\figref[1]{{\bfseries Figure~\ref{#1}}} 257 | \newcommand\tabref[1]{{\bfseries Table~\ref{#1}}} 258 | \newcommand{\ebibname}{Bibliography}}{\relax} 259 | 260 | 261 | \def\bibfont{\footnotesize} 262 | 263 | \AtBeginEnvironment{verbatim}{\microtypesetup{activate=false}} 264 | \BeforeBeginEnvironment{tabular}{\small} 265 | \AfterEndEnvironment{tabular}{} 266 | 267 | \AtBeginDocument{ 268 | \setlength{\abovedisplayskip}{3pt} 269 | \setlength{\belowdisplayskip}{3pt} 270 | \RequirePackage[flushmargin]{footmisc} 271 | \setlength{\footnotesep}{12pt}} 272 | 273 | \def\IfEmpty#1{% 274 | \edef\1{\the#1} 275 | \ifx\1\empty 276 | } 277 | \newtoks\version 278 | \newtoks\institute 279 | 280 | \renewcommand\maketitle{\par 281 | \begingroup 282 | \renewcommand\thefootnote{\@fnsymbol\c@footnote}% 283 | \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% 284 | \long\def\@makefntext##1{\parindent 1em\noindent 285 | \hb@xt@0.1em{% 286 | \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% 287 | \if@twocolumn 288 | \ifnum \col@number=\@ne 289 | \@maketitle 290 | \else 291 | \twocolumn[\@maketitle]% 292 | \fi 293 | \else 294 | \newpage 295 | \global\@topnum\z@ % Prevents figures from going at top of page. 296 | \@maketitle 297 | \fi 298 | \thispagestyle{plain}\@thanks 299 | \endgroup 300 | \setcounter{footnote}{0}% 301 | \global\let\thanks\relax 302 | \global\let\maketitle\relax 303 | \global\let\@maketitle\relax 304 | \global\let\@thanks\@empty 305 | \global\let\@author\@empty 306 | \global\let\@ELEGANT@version\@empty 307 | \global\let\@date\@empty 308 | \global\let\@title\@empty 309 | \global\let\title\relax 310 | \global\let\author\relax 311 | \global\let\date\relax 312 | \global\let\and\relax 313 | \global\let\ELEGANT@version\relax 314 | } 315 | \def\@maketitle{% 316 | \newpage 317 | \null 318 | \vskip 2em% 319 | \begin{center}% 320 | \let \footnote \thanks 321 | {\LARGE\bfseries \@title \par}% 322 | \vskip 1.5em% 323 | {\large 324 | \lineskip .5em% 325 | \begin{tabular}[t]{c}% 326 | \@author\\[1ex] 327 | \end{tabular}\par} 328 | \the\institute% 329 | \vskip 0.5ex% 330 | \IfEmpty\version 331 | \else 332 | {\small\normalfont\citshape\versiontext\the\version} 333 | \fi 334 | \ifx\@date\empty 335 | \else 336 | \vskip 0.1em% 337 | {\small\normalfont\citshape\updatetext\@date}% 338 | \fi 339 | \end{center}% 340 | \par 341 | } 342 | 343 | 344 | \RequirePackage{listings} 345 | \renewcommand{\ttdefault}{cmtt} 346 | 347 | \lstdefinestyle{estyle}{ 348 | basicstyle=% 349 | \ttfamily 350 | \lst@ifdisplaystyle\footnotesize\fi 351 | } 352 | \lstset{basicstyle=\scriptsize\ttfamily,style=estyle} 353 | 354 | \lstset{language=[LaTeX]TeX, 355 | texcsstyle=*\color{winered}, 356 | numbers=none, 357 | breaklines=true, 358 | keywordstyle=\color{winered}, 359 | frame=tlbr,framesep=4pt,framerule=0pt, 360 | commentstyle=\color{commentcolor}, 361 | emph={elegantpaper,fontenc,fontspec,xeCJK,FiraMono,xunicode,newtxmath,figure,fig,image,img,table,itemize,enumerate,newtxtext,newtxtt,ctex,microtype,description,times,newtx,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,cite,gbt7714,lang}, 362 | emphstyle={\color{frenchplum}}, 363 | morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,zhdate,zhtoday}, 364 | tabsize=2, 365 | backgroundcolor=\color{lightgrey} 366 | } 367 | 368 | 369 | 370 | % restore the tt default family to lmodern tt family 371 | \renewcommand\ttdefault{lmtt} 372 | -------------------------------------------------------------------------------- /image/founder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ElegantLaTeX/ElegantPaper/06c958ed9b0c2dbd5165ce6993d9f62305aa085b/image/founder.png -------------------------------------------------------------------------------- /reference.bib: -------------------------------------------------------------------------------- 1 | 2 | @article{en3, 3 | title={{The Mechanism and Effectiveness of Credit Scoring of P2P Lending Platform: Evidence from Renrendai.com}}, 4 | author={Li, Qiang and Chen, Liwen and Zeng, Yong}, 5 | journal={China Finance Review International}, 6 | volume={8}, 7 | number={3}, 8 | pages={256--274}, 9 | year={2018}, 10 | publisher={Emerald Publishing Limited} 11 | } 12 | 13 | 14 | @article{en2, 15 | author = {Carlstrom, Charles T and Fuerst, Timothy S}, 16 | title = {{Agency Costs, Net Worth, and Business Fluctuations: A Computable General Equilibrium Analysis}}, 17 | journal = {The American Economic Review}, 18 | pages = {893-910}, 19 | ISSN = {0002-8282}, 20 | year = {1997}, 21 | type = {Journal Article} 22 | } 23 | 24 | @article{en1, 25 | author = {Quadrini, Vincenzo}, 26 | title = {{Financial Frictions in Macroeconomic Fluctuations}}, 27 | journal = {FRB Richmond Economic Quarterly}, 28 | volume = {97}, 29 | number = {3}, 30 | pages = {209-254}, 31 | year = {2011}, 32 | type = {Journal Article} 33 | } 34 | 35 | @article{cn1, 36 | author = {方军雄}, 37 | key = {fang1 jun1 xiong2}, 38 | title = {{所有制、制度环境与信贷资金配置}}, 39 | journal = {经济研究}, 40 | number = {12}, 41 | pages = {82-92}, 42 | ISSN = {0577-9154}, 43 | year = {2007}, 44 | type = {Journal Article} 45 | } 46 | 47 | @article{cn2, 48 | author = {刘凤良 and 章潇萌 and 于泽}, 49 | key = {liu2 feng4 liang2 zhang1 xiao1 meng2 yu2 ze2}, 50 | title = {{高投资、结构失衡与价格指数二元分化}}, 51 | journal = {金融研究}, 52 | number = {02}, 53 | pages = {54-69}, 54 | ISSN = {1002-7246}, 55 | year = {2017}, 56 | type = {Journal Article} 57 | } 58 | 59 | @article{cn3, 60 | author = {吕捷 and 王高望}, 61 | key = {lv3 jie2 wang2 gao1 wang4}, 62 | title = {{CPI 与 PPI “背离”的结构性解释}}, 63 | journal = {经济研究}, 64 | volume = {50}, 65 | number = {04}, 66 | pages = {136-149}, 67 | ISSN = {0577-9154}, 68 | year = {2015}, 69 | type = {Journal Article} 70 | } 71 | 72 | --------------------------------------------------------------------------------