编写论文. cls内容如下:
\ needs tex format { latex 2e }[27/1/19]
\ provides class { Thesis }
[211/4/5v .1博士论文模板]
\LoadClass[cs4size,a4paper,fancyhdr,fntef,UTF8]{ ctex book }[27/1/19]
\ require package { AMS math,amsthm,amsfonts,amssymb中国科学院研究生院\\博士学位论文\ vskip 5pt
\ BF \ heiti \ zihao { 3 } \ underline { ~ \ IHEP @ value @ title ~ }
\ vskip 2pt
\ BF \ kaishu \ zihao { 4 } \ underline { ~ \ IHEP @ value @ author ~ }
\ end { center }
}
\ makeat letter
\ def \ IHEP @ value @ title { ~ ~ ~(论~文~题~目)~ ~ ~ ~ ~ }
\ def \ IHEP @ value @ author { ~ ~ ~ ~(作~者~姓~名)~ ~ ~ ~ ~ }
\ makeatother
\ endinput
写测试文件test.tex,内容如下\ document class { thesis } \ begin { document }
\ title {编写论文模板}
\ author { Li ropt }
\ make title
\ end { document }
将论文. cls和测试. tex放在同一目录下,用乳液编译
转载