diff --git a/README-ctan.md b/README-ctan.md new file mode 100644 index 0000000000000000000000000000000000000000..e8e9c42190dc3a9975edfbb23caa3431c269c9dd --- /dev/null +++ b/README-ctan.md @@ -0,0 +1,26 @@ +# The njuthesis class + +## Overview + +This package is intended for typesetting Nanjing University thesis with LaTeX, providing support for bachelor, master, and doctoral thesis. Compilation of this class requires either `xelatex` or `lualatex` engine. + +## License + +----- + This work may be distributed and/or modified under the conditions of + the [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), + either version 1.3c of this license or (at your option) any later + version. +----- + +## Contributing + +If you run into any problem with the template, please contact us via Github issue or submit Pull Request. + +## Wiki + +Please see [Chinese wiki](https://github.com/nju-lug/NJUThesis/wiki)銆� + +----- + +Copyright 漏 NJU-LUG diff --git a/njuthesis.dtx b/njuthesis.dtx index ab1ad5589ab9e4b5dcdb4d92a79912d95a3147a2..859b49711256cda3e0f085ce20874e037eab1d35 100644 --- a/njuthesis.dtx +++ b/njuthesis.dtx @@ -24,112 +24,6 @@ \iffalse %</internal> % -%<*readme-zh> -# NJU Thesis - -[](https://git.nju.edu.cn/nju-lug/nju-latex-templates) -[](https://tex.nju.edu.cn) - - -> 姝ら」鐩槸鍩轰簬[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)鐨勯噸鏋勭増鏈紝鐩墠鏈鐢熺増鏈�**宸茬粡鍩烘湰閲嶆瀯瀹屾垚**锛岀鍗氳鏂�**姝e湪**鏍规嵁鐮旂┒鐢熼櫌鐨勬枃浠堕噸鏋勶紝浣嗙爺绌剁敓闄㈢殑瑙勫畾骞朵笉瀹屽杽锛屽洜姝ら儴鍒嗘牸寮忓彲鑳戒細鍙傝€冩湰绉戠殑锛�**濡傛灉闄㈢郴鍙︽湁瑕佹眰锛岃鑷淇敼鎴栬€呮彁浜ssue**銆� - -鍘熸潵鐨刐NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)妯℃澘澶繃鍙よ€佸苟涓斾笉鏀寔纭曞+銆佸崥澹鏂囷紝鐩墠闅句互缁存姢锛屽洜姝や负浜嗘ā鏉跨殑鍙寔缁彂灞曪紝鐜板湪灏嗗璇ラ」鐩繘琛岄噸鏋勶紝椤圭洰鎸傝浇浜嶽NJU-LUG](https://github.com/nju-lug)缁勭粐浠撳簱涓嬶紝鐩墠宸瞇鍙戝竷鍦–TAN](https://ctan.org/pkg/njuthesis)銆� - -鐩稿叧鏂囨。璇峰弬瑙乕鏈」鐩畐iki](https://github.com/nju-lug/NJUThesis/wiki)銆� - -## 蹇€熷紑濮� - -浠�0.9.0鐗堜互鍚庯紝鏈ā鏉夸互DocStrip(`.dtx`)鏍煎紡杩涜缁存姢銆傚父瑙勭殑`.cls`鏍煎紡鏂囦欢鍙粠Releases椤甸潰涓嬭浇鎴栦娇鐢ㄤ互涓嬫柟娉曟彁鍙栥€� - -### 鍏充簬DocStrip鏂囦欢 - -DocStrip鏍煎紡鍚堝苟浜哃aTeX婧愪唬鐮佸拰璇存槑鏂囨。锛屾洿鏈夊埄浜庡畯鍖呯殑鍙戝竷銆傝浣跨敤璇ユ枃浠讹紝璇峰湪褰撳墠宸ヤ綔鐩綍涓嬫墦寮€缁堢锛� - -- 杈撳叆`xetex njuthesis.dtx`浠ユ彁鍙栧畯鍖呭唴瀹� -- 杈撳叆`latexmk njuthesis.dtx`浠ョ敓鎴愬苟鏌ョ湅鍐呯疆鐨勬枃妗� - -璇锋敞鎰忥紝鐢变簬鏂囦欢閲嶅悕鍘熷洜锛岄」鐩腑鐨勭ず渚嬭鏂囨ā鏉垮凡琚噸鍛藉悕涓篳njuthesis-sample.tex`銆� - -### 鏈湴缂栬瘧 - -1. [浠庡崡澶ч暅鍍忕珯涓嬭浇](https://mirror.nju.edu.cn/download/app/TeX%20%E6%8E%92%E7%89%88%E7%B3%BB%E7%BB%9F)骞跺畨瑁匱eXLive鎴栬€匨iKTeX鏈€鏂扮増 -2. 涓嬭浇鍖呭惈[妯℃澘鍏ㄩ儴鏂囦欢](https://github.com/nju-lug/NJUThesis/releases/latest)鐨勫帇缂╁寘`njuthesis.zip` -3. 鏍规嵁闇€瑕佹洿鏀筦njuthesis-sample.tex`鏂囦欢涓殑鍐呭 -4. 鍦ㄦā鏉挎牴鐩綍涓嬭繍琛宍latexmk`缂栬瘧鏂囦欢锛屽緱鍒板搴旂殑PDF - -#### **鍏充簬鏈湴缂栬瘧** - -- 妯℃澘鏀寔`latexmk`銆乣xelatex`銆乣lualatex`涓夌缂栬瘧鏂瑰紡 -- 濡傛灉浣跨敤`latexmk`锛岃鍔″繀浣跨敤瀹屾暣鐨勫懡浠latexmk -xelatex`浠ュ厤浜х敓涓嶅繀瑕佺殑闂 -- 濡傛灉浣跨敤`xelatex`鎴朻lualatex`锛岄渶瑕佹寜鐓xelatex/lualatex` -> `biber` -> `xelatex/lualatex` -> `xelatex/lualatex`鐨勯『搴忕紪璇戝洓娆� -- 浠撳簱涓璥.vscode`闄勫甫涓€浠絍Scode鐨凩aTeX WorkShop鐨勯厤缃枃浠讹紝鍙牴鎹渶瑕佷娇鐢� - -### [鍗楀ぇTeX](https://tex.nju.edu.cn)缂栬瘧 - -1. 涓嬭浇鍖呭惈[妯℃澘鍏ㄩ儴鏂囦欢](https://github.com/nju-lug/NJUThesis/releases/latest)鐨勫帇缂╁寘`njuthesis.zip` -2. 鐧诲綍[鍗楀ぇTeX](https://tex.nju.edu.cn)锛岀偣鍑籒ew Project -> Upload Project涓婁紶鍒氬垰寰楀埌鐨勫帇缂╁寘锛屼笂浼犲悗`njuthesis-sample.tex`銆乣njuthesis.cls`绛夋枃浠跺簲鍦ㄦ牴鐩綍锛�0.10.0浠ュ悗鐨勭洰褰曠粨鏋勫涓嬫墍绀猴細 - - ```shell - NJUThesis/ - 鈹� - 鈹� njulogo.sty - 鈹� njuthesis.bib - 鈹� njuthesis.cls - 鈹� njuthesis-sample.tex - ``` - -3. 鍦ㄥ崡澶eX椤圭洰鍐呴〉闈㈠乏涓婅鐨刞Menu`涓紝灏嗙紪璇戝櫒鏀逛负`XeLaTeX` -4. 缂栧啓TeX鏂囨。 - -### 鍏朵粬 - -鏇村鍐呭璇峰弬瑙侀」鐩甒iki涓殑[浣跨敤璇存槑](https://github.com/nju-lug/NJUThesis/wiki/%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)銆� - -浣犱篃鍙互涓嬭浇[Release](https://github.com/nju-lug/NJUThesis/releases/latest)涓檮甯︾殑`njuthesis.pdf`锛岄噷闈㈣灏介槓杩颁簡妯℃澘鐨勭壒鎬у拰浣跨敤鏂规硶銆� - -## 甯歌闂 - -璇峰弬瑙乕甯歌闂](https://github.com/nju-lug/NJUThesis/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)銆� - -## 璐$尞 - -濡傛灉浣犲彂鐜颁簡妯℃澘鐨勯棶棰橈紝娆㈣繋鍦℅ithub涓璠鎻愪氦issue](https://github.com/nju-lug/NJUThesis/issues)鎴栬€匬R銆� - -## 璁稿彲 - -鏈ā鏉跨殑鍙戝竷閬靛畧 LaTeX Project Public License锛堢増鏈� 1.3c 鎴栨洿楂橈級銆� - -%</readme-zh> -% -%<*readme-en> -# The njuthesis class - -## Overview - -This package is intended for typesetting Nanjing University thesis with LaTeX, providing support for bachelor, master, and doctoral thesis. Compilation of this class requires either `xelatex` or `lualatex` engine. - -## License - ------ - This work may be distributed and/or modified under the conditions of - the [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), - either version 1.3c of this license or (at your option) any later - version. ------ - -## Contributing - -If you run into any problem with the template, please contact us via Github issue or submit Pull Request. - -## Wiki - -Please see [Chinese wiki](https://github.com/nju-lug/NJUThesis/wiki)銆� - ------ - -Copyright 漏 NJU-LUG -%</readme-en> -% %<*internal> \fi \begingroup @@ -174,9 +68,6 @@ through XeTeX. \file{\jobname.ins} {\from{\jobname.dtx}{install}} %</internal> %<*install> - \usedir{doc/latex/njuthesis} - \nopreamble\nopostamble - \file{README.md} {\from{\jobname.dtx}{readme-zh}} } \obeyspaces @@ -228,7 +119,9 @@ through XeTeX. \definecolor{njublue}{cmyk}{0.8,0.5,0,0} \definecolor{njuyellow}{cmyk}{0,0.3,1,0} \begin{document} - \DocInput{njuthesis.dtx} + \DocInput{njuthesis.dtx} + \DocInput{njuthesis-logos.dtx} + \PrintIndex \end{document} %</driver> % \fi @@ -2554,4 +2447,3 @@ through XeTeX. % % \end{implementation} % -% \PrintIndex