├── tools ├── unix2dos4toc.bat ├── busybox.exe ├── busybox.exe.sha256 ├── compress_pdf.bat ├── compress_pdf.sh └── toc2txt.tex ├── NCNU_patch ├── build.bat ├── README.md ├── build.sh ├── main.tex ├── titlepage.tex └── NCNU_thesis.cls ├── NCTU_patch ├── build.bat ├── figures │ └── logo.pdf ├── memoir.tex ├── NCU_thesis.cls ├── README.md ├── build.sh ├── main.tex ├── cover.tex ├── NCTU_thesis.cls └── titlepage.tex ├── NCU_en ├── codes │ ├── hello_world_matlab.m │ ├── hello_world_idl.pro │ └── hello_world_c.c ├── figures │ ├── fig1.png │ ├── fig3.png │ ├── logo-GNU.png │ ├── logo-Linux.png │ ├── logo-NCU.jpg │ └── logo-sinica.png ├── letter_authorization.pdf ├── letter_verification.pdf ├── letter_recommendation.pdf ├── letter_publication_request.pdf ├── chapter_result.tex ├── chapter_conclusion.tex ├── chapter_method.tex ├── chapter_template.tex ├── abstract_zh.tex ├── abstract_en.tex ├── chapter_introduction.tex ├── NCU_thesis.cls ├── sppmgTools.cwl ├── appendix_device.tex ├── appendix_codes.tex ├── appendix_solution.tex ├── abbreviation.tex ├── README.md ├── acknowledgements.tex ├── macros_document.tex ├── zh_hidden_warning.tex ├── bibliography.tex ├── chapter_template_demo.tex ├── appendix_letters_NCU.tex ├── titlepage_en.tex ├── titlepage_zh.tex ├── sppmgTools.sty ├── main.tex ├── macros_preamble.tex ├── demo.bib └── config.tex ├── NCU_zh ├── codes │ ├── hello_world_matlab.m │ ├── hello_world_idl.pro │ └── hello_world_c.c ├── figures │ ├── fig1.png │ ├── fig3.png │ ├── logo-GNU.png │ ├── logo-Linux.png │ ├── logo-NCU.jpg │ └── logo-sinica.png ├── letter_authorization.pdf ├── letter_verification.pdf ├── letter_recommendation.pdf ├── letter_publication_request.pdf ├── chapter_conclusion.tex ├── chapter_method.tex ├── chapter_template.tex ├── abstract_zh.tex ├── chapter_result.tex ├── chapter_introduction.tex ├── abstract_en.tex ├── NCU_thesis.cls ├── appendix_device.tex ├── sppmgTools.cwl ├── appendix_solution.tex ├── abbreviation.tex ├── appendix_codes.tex ├── README.md ├── acknowledgements.tex ├── macros_document.tex ├── bibliography.tex ├── chapter_template_demo.tex ├── appendix_letters_NCU.tex ├── main.tex ├── titlepage.tex ├── sppmgTools.sty ├── macros_preamble.tex ├── demo.bib └── config.tex ├── NTHU_patch ├── build.bat ├── figures │ └── nthu-logo.pdf ├── NCU_thesis.cls ├── NTHU_thesis.cls ├── README.md ├── build.sh ├── main.tex ├── titlepage.tex └── config.tex ├── NTU_patch ├── build.bat ├── figures │ └── watermark.pdf ├── NCU_thesis.cls ├── build.sh ├── README.md ├── main.tex ├── bookspine.tex ├── titlepage.tex └── NTU_thesis.cls ├── NCU_en.pdf ├── NCU_zh.pdf ├── NCNU_patch.pdf ├── NCTU_patch.pdf ├── NTHU_patch.pdf ├── NTU_patch.pdf ├── YM_patch.pdf ├── MWE_zh ├── README.md ├── article.tex └── book.tex ├── info ├── NTU_台大論文規範.pdf ├── NCTU_交大論文規範.pdf ├── NCNU_暨南大學論文格式.pdf ├── NCU_中央大學學位論文撰寫體例參考.pdf ├── NTHU-清大 │ ├── 論文內文附件裝訂順序.pdf │ ├── 畢業論文封面格式樣本-博士.docx │ └── NTHU_國立清華大學研究生畢業論文格式條例(註冊組).pdf └── YM-陽明 │ ├── ym_陽明大學碩士論文格式.pdf │ ├── ym_國立陽明大學論文上傳手冊.pdf │ └── ym_碩博士論文格式製作說明事項附件1061212.pdf ├── NTU_patch_bookspine.pdf ├── YM_patch ├── figures │ └── logo-YM.jpg ├── README.md ├── build.sh ├── YM_thesis.cls ├── main.tex ├── titlepage.tex └── config.tex ├── .github └── ISSUE_TEMPLATE │ └── ----.md ├── LICENSE.md ├── CHANGELOG.md └── README.md /tools/unix2dos4toc.bat: -------------------------------------------------------------------------------- 1 | busybox unix2dos main_toc.txt 2 | -------------------------------------------------------------------------------- /NCNU_patch/build.bat: -------------------------------------------------------------------------------- 1 | ..\tools\busybox.exe sh build.sh 2 | pause -------------------------------------------------------------------------------- /NCTU_patch/build.bat: -------------------------------------------------------------------------------- 1 | ..\tools\busybox.exe sh build.sh 2 | pause -------------------------------------------------------------------------------- /NCU_en/codes/hello_world_matlab.m: -------------------------------------------------------------------------------- 1 | fprintf('hello, world\n'); -------------------------------------------------------------------------------- /NCU_zh/codes/hello_world_matlab.m: -------------------------------------------------------------------------------- 1 | fprintf('hello, world\n'); -------------------------------------------------------------------------------- /NTHU_patch/build.bat: -------------------------------------------------------------------------------- 1 | ..\tools\busybox.exe sh build.sh 2 | pause -------------------------------------------------------------------------------- /NTU_patch/build.bat: -------------------------------------------------------------------------------- 1 | ..\tools\busybox.exe sh build.sh 2 | pause -------------------------------------------------------------------------------- /NCU_en/codes/hello_world_idl.pro: -------------------------------------------------------------------------------- 1 | print,"hello, world" 2 | 3 | end -------------------------------------------------------------------------------- /NCU_zh/codes/hello_world_idl.pro: -------------------------------------------------------------------------------- 1 | print,"hello, world" 2 | 3 | end -------------------------------------------------------------------------------- /NCU_en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en.pdf -------------------------------------------------------------------------------- /NCU_zh.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh.pdf -------------------------------------------------------------------------------- /NCNU_patch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCNU_patch.pdf -------------------------------------------------------------------------------- /NCTU_patch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCTU_patch.pdf -------------------------------------------------------------------------------- /NTHU_patch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NTHU_patch.pdf -------------------------------------------------------------------------------- /NTU_patch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NTU_patch.pdf -------------------------------------------------------------------------------- /YM_patch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/YM_patch.pdf -------------------------------------------------------------------------------- /MWE_zh/README.md: -------------------------------------------------------------------------------- 1 | Here put some "Minimal Working Example (MWE)" for Chinese LaTeX document. -------------------------------------------------------------------------------- /info/NTU_台大論文規範.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NTU_台大論文規範.pdf -------------------------------------------------------------------------------- /tools/busybox.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/tools/busybox.exe -------------------------------------------------------------------------------- /NCU_en/codes/hello_world_c.c: -------------------------------------------------------------------------------- 1 | #include 2 | main() 3 | { 4 | printf("hello, world\n"); 5 | } -------------------------------------------------------------------------------- /NCU_zh/codes/hello_world_c.c: -------------------------------------------------------------------------------- 1 | #include 2 | main() 3 | { 4 | printf("hello, world\n"); 5 | } -------------------------------------------------------------------------------- /info/NCTU_交大論文規範.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NCTU_交大論文規範.pdf -------------------------------------------------------------------------------- /NCU_en/figures/fig1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/fig1.png -------------------------------------------------------------------------------- /NCU_en/figures/fig3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/fig3.png -------------------------------------------------------------------------------- /NCU_zh/figures/fig1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/fig1.png -------------------------------------------------------------------------------- /NCU_zh/figures/fig3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/fig3.png -------------------------------------------------------------------------------- /NTU_patch_bookspine.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NTU_patch_bookspine.pdf -------------------------------------------------------------------------------- /info/NCNU_暨南大學論文格式.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NCNU_暨南大學論文格式.pdf -------------------------------------------------------------------------------- /tools/busybox.exe.sha256: -------------------------------------------------------------------------------- 1 | 44493dc69c1f435fe07e47b8fab5602391941cb798eb40d369c7cd47fb82cfba busybox.exe 2 | -------------------------------------------------------------------------------- /NCTU_patch/figures/logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCTU_patch/figures/logo.pdf -------------------------------------------------------------------------------- /NCU_en/figures/logo-GNU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/logo-GNU.png -------------------------------------------------------------------------------- /NCU_en/figures/logo-Linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/logo-Linux.png -------------------------------------------------------------------------------- /NCU_en/figures/logo-NCU.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/logo-NCU.jpg -------------------------------------------------------------------------------- /NCU_zh/figures/logo-GNU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/logo-GNU.png -------------------------------------------------------------------------------- /NCU_zh/figures/logo-Linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/logo-Linux.png -------------------------------------------------------------------------------- /NCU_zh/figures/logo-NCU.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/logo-NCU.jpg -------------------------------------------------------------------------------- /YM_patch/figures/logo-YM.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/YM_patch/figures/logo-YM.jpg -------------------------------------------------------------------------------- /info/NCU_中央大學學位論文撰寫體例參考.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NCU_中央大學學位論文撰寫體例參考.pdf -------------------------------------------------------------------------------- /info/NTHU-清大/論文內文附件裝訂順序.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NTHU-清大/論文內文附件裝訂順序.pdf -------------------------------------------------------------------------------- /info/YM-陽明/ym_陽明大學碩士論文格式.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/YM-陽明/ym_陽明大學碩士論文格式.pdf -------------------------------------------------------------------------------- /NCU_en/figures/logo-sinica.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/figures/logo-sinica.png -------------------------------------------------------------------------------- /NCU_en/letter_authorization.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/letter_authorization.pdf -------------------------------------------------------------------------------- /NCU_en/letter_verification.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/letter_verification.pdf -------------------------------------------------------------------------------- /NCU_zh/figures/logo-sinica.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/figures/logo-sinica.png -------------------------------------------------------------------------------- /NCU_zh/letter_authorization.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/letter_authorization.pdf -------------------------------------------------------------------------------- /NCU_zh/letter_verification.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/letter_verification.pdf -------------------------------------------------------------------------------- /NTU_patch/figures/watermark.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NTU_patch/figures/watermark.pdf -------------------------------------------------------------------------------- /info/NTHU-清大/畢業論文封面格式樣本-博士.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NTHU-清大/畢業論文封面格式樣本-博士.docx -------------------------------------------------------------------------------- /info/YM-陽明/ym_國立陽明大學論文上傳手冊.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/YM-陽明/ym_國立陽明大學論文上傳手冊.pdf -------------------------------------------------------------------------------- /NCU_en/letter_recommendation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/letter_recommendation.pdf -------------------------------------------------------------------------------- /NCU_zh/letter_recommendation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/letter_recommendation.pdf -------------------------------------------------------------------------------- /NTHU_patch/figures/nthu-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NTHU_patch/figures/nthu-logo.pdf -------------------------------------------------------------------------------- /NCU_en/letter_publication_request.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_en/letter_publication_request.pdf -------------------------------------------------------------------------------- /NCU_zh/letter_publication_request.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/NCU_zh/letter_publication_request.pdf -------------------------------------------------------------------------------- /info/YM-陽明/ym_碩博士論文格式製作說明事項附件1061212.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/YM-陽明/ym_碩博士論文格式製作說明事項附件1061212.pdf -------------------------------------------------------------------------------- /info/NTHU-清大/NTHU_國立清華大學研究生畢業論文格式條例(註冊組).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sppmg/TW_Thesis_Template/HEAD/info/NTHU-清大/NTHU_國立清華大學研究生畢業論文格式條例(註冊組).pdf -------------------------------------------------------------------------------- /NCU_zh/chapter_conclusion.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{總結} 5 | 就是這樣,喵! 6 | 7 | \end{document} -------------------------------------------------------------------------------- /NCU_en/chapter_result.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Result} 5 | I had a nice thesis. 6 | 7 | \end{document} -------------------------------------------------------------------------------- /tools/compress_pdf.bat: -------------------------------------------------------------------------------- 1 | rem compress_pdf.sh for windows 2 | busybox compress_pdf.sh 3 | rem sleep n (sec) for batch 4 | rem win 7+ have timeout cmd 5 | ping 127.0.0.1 -n 3 > nul 6 | -------------------------------------------------------------------------------- /NCU_en/chapter_conclusion.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Conclusion} 5 | I am free, I am not own by M\${}. 6 | 7 | \end{document} -------------------------------------------------------------------------------- /NCU_en/chapter_method.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Method} 5 | So I use sppmg's \LaTeX\ template. 6 | 7 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/chapter_method.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{實驗方法及裝置} 5 | 為了防止世界被破壞$\sim$ \\ 6 | 為了守護世界的和平$\sim$ 7 | 8 | \end{document} -------------------------------------------------------------------------------- /NCU_en/chapter_template.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{} 5 | 6 | \section{} 7 | 8 | \subsection{} 9 | 10 | 11 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/chapter_template.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{} 5 | 6 | \section{} 7 | 8 | \subsection{} 9 | 10 | 11 | \end{document} -------------------------------------------------------------------------------- /NCTU_patch/memoir.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{自傳(memoir)} 5 | 6 | 你好,我爸是\_\_\_。 7 | 8 | Hi, my father is \_\_\_. 9 | 10 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/abstract_zh.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{摘要} 5 | 在此寫上你的中文摘要。 6 | 7 | \vspace{2em} 8 | \noindent \textbf{關鍵字:} \keywordsZh{} % Set keywords in config.tex 9 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/chapter_result.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{實驗結果} 5 | 6 | \centering 7 | 8 | 可愛又迷人的反派角色 \\ 9 | 武藏! \\ 10 | 小次郎! \\ 11 | 我們是穿梭在銀河中的火箭隊 \\ 12 | 白洞、白色的明天正等著我們 \\ 13 | 14 | \end{document} -------------------------------------------------------------------------------- /NCU_en/abstract_zh.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | \setlength{\parindent}{2em} %縮排2字寬 4 | 5 | \chapter{摘要} 6 | 在此寫上你的中文摘要。 7 | 8 | \vspace{2em} 9 | \noindent \textbf{關鍵字:} \keywordsZh{} % Set keywords in config.tex 10 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/chapter_introduction.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{緒論} 5 | (可以複製chapter\_template.tex新增子檔或是 6 | chapter\_template\_demo.tex 複製表格及插圖\LaTeX\ code喔!) 7 | 8 | 既然你誠心誠意的發問了, 9 | 我們就大發慈悲的告訴你。 10 | 11 | \end{document} -------------------------------------------------------------------------------- /NCU_en/abstract_en.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Abstract} 5 | Write your English abstract here. 6 | 7 | 8 | 9 | \vspace{2em} 10 | \noindent \textbf{Keywords:} \keywordsEn{} % Set keywords in config.tex 11 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/abstract_en.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Abstract} 5 | Write your English abstract here. 6 | 7 | 8 | 9 | \vspace{2em} 10 | \noindent \textbf{Keywords:} \keywordsEn{} % Set keywords in config.tex 11 | \end{document} -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/----.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 使用異常 3 | about: 樣板編譯異常專用 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 請提供以下資訊: 11 | 12 | 1. 未修改的樣板是否有同樣狀況? 13 | 2. 是否有錯誤訊息,有的話請提供。 14 | 3. LaTeX 發行版(TeX Live / MikTeX) 15 | 4. 作業系統(Linux / Mac / Windows) 16 | 5. (可選)是否提供能產生問題的最小範例(MWE),如經某小改動就導致樣板編譯錯誤,這能讓體定位問題點,也許能直接解決問題。 17 | -------------------------------------------------------------------------------- /NCU_en/chapter_introduction.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | 5 | \chapter{Introduction} 6 | (You can copy ``chapter\_template.tex'' or ``chapter\_template\_demo.tex'' to create new sub-file(chapter). ) 7 | 8 | Write your Introduction here. 9 | eg, \\ 10 | I don't want my chaste thesis impinge by M\${}. But \LaTeX\ is little hard. 11 | 12 | \end{document} -------------------------------------------------------------------------------- /NCU_en/NCU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{thesis_base} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NCU_zh/NCU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{thesis_base} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NTU_patch/NCU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{NTU_thesis}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{NTU_thesis} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /MWE_zh/article.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt,a4paper]{article} 2 | \usepackage{xeCJK} 3 | \usepackage{fontspec} 4 | 5 | % \setmainfont{DejaVu Sans} 6 | \setCJKmainfont{AR PL UMing TW} 7 | % \setCJKsansfont{AR PL UMing TW} 8 | \XeTeXlinebreaklocale "zh" 9 | \XeTeXlinebreakskip = 0pt plus 1pt 10 | \author{sppmg} 11 | \title{MWE} 12 | 13 | \begin{document} 14 | \maketitle 15 | 16 | % article no \chapter{} 17 | \section{我愛Linux} 18 | 我認為Linux是世界上最強的作業系統...... 19 | \end{document} -------------------------------------------------------------------------------- /NCTU_patch/NCU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{NCTU_thesis}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{NCTU_thesis} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NTHU_patch/NCU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{NTHU_thesis}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{NTHU_thesis} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NTHU_patch/NTHU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NTHU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | % Load base class 9 | \LoadClass{thesis_base} 10 | %%%%% Load additional packages and commands. 11 | 12 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NCU_zh/appendix_device.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{裝置列表} 5 | 6 | \begin{table}[!h] 7 | \centering 8 | \begin{tabularx}{\textwidth}{|l|l|X|} 9 | \hline 10 | 裝置 & 型號 & 說明 \\ \hline 11 | Linux & Debian 9 & 世界好用的作業系統 \\ \hline 12 | Windows & 10 & 防止人腦老化的工具 \\ \hline 13 | \end{tabularx} 14 | \caption{裝置列表} 15 | \label{table:list_device} 16 | \end{table} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /NCNU_patch/README.md: -------------------------------------------------------------------------------- 1 | # 國立暨南國際大學 LaTeX 論文樣板(patch) 2 | 3 | 為了維護方便,暨南版的僅附上與中央版有差異的檔案。請透過內附的 build 工具建立完整樣板。 4 | 5 | *注意!摘要頁排版與校方略有不同,並且我也有些地方沒對齊,在意者請自行調整或等我有時間再做。須要的話可以催一下我 XD 。* 6 | 7 | 8 | ## 使用方法 9 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 10 | 11 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 12 | 13 | ## 論文相關說明 14 | 15 | ### 書脊 16 | 我相信學校附近的影印店比我專業的多 :D ,而且我不知道你做了書脊他們會如何使用。 17 | 18 | 如果仍然希望自製書脊者,請參考台大版(NTU_patch)的製作方式。 19 | 20 | -------------------------------------------------------------------------------- /NCU_en/sppmgTools.cwl: -------------------------------------------------------------------------------- 1 | % CWL File for sppmg's command 2 | % ref: https://websvn.kde.org/*checkout*/tags/kile/2.0/src/README.cwl 3 | 4 | \fig{path} 5 | \fig[scalefactor]{path}[caption] 6 | \fig[scalefactor][fig:label][!htb]{path}[caption][short caption] 7 | 8 | \insfig{path} 9 | \insfig[scalefactor]{path}[caption] 10 | \insfig[scalefactor][fig:label][!htb]{path}[caption][short caption] 11 | 12 | \circhar{text} 13 | 14 | \placetextbox{x(mm)}{y(mm)}{text} 15 | 16 | \fs{fontsize} 17 | \fs{fontsize}[baselineskip] 18 | \fs{fontsize}[baselinestretch] 19 | \showfont -------------------------------------------------------------------------------- /NCU_zh/sppmgTools.cwl: -------------------------------------------------------------------------------- 1 | % CWL File for sppmg's command 2 | % ref: https://websvn.kde.org/*checkout*/tags/kile/2.0/src/README.cwl 3 | 4 | \fig{path} 5 | \fig[scalefactor]{path}[caption] 6 | \fig[scalefactor][fig:label][!htb]{path}[caption][short caption] 7 | 8 | \insfig{path} 9 | \insfig[scalefactor]{path}[caption] 10 | \insfig[scalefactor][fig:label][!htb]{path}[caption][short caption] 11 | 12 | \circhar{text} 13 | 14 | \placetextbox{x(mm)}{y(mm)}{text} 15 | 16 | \fs{fontsize} 17 | \fs{fontsize}[baselineskip] 18 | \fs{fontsize}[baselinestretch] 19 | \showfont -------------------------------------------------------------------------------- /NCU_en/appendix_device.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{List of device} 5 | 6 | \begin{table}[!h] 7 | \centering 8 | \begin{tabularx}{\textwidth}{|l|l|X|} 9 | \hline 10 | device & Model & Description \\ \hline 11 | Linux & Debian 9 & Best of best of best OS \\ \hline 12 | Windows & 10 & Best of Best tool to prevent the aging of brain. \\ \hline 13 | \end{tabularx} 14 | \caption{List of device} 15 | \label{table:list_device} 16 | \end{table} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /NCU_en/appendix_codes.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | % Here demo instert whole code file. You can only insert code directly, 4 | % please read my tutorial or document of listings package. 5 | % code style set in macros_preamble already. 6 | % Supported language please read document of listings package. 7 | 8 | 9 | \chapter{Code} 10 | \section{C} 11 | \lstinputlisting[language=C]{hello_world_c.c} 12 | 13 | \section{Matlab} 14 | \lstinputlisting[language=matlab]{hello_world_matlab.m} 15 | 16 | \section{IDL} 17 | \lstinputlisting[language=IDL]{hello_world_idl.pro} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /NCU_en/appendix_solution.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \definecolor{Gray3}{gray}{0.8} 5 | 6 | \chapter{Solutions} 7 | 8 | \section{The solution} 9 | \begin{table}[!h] 10 | \centering 11 | \begin{tabular}{| l | l |} 12 | \hline 13 | Component & Concentration(mM) \\ \hline 14 | \rowcolor{Gray3} 15 | \ce{NaCl} & 1.0 \\ \hline 16 | \ce{CaCl_2} & 2.0 \\ \hline 17 | \rowcolor{Gray3} 18 | \ce{NaCl} & 1.0 \\ \hline 19 | \ce{CaCl_2} & 2.0 \\ \hline 20 | \end{tabular} 21 | \caption{The solution} 22 | \end{table} 23 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/appendix_solution.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \definecolor{Gray3}{gray}{0.8} 5 | 6 | \chapter{Solutions} 7 | 8 | \section{The solution} 9 | \begin{table}[!h] 10 | \centering 11 | \begin{tabular}{| l | l |} 12 | \hline 13 | Component & Concentration(mM) \\ \hline 14 | \rowcolor{Gray3} 15 | \ce{NaCl} & 1.0 \\ \hline 16 | \ce{CaCl_2} & 2.0 \\ \hline 17 | \rowcolor{Gray3} 18 | \ce{NaCl} & 1.0 \\ \hline 19 | \ce{CaCl_2} & 2.0 \\ \hline 20 | \end{tabular} 21 | \caption{The solution} 22 | \end{table} 23 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/abbreviation.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{使用符號與定義} 5 | 這裡示範用表格做符號與定義列表。你也可以利用套件``nomencl''(簡易)或``glossaries''(強大)完成,詳細說明見教學(v1.8+)。 6 | 7 | \begin{table}[h] 8 | \normalsize % 使用與內文一樣大的字體,請自調 9 | \centering 10 | \begin{tabular}{c@{\quad:}l} 11 | % 符號 & 說明 \\ 12 | VIM & 用vim的是神 \\ 13 | Emacs & 神在用的編輯器 \\ 14 | CTAN & Comprehensive TeX Archive Network, ctan.org \\ 15 | 16 | \end{tabular} 17 | \caption*{符號與定義} % 不想顯示請註解/刪除\caption行(\label自動失效) 18 | \label{table:symbol_def} 19 | \end{table} 20 | 21 | \end{document} 22 | -------------------------------------------------------------------------------- /NCU_zh/appendix_codes.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | % Here demo instert whole code file. You can only insert code directly, 4 | % please read my tutorial or document of listings package. 5 | % code style set in macros_preamble already. 6 | % Supported language please read document of listings package or 7 | % https://www.sharelatex.com/learn/Code_listing#!#Supported_languages 8 | 9 | \chapter{程式碼} 10 | \section{C} 11 | \lstinputlisting[language=C]{hello_world_c.c} 12 | 13 | \section{Matlab} 14 | \lstinputlisting[language=matlab]{hello_world_matlab.m} 15 | 16 | \section{IDL} 17 | \lstinputlisting[language=IDL]{hello_world_idl.pro} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /NCU_zh/README.md: -------------------------------------------------------------------------------- 1 | # 國立中央大學 LaTeX 論文樣板(中文) 2 | 這是基於我論文製作的樣板,所以是可以過校方審核的,請安心服用 :D 3 | 4 | 封面及 config.tex 變數參考了 [羅吉昌教授](https://code.google.com/archive/p/ncu-thesis-latex-template/) 的樣板。 5 | 6 | ## 使用方法 7 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 8 | 9 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 10 | 11 | ## 論文相關說明 12 | 13 | ### 插入文件 14 | 15 | 中英文版`審定書`、`授權書`等文件均已附上,亦於 2018-01-09 確認過與教務處相同。 16 | 17 | 中央版附上自動填單(章節),設定完 `config.tex` 中個資部份即可自動將必要資訊填入文件。 18 | 19 | ### 書脊 20 | 中央沒有規定要附上書脊,所以我這裡也不放。我相信學校附近的影印店比我專業的多 :D ,而且我不知道你做了書脊他們會如何使用。 21 | 22 | 如果仍然希望自製書脊者,請參考台大版(NTU_patch)的製作方式。 23 | 24 | ## 其餘資訊 25 | ### 其他網友樣板 26 | 見[同好連結](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90) 27 | -------------------------------------------------------------------------------- /tools/compress_pdf.sh: -------------------------------------------------------------------------------- 1 | #!/bon/bash 2 | # Compress pdf 3 | 4 | echo This is simple script for compress PDF file. 5 | echo WARNING ! Compress PDF may decrease quality of image. 6 | 7 | if [ -z "$@" ] ; then 8 | if [ -f "main.pdf" ] ; then 9 | pdf="main.pdf" 10 | else 11 | echo Error! Please specify PDF for Compress. 12 | echo Usage: $0 "your_pdf.pdf" 13 | exit 0 14 | fi 15 | else 16 | pdf="$1" 17 | fi 18 | 19 | new_pdf="$(basename $pdf .pdf)_compressed.pdf" 20 | bookmark="$(basename $pdf .pdf)_bookmark.txt" 21 | tmp_pdf="$(basename $pdf .pdf)_tmp.pdf" 22 | 23 | 24 | pdftk "$pdf" dump_data output "$bookmark" 25 | 26 | gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$tmp_pdf" "$pdf" 27 | pdftk "$tmp_pdf" update_info "$bookmark" output "$new_pdf" 28 | 29 | rm "$tmp_pdf" "$bookmark" 30 | 31 | echo Finish ! 32 | -------------------------------------------------------------------------------- /NCU_en/abbreviation.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Glossary} 5 | Use table for symbol list. You can also use package ``nomencl'' (simple) or ``glossaries'' (powerful). see packages document or my tutorial (but it's Chinese). 6 | 7 | \begin{table}[h] 8 | \normalsize 9 | \centering 10 | \begin{tabular}{c@{\quad:\quad}l} 11 | % Symbol & Description \\ 12 | VIM & The best guy's editor \\ 13 | Emacs & The God's editor \\ 14 | CTAN & Comprehensive TeX Archive Network, ctan.org \\ 15 | 16 | \end{tabular} 17 | \caption*{Glossary} % Hide caption by comment/remove it, label will inactive also. 不想顯示請註解/刪除\caption行(\label自動失效) 18 | \label{table:glossary_def} 19 | \end{table} 20 | 21 | \end{document} 22 | -------------------------------------------------------------------------------- /NCU_en/README.md: -------------------------------------------------------------------------------- 1 | # National Central University LaTeX Template of Thesis (English) 2 | There is no English document yet. Please see README.md in NCU_zh. 3 | 4 | ## Usage 5 | See [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) of this project. 6 | 7 | Or start from [brainless](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A) . 8 | 9 | ## Information about thesis 10 | 11 | ### Insert letters 12 | 13 | Already include Chinese, English letters . It's download from NCU in 2018-01-09. 14 | 15 | NCU version has a chapter can produce letters with your thesis information, just need setting in the `config.tex`. 16 | 17 | ### Spine of book 18 | If you need spine of book, please refer NTU_patch. 19 | 20 | ## Other information 21 | ### 其他網友樣板 22 | See [同好連結](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90) 23 | -------------------------------------------------------------------------------- /NCU_en/acknowledgements.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Acknowledgement} 5 | 6 | Thanks NCU, and sppmg\textquoteright{}s \LaTeX\ template\cite{_sppmg/tw_thesis_template_????}. 7 | 8 | \begin{figure}[!hbt] 9 | \captionsetup[subfigure]{labelformat=empty} 10 | \centering 11 | \subcaptionbox 12 | {} 13 | {\includegraphics[width=0.2\linewidth]{logo-NCU.jpg}} 14 | ~ 15 | \subcaptionbox 16 | {} 17 | {\includegraphics[width=0.2\linewidth]{logo-sinica.png}} 18 | ~ 19 | \subcaptionbox 20 | {} 21 | {\includegraphics[width=0.2\linewidth]{logo-GNU.png}} 22 | ~ 23 | \subcaptionbox 24 | {} 25 | {\includegraphics[width=0.2\linewidth]{logo-Linux.png}} 26 | % \vspace{\baselineskip} % 分隔上下列 27 | \end{figure} 28 | 29 | 30 | \end{document} 31 | 32 | 33 | -------------------------------------------------------------------------------- /MWE_zh/book.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt,a4paper]{book} 2 | \usepackage{xeCJK} 3 | \usepackage{fontspec} 4 | 5 | % \setmainfont{DejaVu Sans} 6 | \setCJKmainfont{AR PL UMing TW} 7 | % \setCJKsansfont{AR PL UMing TW} 8 | \XeTeXlinebreaklocale "zh" 9 | \XeTeXlinebreakskip = 0pt plus 1pt 10 | \author{sppmg} 11 | \title{MWE} 12 | 13 | \begin{document} 14 | \frontmatter 15 | \maketitle 16 | % \cleardoublepage 17 | % \phantomsection 18 | % \addcontentsline{toc}{chapter}{目錄} %手動將「目錄」字樣加入目錄 19 | \tableofcontents % 目錄 20 | \listoffigures % 圖目錄 21 | \listoftables % 表目錄 22 | \mainmatter 23 | \chapter{我愛Linux} 24 | 我認為Linux是世界上最強的作業系統...... 25 | \appendix 26 | \chapter{我不是針對你} 27 | 我是說...... 28 | \backmatter 29 | %\printbibliography[title = {參考文獻}, heading = bibnumbered] 30 | \end{document} -------------------------------------------------------------------------------- /NCU_en/macros_document.tex: -------------------------------------------------------------------------------- 1 | % This file is common document region, 2 | % it will loading when LaTeX see ``\begin{document}'' 3 | % It's for some command which need use in document region. 4 | % DON'T put preamble only command in here, eg. \usepackage 5 | % -------------------------------------------------- 6 | 7 | % standalone setting for sub-tex. (not every class option can use \standaloneconfig) 8 | \IfStandalone{\standaloneconfig{float=true}}{} 9 | % ``float=false'' disable floating environment when build sub-tex. 10 | 11 | % Old method for change font size, but no limit for size so keep here. 12 | % \fontsize{size}{baselineskip} 無級調大小、行高, 行高倍數 = baselineskip/size/1.2 ,詳見教學。 13 | % \fontsize{14}{25}\selectfont 14 | 15 | \ifzh{ 16 | \setlength{\parindent}{2em} % 中文段首縮排2中文字寬 17 | }{} % 英文照 LaTeX 預設 18 | % This(\parindent=2em) can not work if put in preamble under TL2012,so put in here. 19 | % Work fine in preamble and document after 2016. -------------------------------------------------------------------------------- /NCU_zh/acknowledgements.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{誌謝} 5 | 6 | 感謝中央大學、中央研究院提供的資源。Donald Ervin Knuth 的 \TeX\ ,Linus與眾多自由軟體好手提供的GNU/Linux。 7 | 8 | 另外特別感謝功德大師sppmg提供的論文樣板與教學\cite{_sppmg/tw_thesis_template_????}, 9 | 讓我將學習\LaTeX\ 的時間拿來充實論文內容。(以上為sppmg自肥 XD) 10 | 11 | \begin{figure}[!hbt] 12 | \captionsetup[subfigure]{labelformat=empty} 13 | \centering 14 | \subcaptionbox 15 | {} 16 | {\includegraphics[width=0.2\linewidth]{logo-NCU.jpg}} 17 | ~ 18 | \subcaptionbox 19 | {} 20 | {\includegraphics[width=0.2\linewidth]{logo-sinica.png}} 21 | ~ 22 | \subcaptionbox 23 | {} 24 | {\includegraphics[width=0.2\linewidth]{logo-GNU.png}} 25 | ~ 26 | \subcaptionbox 27 | {} 28 | {\includegraphics[width=0.2\linewidth]{logo-Linux.png}} 29 | % \vspace{\baselineskip} % 分隔上下列 30 | \end{figure} 31 | 32 | 33 | \end{document} 34 | 35 | 36 | -------------------------------------------------------------------------------- /NCU_zh/macros_document.tex: -------------------------------------------------------------------------------- 1 | % This file is common document region, 2 | % it will loading when LaTeX see ``\begin{document}'' 3 | % It's for some command which need use in document region. 4 | % DON'T put preamble only command in here, eg. \usepackage 5 | % -------------------------------------------------- 6 | 7 | % standalone setting for sub-tex. (not every class option can use \standaloneconfig) 8 | \IfStandalone{\standaloneconfig{float=true}}{} 9 | % ``float=false'' disable floating environment when build sub-tex. 10 | 11 | % Old method for change font size, but no limit for size so keep here. 12 | % \fontsize{size}{baselineskip} 無級調大小、行高, 行高倍數 = baselineskip/size/1.2 ,詳見教學。 13 | % \fontsize{14}{25}\selectfont 14 | 15 | \ifzh{ 16 | \setlength{\parindent}{2em} % 中文段首縮排2中文字寬 17 | }{} % 英文照 LaTeX 預設 18 | % This(\parindent=2em) can not work if put in preamble under TL2012,so put in here. 19 | % Work fine in preamble and document after 2016. 20 | -------------------------------------------------------------------------------- /YM_patch/README.md: -------------------------------------------------------------------------------- 1 | # 國立陽明大學 LaTeX 論文樣板(patch) 2 | 3 | 為了維護方便,陽明版的僅附上與中央版有差異的檔案。請透過內附的 [build](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A#patch-%E7%89%88%E5%BB%BA%E7%AB%8B%E6%96%B9%E6%B3%95) 工具建立完整樣板。 4 | 5 | ## 使用方法 6 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 7 | 8 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 9 | 10 | ## 論文相關說明 11 | 12 | ### 書脊 13 | 我相信學校附近的影印店比我專業的多 :D ,而且我不知道你做了書脊他們會如何使用。 14 | 15 | 如果仍然希望自製書脊者,請參考台大版(NTU_patch)的製作方式。 16 | 17 | 18 | ### 書名頁 19 | 20 | 教務處沒規定要書名頁,但圖書館在添加浮水印的章節寫到: 21 | 22 | > 論文 PDF 檔自書名頁閞始至最後一頁,每一頁都需加入浮水印。 23 | 24 | 我目前決定不加書名頁(封面即書名頁)。若需要分離者,請於 `main.tex` 中的 `\startWatermark` 下一行再貼一次 `\input{titlepage}` 25 | 26 | 27 | ### 浮水印 28 | 29 | 已附上浮水印。此浮水印是由校方檔案以 GIMP 匯出而成,主要是為了修改錯誤的 exif 資訊。 30 | 原始的 exif 會導致 LaTeX 判斷大小錯誤。 31 | 32 | 33 | [碩博士論文格式製作說明事項](http://reg.web.ym.edu.tw/files/13-1192-3062.php) 34 | [圖書館上傳論文步驟](http://lib.web.ym.edu.tw/files/11-1143-43.php) 35 | 36 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [year] [fullname] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /NTHU_patch/README.md: -------------------------------------------------------------------------------- 1 | # 國立清華大學 LaTeX 論文樣板(patch) 2 | 為了維護方便,清大版的僅附上與中央版有差異的檔案。請透過內附的 build 工具建立完整樣板。 3 | 4 | ## 使用方法 5 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 6 | 7 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 8 | 9 | ## 論文相關說明 10 | 11 | 圖書館比教務處多了一些規定,請參考:[圖書館說明](http://www.lib.nthu.edu.tw/ETD/doc3.htm) 12 | 13 | 封面樣式參考[註冊組](http://registra.web.nthu.edu.tw/files/13-1086-5155.php) 14 | 15 | **特別感謝 tommyannypeter 提供的[修正資訊](https://github.com/sppmg/TW_Thesis_Template/issues/5)!** 16 | 17 | ### 匯出摘要 18 | 19 | 直接單獨編譯 `abstract_*.tex` 即可。(注意編輯器可能會自動改編譯主文件) 20 | 21 | 如包含浮水印,在摘要頁頁面加上 `\startWatermark` 即可。 22 | 23 | ### 加密 24 | 清大規定加密,本人不贊成,所以不提供。 25 | 26 | **請支持學術自由,和校方說:我是文章作者,擁有著作權,我不想加密!** 27 | 28 | 詳細資訊請參考教學或專案wiki。 29 | 30 | ### 浮水印 31 | 32 | 樣板已附上。圖書館說明指出:使用 100% 不透明度,但其實我比較建議用 50% ,比較不容易和文字混淆。想改的人可以在 `config.tex` 修改(`\def\wmOpacity{0.5}`) 。 33 | 34 | ### 書脊 35 | 我相信學校附近的影印店比我專業的多 :D 36 | 37 | 如果仍然希望自製書脊者,請參考台大版(NTU_patch)的製作方式。 38 | 39 | ## 其餘資訊 40 | ### 其他網友樣板 41 | 見[同好連結](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90) 42 | -------------------------------------------------------------------------------- /NCU_en/zh_hidden_warning.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | \ifx\undefined\thispage\def\thispage{}\fi 4 | \fontsize{16}{25}\selectfont 5 | % --------define title page layout for thesis 6 | \sffamily % use sans font 7 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 8 | \begin{titlepage} 9 | \vspace*{30mm} 10 | \begin{center} 11 | {\Huge\textbf{\thispage\ hidden now !!}\par} 12 | \end{center} 13 | \vspace*{30mm} 14 | {\LARGE 15 | It avoid you get error because your computer no Chinese font, 16 | Please enable Chinese by set \mbox{``disableChinese''} to false in \mbox{``config.tex''} and set \mbox{``titlepageLang''} value (to zh or en) to display this page. 17 | if you don't have Chinese font, you can try \mbox{``cwTeX''} font. 18 | (\url{https://github.com/l10n-tw/cwtex-q-fonts})\par 19 | (Even if your thesis is English, you still need a Chinese title and abstract.)\par} 20 | \vfill 21 | \end{titlepage} 22 | \restoregeometry 23 | \rmfamily % use main font 24 | %--------end of title page for thesis 25 | \cleardoublepage 26 | \end{document} 27 | -------------------------------------------------------------------------------- /NCU_en/bibliography.tex: -------------------------------------------------------------------------------- 1 | % This file has 3 types bibliography management, 2 | % \bibManType in config.tex choose it. 3 | % 0. Embedded: write \bibitem in {thebibliography} environment. 4 | % 1. BibTeX: Change bib files in \bibliography{} 5 | % 2. biber / BibLaTeX: Add bibliography by \addbibresource{bibfile.bib} in macros_preamble.tex 6 | 7 | \documentclass[class=NCU_thesis, crop=false]{standalone} 8 | 9 | \begin{document} 10 | 11 | \ifcase \bibManType 12 | % 0 == Embedded %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 | {\bibFontStyle\setstretch{\bibLineStretch} 14 | \begin{thebibliography}{99} 15 | 16 | \bibitem{cite_key_1} 17 | bibliography item detail. 18 | 19 | \bibitem{_sppmg/tw_thesis_template_????} 20 | TW\_Thesis\_Template, 21 | sppmg, 22 | \url{https://github.com/sppmg/TW_Thesis_Template}, 23 | Embedded bibliography demo. 24 | 25 | \end{thebibliography} 26 | } 27 | 28 | \or 29 | % 1 == BibTeX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 30 | \bibliographystyle{\bibStyle} 31 | {\bibFontStyle\setstretch{\bibLineStretch} 32 | \bibliography{demo} % {sample_1,sample_2,...,sample_n} 33 | % Note the lack of whitespace between the commas and the next bib file. 34 | } 35 | \or 36 | 37 | % 2 == biber / BibLaTeX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 38 | \printbibliography[heading = bibnumbered] 39 | \fi 40 | 41 | 42 | 43 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/bibliography.tex: -------------------------------------------------------------------------------- 1 | % This file has 3 types bibliography management, 2 | % \bibManType in config.tex choose it. 3 | % 0. Embedded: write \bibitem in {thebibliography} environment. 4 | % 1. BibTeX: Change bib files in \bibliography{} 5 | % 2. biber / BibLaTeX: Add bibliography by \addbibresource{bibfile.bib} in macros_preamble.tex 6 | 7 | \documentclass[class=NCU_thesis, crop=false]{standalone} 8 | 9 | \begin{document} 10 | 11 | \ifcase \bibManType 12 | % 0 == Embedded %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 | {\bibFontStyle\setstretch{\bibLineStretch} 14 | \begin{thebibliography}{99} 15 | 16 | \bibitem{cite_key_1} 17 | bibliography item detail. 18 | 19 | \bibitem{_sppmg/tw_thesis_template_????} 20 | TW\_Thesis\_Template, 21 | sppmg, 22 | \url{https://github.com/sppmg/TW_Thesis_Template}, 23 | Embedded bibliography demo. 24 | 25 | \end{thebibliography} 26 | } 27 | 28 | \or 29 | % 1 == BibTeX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 30 | \bibliographystyle{\bibStyle} 31 | {\bibFontStyle\setstretch{\bibLineStretch} 32 | \bibliography{demo} % {sample_1,sample_2,...,sample_n} 33 | % Note the lack of whitespace between the commas and the next bib file. 34 | } 35 | \or 36 | 37 | % 2 == biber / BibLaTeX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 38 | \printbibliography[title = {參考文獻}, heading = bibnumbered] 39 | \fi 40 | 41 | 42 | 43 | \end{document} -------------------------------------------------------------------------------- /NCTU_patch/README.md: -------------------------------------------------------------------------------- 1 | # 國立交通大學 LaTeX 論文樣板(patch) 2 | 為了維護方便,交大版的僅附上與中央版有差異的檔案。請透過內附的 build 工具建立完整樣板。 3 | 4 | ## 使用方法 5 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 6 | 7 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 8 | 9 | ## 其餘資訊 10 | 11 | ### 文字大小及間距 12 | 交大規定: 13 | 14 | > 行距:中文間隔一行,每頁最少 32 行,英文間隔 1.5 或 2 行(Double space),每頁最少 28 行 15 | 16 | 我實在不懂「中文間隔一行」是指單倍行高還是指兩行間隔一行(雙倍行高)?如果是前者將導致難以分辨各行(自己試了就知道)。而且還規定一頁要有 32 行以上,雙倍行高根本塞不下(除非你打算只給螞蟻看....)。 17 | 18 | **因此我認為為了容易閱讀,不得不違反校方的中文行距規定。** 19 | 20 | 單頁 32 行前提下,我的測試結果如下: 21 | 22 | | 字體大小 | 行距倍數 | 23 | | ------- | -------- | 24 | | 14 pt | 1.3 | 25 | | 12 pt | 1.5 | 26 | 27 | 由於我個人建議中文使用 14pt ,所以中文的預設值為 14pt/1.3x。英文則是用 校方規定的 12pt/1.5x 。 28 | 29 | ### 上傳規定 30 | 31 | [圖書館](http://www.lib.nctu.edu.tw/html/id-93/)比教務處多以下規定: 32 | 33 | 1. PDF檔請記得要加入交大 logo 浮水印 (已放入樣板) 34 | 2. 授權書和審定書不須加入PDF檔 35 | 36 | 文件插入部份若欲放入 pdf 檔以便列印裝訂, 37 | 請自行解註 `main.tex` letters 區塊,或自行用 `\includepdf` 插入。 38 | 39 | 浮水印不透明度依圖書館圖片 100% ,不過我是建議 50% 比較好啦!不要為難你的讀者。 40 | 41 | 浮水印依圖書館圖片始於第`1`頁,我暫時包含封面(`cover`)也放,有不合處請自行更改`\startWatermark`位置。(如有確切規範請於 Issues 告知。) 42 | 43 | 文書部份;教務處規定之「論文編印項目次序」有授權書等文件,但圖書館又說 pdf 不用,可能要求紙本和 pdf 不同。因此插入文件的部份我直接註解掉,要用的人自己解註後使用。 44 | 45 | ### 書脊 46 | 交大沒有規定要附上書脊,所以我這裡也不放。我相信學校附近的影印店比我專業的多 :D ,而且我不知道你做了書脊他們會如何使用。 47 | 48 | 如果仍然希望自製書脊者,請參考台大版(NTU_patch)的製作方式。 49 | 50 | 51 | ### 加密 52 | 明訂:**不建議加密** 53 | 54 | 很好!! 55 | 56 | 57 | ### 其他網友樣板 58 | 見[同好連結](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90) 59 | 60 | -------------------------------------------------------------------------------- /NTHU_patch/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # windows use busybox.exe sh build.sh 3 | 4 | # University abbreviation from directory name NCU_... 5 | university=$(basename "$(pwd)" | cut -f 1 -d "_") 6 | 7 | echo "I will build a integrated template for ${university}, which language you want?" 8 | read -p "zh / en > " lang 9 | 10 | if [ ! $lang = "zh" ] && [ ! $lang = "en" ] ; then 11 | echo ERROR: Your input is \"$lang\", but only \"zh\" or \"en\" is valid ! 12 | exit 1 13 | fi 14 | if [ ! -d "../NCU_$lang" ] ; then 15 | ERROR: Can\'t find directory \"NCU$lang\" 16 | exit 1 17 | fi 18 | echo "OK, building $lang version" 19 | 20 | cp -r ../NCU_$lang ../${university}_$lang 21 | cp -r ./* ../${university}_$lang 22 | cd ../${university}_$lang 23 | 24 | # change class name in every file 25 | sed -i '/^\\documentclass/ s/NCU_thesis/'${university}'_thesis/g' $(find -name "*.tex" -type f ) 26 | 27 | if [ "$lang" = "en" ] ; then 28 | # remove NCU only files. 29 | rm titlepage_en.tex titlepage_zh.tex zh_hidden_warning.tex 30 | 31 | sed -i '/lang/ s/zh/en/' config.tex 32 | # Disable Chinese for en avoid no Chinese font 33 | sed -i '/disableChinese/ s/false/true/' config.tex 34 | echo "Default disable Chinese for English template avoid no Chinese font, change setting in config.tex if you need Chinese." 35 | sed -i '/baseFontSize/ s/14/12/' config.tex 36 | sed -i '/baseLineStretch/ s/1.3/2/' config.tex 37 | sed -i '/\\printbibliography/ s/title = .*,//' bibliography.tex 38 | fi 39 | 40 | rm build.sh build.bat 41 | echo "Finish ! Enjoy ${university}_$lang LaTeX template by sppmg :D" 42 | -------------------------------------------------------------------------------- /NTU_patch/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # windows use busybox.exe sh build.sh 3 | 4 | # University abbreviation from directory name NCU_... 5 | university=$(basename "$(pwd)" | cut -f 1 -d "_") 6 | 7 | echo "I will build a integrated template for ${university}, which language you want?" 8 | read -p "zh / en > " lang 9 | 10 | if [ ! $lang = "zh" ] && [ ! $lang = "en" ] ; then 11 | echo ERROR: Your input is \"$lang\", but only \"zh\" or \"en\" is valid ! 12 | exit 1 13 | fi 14 | if [ ! -d "../NCU_$lang" ] ; then 15 | ERROR: Can\'t find directory \"NCU$lang\" 16 | exit 1 17 | fi 18 | echo "OK, building $lang version" 19 | 20 | cp -r ../NCU_$lang ../${university}_$lang 21 | cp -r ./* ../${university}_$lang 22 | cd ../${university}_$lang 23 | 24 | # change class name in every file 25 | sed -i '/^\\documentclass/ s/NCU_thesis/'${university}'_thesis/g' $(find -name "*.tex" -type f ) 26 | 27 | if [ "$lang" = "en" ] ; then 28 | # remove NCU only files. 29 | rm titlepage_en.tex titlepage_zh.tex zh_hidden_warning.tex 30 | 31 | sed -i '/lang/ s/zh/en/' config.tex 32 | # Disable Chinese for en avoid no Chinese font 33 | sed -i '/disableChinese/ s/false/true/' config.tex 34 | echo "Default disable Chinese for English template avoid no Chinese font, change setting in config.tex if you need Chinese." 35 | #sed -i '/baseFontSize/ s/14/12/' config.tex 36 | sed -i '/baseLineStretch/ s/1.5/2/' config.tex 37 | sed -i '/\\printbibliography/ s/title = .*,//' bibliography.tex 38 | fi 39 | 40 | rm build.sh build.bat 41 | echo "Finish ! Enjoy ${university}_$lang LaTeX template by sppmg :D" 42 | -------------------------------------------------------------------------------- /YM_patch/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # windows use busybox.exe sh build.sh 3 | 4 | # University abbreviation from directory name NCU_... 5 | university=$(basename "$(pwd)" | cut -f 1 -d "_") 6 | 7 | echo "I will build a integrated template for ${university}, which language you want?" 8 | read -p "zh / en > " lang 9 | 10 | if [ ! $lang = "zh" ] && [ ! $lang = "en" ] ; then 11 | echo ERROR: Your input is \"$lang\", but only \"zh\" or \"en\" is valid ! 12 | exit 1 13 | fi 14 | if [ ! -d "../NCU_$lang" ] ; then 15 | ERROR: Can\'t find directory \"NCU$lang\" 16 | exit 1 17 | fi 18 | echo "OK, building $lang version" 19 | 20 | cp -r ../NCU_$lang ../${university}_$lang 21 | cp -r ./* ../${university}_$lang 22 | cd ../${university}_$lang 23 | 24 | # change class name in every file 25 | sed -i '/^\\documentclass/ s/NCU_thesis/'${university}'_thesis/g' $(find -name "*.tex" -type f ) 26 | 27 | if [ "$lang" = "en" ] ; then 28 | # remove NCU only files. 29 | rm titlepage_en.tex titlepage_zh.tex zh_hidden_warning.tex 30 | 31 | sed -i '/lang/ s/zh/en/' config.tex 32 | # Disable Chinese for en avoid no Chinese font 33 | sed -i '/disableChinese/ s/false/true/' config.tex 34 | echo "Default disable Chinese for English template avoid no Chinese font, change setting in config.tex if you need Chinese." 35 | #sed -i '/baseFontSize/ s/14/12/' config.tex 36 | #sed -i '/baseLineStretch/ s/1.3/2/' config.tex 37 | sed -i '/\\printbibliography/ s/title = .*,//' bibliography.tex 38 | fi 39 | 40 | rm build.sh build.bat 41 | echo "Finish ! Enjoy ${university}_$lang LaTeX template by sppmg :D" 42 | -------------------------------------------------------------------------------- /NCNU_patch/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # windows use busybox.exe sh build.sh 3 | 4 | # University abbreviation from directory name NCU_... 5 | university=$(basename "$(pwd)" | cut -f 1 -d "_") 6 | 7 | echo "I will build a integrated template for ${university}, which language you want?" 8 | read -p "zh / en > " lang 9 | 10 | if [ ! $lang = "zh" ] && [ ! $lang = "en" ] ; then 11 | echo ERROR: Your input is \"$lang\", but only \"zh\" or \"en\" is valid ! 12 | exit 1 13 | fi 14 | if [ ! -d "../NCU_$lang" ] ; then 15 | ERROR: Can\'t find directory \"NCU$lang\" 16 | exit 1 17 | fi 18 | echo "OK, building $lang version" 19 | 20 | cp -r ../NCU_$lang ../${university}_$lang 21 | cp -r ./* ../${university}_$lang 22 | cd ../${university}_$lang 23 | 24 | # change class name in every file 25 | sed -i '/^\\documentclass/ s/NCU_thesis/'${university}'_thesis/g' $(find -name "*.tex" -type f ) 26 | 27 | if [ "$lang" = "en" ] ; then 28 | # remove NCU only files. 29 | rm titlepage_en.tex titlepage_zh.tex zh_hidden_warning.tex 30 | 31 | sed -i '/lang/ s/zh/en/' config.tex 32 | # Disable Chinese for en avoid no Chinese font 33 | sed -i '/disableChinese/ s/false/true/' config.tex 34 | echo "Default disable Chinese for English template avoid no Chinese font, change setting in config.tex if you need Chinese." 35 | #sed -i '/baseFontSize/ s/14/12/' config.tex 36 | #sed -i '/baseLineStretch/ s/1.3/1.5/' config.tex 37 | sed -i '/\\printbibliography/ s/title = .*,//' bibliography.tex 38 | fi 39 | 40 | rm build.sh build.bat 41 | echo "Finish ! Enjoy ${university}_$lang LaTeX template by sppmg :D" 42 | -------------------------------------------------------------------------------- /NCTU_patch/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # windows use busybox.exe sh build.sh 3 | 4 | # University abbreviation from directory name NCU_... 5 | university=$(basename "$(pwd)" | cut -f 1 -d "_") 6 | 7 | echo "I will build a integrated template for ${university}, which language you want?" 8 | read -p "zh / en > " lang 9 | 10 | if [ ! $lang = "zh" ] && [ ! $lang = "en" ] ; then 11 | echo ERROR: Your input is \"$lang\", but only \"zh\" or \"en\" is valid ! 12 | exit 1 13 | fi 14 | if [ ! -d "../NCU_$lang" ] ; then 15 | ERROR: Can\'t find directory \"NCU$lang\" 16 | exit 1 17 | fi 18 | echo "OK, building $lang version" 19 | 20 | cp -r ../NCU_$lang ../${university}_$lang 21 | cp -r ./* ../${university}_$lang 22 | cd ../${university}_$lang 23 | 24 | # change class name in every file 25 | sed -i '/^\\documentclass/ s/NCU_thesis/'${university}'_thesis/g' $(find -name "*.tex" -type f ) 26 | 27 | if [ "$lang" = "en" ] ; then 28 | # remove NCU only files. 29 | rm titlepage_en.tex titlepage_zh.tex zh_hidden_warning.tex 30 | 31 | sed -i '/lang/ s/zh/en/' config.tex 32 | # Disable Chinese for en avoid no Chinese font 33 | sed -i '/disableChinese/ s/false/true/' config.tex 34 | echo "Default disable Chinese for English template avoid no Chinese font, change setting in config.tex if you need Chinese." 35 | sed -i '/baseFontSize/ s/14/12/' config.tex 36 | sed -i '/baseLineStretch/ s/1.3/1.5/' config.tex 37 | sed -i '/\\printbibliography/ s/title = .*,//' bibliography.tex 38 | fi 39 | 40 | rm build.sh build.bat 41 | echo "Finish ! Enjoy ${university}_$lang LaTeX template by sppmg :D" 42 | -------------------------------------------------------------------------------- /NTU_patch/README.md: -------------------------------------------------------------------------------- 1 | # 國立臺灣大學 LaTeX 論文樣板(patch) 2 | 為了維護方便,臺大版的僅附上與中央版有差異的檔案。請透過內附的 build 工具建立完整樣板。 3 | 4 | **使用本樣板之論文已於 2017-02-10 審核通過,請安心使用。** 5 | 6 | ## 使用方法 7 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 8 | 9 | 或是你想從[無腦手冊](https://github.com/sppmg/TW_Thesis_Template/wiki/%E7%84%A1%E8%85%A6%E6%89%8B%E5%86%8A)開始。 10 | 11 | ## 論文相關說明 12 | 13 | ### 系所名稱 14 | (2017-02-09更新) 圖書館要求加上中英文學院名。目前暫不增加新變數,請直接設定於 config.tex 的 \def\deptZh 與 \def\deptEn (範例已更新) 15 | 16 | ### 書脊與封面 17 | (2017-02-10更新) 圖書館表示電子檔不可附書脊,送印才要(實際上影印店應該也不用你做。實際詢問某影印店,若要自製書脊請製作分離之PDF檔,即 bookspine.tex ),所以 main.tex 中註解掉 `\addBookSpineThisPage` 。有需求者請自行解註。 18 | 19 | 封面不含浮水印與DOI,舊版(v1.7以前)使用者請參考 main.tex 的更動。 20 | 21 | (舊資訊:)由於臺大規定電子檔須附書脊,因此我除了論文文件外,另外做了一個獨立的文件 bookspine 。要用的請另外編譯 bookspine.tex(是否編譯與論文本體電子檔的書脊無關)。 22 | 23 | ### 加密 24 | 臺大規定加密,本人不贊成,所以不提供。 25 | 26 | **請支持學術自由,和校方說:我是文章作者,擁有著作權,我不想加密!** 27 | 28 | 詳細資訊請參考教學或專案wiki。 29 | 30 | ## 其餘資訊 31 | ### 其他網友樣板 32 | 33 | [tzhuan](https://github.com/tzhuan/ntu-thesis) 34 | 35 | 使用 XeLaTeX + BibTeX ,提供 Makefile,可用 Gnu make 方便的編譯處理。 36 | Makefile 內使用 pdftk 進行加密,須要加密者請參考此檔(其[wiki](https://github.com/tzhuan/ntu-thesis/wiki) 亦包含參數說明。 )。 37 | 38 | 其餘見[同好連結](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90) 39 | 40 | ### 校方論文服務(含格式範本、浮水印、上傳手冊等) 41 | http://etds.lib.ntu.edu.tw/etdsystem/submit/submitLogin 42 | 43 | ### 格式規範含範本 44 | 臺大社會學系網站,但和校方為同一份文件 45 | (http://sociology.ntu.edu.tw/images_upload/6-3-2_file1.pdf) 46 | 47 | ### 系所名稱的寫法 48 | (http://writingsos.blogspot.tw/2007/06/blog-post.html) 49 | > 和以往最大的差別應該在系所名稱的寫法,根據校方負責人的email說明,如果是系所合一的系所,英文名稱應該要用Department of,只有獨立研究所才用Graduate Institute of ;所以我們的英文名稱應該用Department of Library and Information Science。 50 | -------------------------------------------------------------------------------- /NCU_zh/chapter_template_demo.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \usepackage{showexpl} 3 | 4 | \begin{document} 5 | 6 | \chapter{章名(章節示例)} 7 | 章內容內容內容內容內容 \\ 8 | 內容內容內容 9 | 10 | \section{節名} 11 | 節內容內容內容內容內容 \\ 12 | 內容內容內容 13 | 14 | \subsection{小節名} 15 | 內容內容內容 \\ 16 | 內容內容內容 17 | 18 | \subsubsection{小小節} 19 | 內容內容內容 \\ 20 | 內容內容內容 21 | 22 | \paragraph{段} 23 | 內容內容內容 \\ 24 | 內容內容內容 25 | 26 | \subparagraph{小段} 27 | 內容內容內容 \\ 28 | 內容內容內容 29 | 30 | 31 | \chapter{文字} 32 | 第一行。 33 | 仍是第一行。 \\ 34 | 第二行。 35 | 36 | 37 | \chapter{圖片} 38 | \section{插入單一圖片} 39 | \fig[0.15][fig:label_test][!hbt]{logo-Linux.png}[caption][short caption] 40 | 41 | \section{插入多張圖片} 42 | \begin{figure}[!hbt] 43 | %\captionsetup[subfigure]{labelformat=empty} % 完全隱藏圖號 44 | \centering 45 | \subcaptionbox 46 | {caption\_1 47 | \label{fig:subfig_fig1}} 48 | {\includegraphics[width=0.3\linewidth]{fig1.png}} 49 | ~ 50 | \subcaptionbox 51 | {caption\_2 52 | \label{fig:subfig_fig2}} 53 | {\includegraphics[width=0.3\linewidth]{fig2.eps}} 54 | \vspace{\baselineskip} % 分隔上下列 55 | \subcaptionbox 56 | {caption\_3 57 | \label{fig:subfig_fig3}} 58 | {\includegraphics[width=0.6\linewidth]{fig3.png}} 59 | \caption{caption, 使用 \subref{fig:subfig_fig2}取得子圖(Debian)編號 } 60 | \label{fig:label} 61 | \end{figure} 62 | 63 | 64 | \chapter{表格} 65 | \section{一般表格} 66 | \begin{table}[h] 67 | \centering 68 | \caption{Solution} 69 | \begin{tabular}{| l | l |} 70 | \hline 71 | Component & Concentration(mM) \\ \hline 72 | \ce{NaCl} & 118.0 \\ \hline 73 | \end{tabular} 74 | \end{table} 75 | 76 | \section{自動折行表格} 77 | \begin{table}[h] 78 | \centering 79 | \begin{tabularx}{\textwidth}{| l | X |} 80 | \hline 81 | short & short short \\ \hline 82 | long & long long long long long long long long long long long long long long long long long long long long\\ \hline 83 | \end{tabularx} 84 | \end{table} 85 | 86 | \end{document} -------------------------------------------------------------------------------- /tools/toc2txt.tex: -------------------------------------------------------------------------------- 1 | % This tex help you produce plain TOC text file. It's modify gernot's post 2 | % http://tex.stackexchange.com/a/346679/111676 3 | % It will read TOC file (default is main.toc) and produce main.txt. 4 | % You must use ``-interaction=nonstopmode'' for latex option, so it will give you TOC even if there are some ``Undefined control sequence''. 5 | 6 | \newcommand\toc{main} % <<< Replace myfile with the name of your tex/toc file (without extension) 7 | \documentclass{article} 8 | \newwrite\txtfile 9 | \immediate\openout\txtfile=\toc_toc.txt 10 | \renewcommand\numberline[1]{#1 } 11 | \def\levelChapter{chapter} 12 | \def\levelSection{section} 13 | \def\levelSubsection{subsection} 14 | \def\levelSubsubsection{subsubsectionsection} 15 | \def\levelParagraph{paragraph} 16 | \def\levelSubparagraph{subparagraph} 17 | 18 | \def\indention{\space\space} % set indention. 19 | 20 | \def\pageformat#1{(p.#1)} % set your page number styly, #1 will replace to page number. 21 | 22 | \renewcommand\contentsline[3]% 23 | {\def\tmp{#1}% 24 | \ifx\tmp\levelChapter 25 | \immediate\write\txtfile{#2 \pageformat{#3}}% 26 | \else 27 | \ifx\tmp\levelSection 28 | \immediate\write\txtfile{\indention #2 \pageformat{#3}}% 29 | \else 30 | \ifx\tmp\levelSubsection 31 | \immediate\write\txtfile{\indention\indention #2 \pageformat{#3}}% 32 | \else 33 | \ifx\tmp\levelSubsubsection 34 | \immediate\write\txtfile{\indention\indention\indention #2 \pageformat{#3}}% 35 | \else 36 | \ifx\tmp\levelParagraph 37 | \immediate\write\txtfile{\indention\indention\indention\indention #2 \pageformat{#3}}% 38 | \else 39 | \ifx\tmp\levelSubparagraph 40 | \immediate\write\txtfile{\indention\indention\indention\indention\indention #2 \pageformat{#3}}% 41 | \fi 42 | \fi 43 | \fi 44 | \fi 45 | \fi 46 | \fi 47 | } 48 | \begin{document} 49 | \centering \huge 50 | You plain text TOC in the ``\toc.txt'' . 51 | 52 | Please ignore this PDF. 53 | 54 | \tiny 55 | \input{\toc.toc} 56 | 57 | \end{document} -------------------------------------------------------------------------------- /NCU_en/chapter_template_demo.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | \begin{document} 3 | 4 | \chapter{Chapter name(demo)} 5 | Content of chapter \\ 6 | Content Content Content. 7 | 8 | \section{Section name} 9 | Content of section \\ 10 | Content Content Content 11 | \subsection{Subsection name} 12 | Content of subsection \\ 13 | Content Content Content 14 | 15 | \subsubsection{Subsubsection name} 16 | Content of subsubsection \\ 17 | Content Content Content 18 | 19 | \paragraph{Paragraph name} 20 | Content of paragraph \\ 21 | Content Content Content 22 | 23 | \subparagraph{Subparagraph name} 24 | Content of subparagraph \\ 25 | Content Content Content 26 | 27 | 28 | \chapter{Test demo} 29 | First line. 30 | (next line in \LaTeX\ )still first line. \\ 31 | Second line. 32 | 33 | 34 | \chapter{figure} 35 | \section{Insert single figure(by sppmg's tool)} 36 | \fig[0.15][fig:label_test][!hbt]{logo-Linux.png}[caption][short caption] 37 | 38 | \section{Insert figures} 39 | \begin{figure}[!hbt] 40 | %\captionsetup[subfigure]{labelformat=empty} % hide figure's number. 41 | \centering 42 | \subcaptionbox 43 | {caption\_1 44 | \label{fig:subfig_fig1}} 45 | {\includegraphics[width=0.3\linewidth]{fig1.png}} 46 | ~ 47 | \subcaptionbox 48 | {caption\_2 49 | \label{fig:subfig_fig2}} 50 | {\includegraphics[width=0.3\linewidth]{fig2.eps}} 51 | \vspace{\baselineskip} % 分隔上下列 52 | \subcaptionbox 53 | {caption\_3 54 | \label{fig:subfig_fig3}} 55 | {\includegraphics[width=0.6\linewidth]{fig3.png}} 56 | \caption{caption, use ``\subref{fig:subfig_fig2}'' get ID of subfigure(this ID is Debian) in caption} 57 | \label{fig:label} 58 | \end{figure} 59 | 60 | 61 | \chapter{Table} 62 | \section{Simple table} 63 | \begin{table}[h] 64 | \centering 65 | \caption{Solution} 66 | \begin{tabular}{| l | l |} 67 | \hline 68 | Component & Concentration(mM) \\ \hline 69 | \ce{CaCl2} & 118.0 \\ \hline 70 | \end{tabular} 71 | \end{table} 72 | 73 | \section{Auto break line table} 74 | \begin{table}[h] 75 | \centering 76 | \begin{tabularx}{\textwidth}{| l | X |} 77 | \hline 78 | short & short short \\ \hline 79 | long & long long long long long long long long long long \\ \hline 80 | \end{tabularx} 81 | \end{table} 82 | 83 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/appendix_letters_NCU.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | 3 | \begin{document} 4 | \chapter{自動填單} 5 | 這裡試著幫各位自動填入部份資訊,其餘打勾、日期請手寫。有字體大小不符、位置歪掉等問題的話,請修改 appendix\_letter\_NCU.tex後直接編譯生成文件。 6 | 7 | appendix\_letter\_NCU.tex中,每個句子(文字項目)都是獨立的大小與位置。 大小可由\textbackslash{}fs,調整。 8 | \footnote{\textbackslash{}fs 使用 \textbackslash{}fontsize 做無級調整,並固定單行高度。 } 9 | 位置可由\textbackslash{}placetextbox 調整。語法如下: 10 | \begin{lstlisting}[style=LatexStyle,caption={}] 11 | \placetextbox{x(mm)}{y(mm)} 12 | \end{lstlisting} 13 | 單位使用mm ,(0,0)位於左下角。建議調整時將``colorgrid''加入documentclass選項。(加入子檔的即可) 14 | \begin{lstlisting}[style=LatexStyle,caption={}] 15 | \documentclass[class=NCU_thesis, crop=false, colorgrid]{standalone} 16 | \end{lstlisting} 17 | colorgrid 將顯示格線(一小格是\SI{5}{\milli\metre})。 18 | 19 | \begin{center} 20 | { \noindent\color{red}\bfseries\Large NCU English letters in the NCU\_en} 21 | \end{center} 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | 25 | % define \mprof 26 | \ExplSyntaxOn 27 | % Copy prof. list from config.tex 28 | \clist_gclear_new:N \g_sppmg_profs_cl 29 | \clist_gset:NV \g_sppmg_profs_cl \profs 30 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 31 | \cs_gset_eq:NN \mprof \l_tmpa_tl 32 | \ExplSyntaxOff 33 | 34 | \cleardoublepage 35 | \pagestyle{empty} 36 | \sffamily 37 | % ------------------------------ 38 | 39 | % % 碩博士論文電子檔授權書 40 | \IfFileExists{\letterAuthEl}{ 41 | \cleardoublepage\thispagestyle{empty} 42 | \includepdf[pagecommand={ \placetextbox{100}{120}{\fs{17}\title}% 43 | \placetextbox{95}{109}{\fs{17}\mprof}% 44 | \placetextbox{69}{98}{\fs{17}\deptshort} }]% 45 | {\letterAuthEl}}{} 46 | 47 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 48 | \IfFileExists{\letterPubReq}{ 49 | \cleardoublepage\thispagestyle{empty} 50 | \includepdf[pagecommand={ \placetextbox{128}{270}{\fs{17}\author}% 51 | \placetextbox{70}{258}{\fs{17}\deptshort}% 52 | \placetextbox{100}{233}{\fs{17}\title}% 53 | \placetextbox{90}{219.3}{\fs{17}\mprof} }]% 54 | {\letterPubReq}}{} 55 | 56 | % 指導教授推薦書 57 | \IfFileExists{\letterRecom}{ 58 | \cleardoublepage\thispagestyle{empty} 59 | \includepdf[pagecommand={ \placetextbox{50}{159}{\fs{22}\deptshort}% 60 | \placetextbox{118}{159}{\fs{22}\author}% 61 | \placetextbox{105}{144}{\fs{22}\title}}% 62 | ]{\letterRecom}}{} 63 | 64 | % 口試委員審定書 65 | \IfFileExists{\letterVerif}{ 66 | \cleardoublepage\thispagestyle{empty} 67 | \includepdf[pagecommand={ \placetextbox{63}{200.5}{\fs{22}\deptshort}% 68 | \placetextbox{145}{200.5}{\fs{22}\author}% 69 | \placetextbox{100}{170}{\fs{22}\title}}% 70 | ]{\letterVerif}}{} 71 | 72 | % ------------------------------ 73 | \pagestyle{fancy} 74 | \end{document} -------------------------------------------------------------------------------- /YM_patch/YM_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a patch to base class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{YM_thesis}[2018/05/27 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10 | % LaTeX tools (before base class) 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \RequirePackage{ifthen} 14 | \RequirePackage{xparse} 15 | 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 | % Load config.tex 18 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19 | \ifx\undefined\configured 20 | % --------- Define option for config.tex ---------- 21 | \provideboolean{publish} % publish ? Set true before publish. 發怖前設true 22 | \provideboolean{disableChinese} % Disable chinese, for English user. 23 | \provideboolean{printcopyright} % print copyright text on titlepage or cover. 24 | \provideboolean{pdfLinkBoxDisplay} % Draw box on link in the pdf viewer. 25 | \provideboolean{bibStyleNameYear} % bibliography use name,year to sort and cite. 26 | \provideboolean{reallyBlankPage} % Really blank pages between chapters 27 | \provideboolean{tocEntryToToc} % Add TOC entry to TOC 28 | \provideboolean{lofEntryToToc} % Add LOF entry to TOC 29 | \provideboolean{lotEntryToToc} % Add LOT entry to TOC 30 | 31 | % --------- Load config.tex ---------- 32 | \IfFileExists{./config.tex}{\input{./config.tex}\gdef\configured{}}{} % search only in the current directory use ./file 33 | 34 | % Easy check Chinese sitting. It will not disable Chinese font. 35 | % Usage: \ifzh{zh}{non-zh} or \ifzh{zh} 36 | \ProvideDocumentCommand{\ifzh}{+m +G{}}{ 37 | \ifthenelse{\NOT \boolean{disableChinese} \AND \equal{\lang}{zh}}{#1}{#2} 38 | } 39 | \fi 40 | 41 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 42 | % Presetting for NTU 43 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 44 | 45 | \ifzh{ % TOC 章級標號形式設定 46 | \gdef\thecontentslabel@chapter{第\zhnumber{\thecontentslabel}章} 47 | \gdef\thecontentslabel@chapter@app{\appendixname\thecontentslabel} 48 | }{ 49 | \gdef\thecontentslabel@chapter{\thecontentslabel} 50 | \gdef\thecontentslabel@chapter@app{\thecontentslabel} 51 | } 52 | 53 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 | % Load base class 55 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 56 | \LoadClass{thesis_base} 57 | %%%%% Load additional packages and commands. 58 | 59 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 60 | % Change setting for NTU 61 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 62 | 63 | % ---------------------- Chapter title style --------------------------- 64 | \ifzh{ 65 | \patchcmd{\@makechapterhead} 66 | {\zhnumber{\thechapter}、\makebox[0.5em]{}} 67 | {第\zhnumber{\thechapter}章\makebox[0.5em]{}}{}{} 68 | } 69 | % ---------------------- Page header --------------------------- 70 | \ifzh{ 71 | % \mainmatter 72 | \patchcmd{\chaptermark} 73 | {\zhnumber{\thechapter}、} 74 | {第\zhnumber{\thechapter}章}{}{} 75 | % \appendix 76 | \patchcmd{\chaptermark} 77 | {\thechapter、} 78 | {附錄\thechapter\enspace}{}{} 79 | } 80 | 81 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NCU_en/appendix_letters_NCU.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false]{standalone} 2 | 3 | \begin{document} 4 | \chapter{Letters bot} 5 | 6 | Here try to insert some information automatically. 7 | If you need change font size or position, modify appendix\_letter\_NCU.tex and compile this single tex file. 8 | 9 | In appendix\_letter\_NCU.tex, you will see \textbackslash{}placetextbox for every string. 10 | \begin{lstlisting}[style=LatexStyle,caption={}] 11 | \placetextbox{x(mm)}{y(mm)} 12 | \end{lstlisting} 13 | 14 | The unit is mm , origin at bottom left. I recommend add ``colorgrid'' option to ``\textbackslash{}documentclass'' for positioning. e.g. In this tex file (appendix\_letter\_NCU.tex): 15 | 16 | \begin{lstlisting}[style=LatexStyle,caption={}] 17 | \documentclass[class=NCU_thesis, crop=false, colorgrid]{standalone} 18 | \end{lstlisting} 19 | 20 | ``colorgrid'' will display a grid with mm unit. 21 | 22 | \begin{center} 23 | { \noindent\color{red}\bfseries\Large NCU 中文文件位於 NCU\_zh} 24 | \end{center} 25 | 26 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 27 | % define \mprof 28 | \ExplSyntaxOn 29 | % Copy prof. list from config.tex 30 | \clist_gclear_new:N \g_sppmg_profs_cl 31 | \clist_gset:NV \g_sppmg_profs_cl \profs 32 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 33 | \cs_gset_eq:NN \mprof \l_tmpa_tl 34 | \ExplSyntaxOff 35 | 36 | % Define local variable (e.g. cover use \titleZh for \title but letters use \titleEn ) 37 | \def\title{\titleEn} 38 | 39 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 40 | \cleardoublepage 41 | \pagestyle{empty} 42 | \sffamily 43 | % ------------------------------ 44 | 45 | % 碩博士論文電子檔授權書 46 | \IfFileExists{\letterAuthEl}{ 47 | \cleardoublepage\thispagestyle{empty} 48 | \includepdf[pagecommand={ \placetextbox{115}{87}{\fs{14}\title}% 49 | \placetextbox{100}{81}{\fs{14}\mprof}% 50 | \placetextbox{85}{70}{\fs{14}\deptshort} }]% 51 | {\letterAuthEl}}{} 52 | 53 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 54 | \IfFileExists{\letterPubReq}{ 55 | \cleardoublepage\thispagestyle{empty} 56 | \includepdf[pagecommand={ \placetextbox{128}{269}{\fs{14}\author}% 57 | \placetextbox{70}{255}{\fs{14}\deptshort}% 58 | \placetextbox{100}{231}{\fs{14}\title}% 59 | \placetextbox{90}{218.3}{\fs{14}\mprof} }]% 60 | {\letterPubReq}}{} 61 | 62 | % 指導教授推薦書 63 | \IfFileExists{\letterRecom}{ 64 | \cleardoublepage\thispagestyle{empty} 65 | \includepdf[pagecommand={ \placetextbox{75}{204}{\fs{16}\deptshort}% 66 | \placetextbox{90}{218}{\fs{16}\author}% 67 | \placetextbox{105}{192}{\fs{16}\title}}% 68 | ]{\letterRecom}}{} 69 | 70 | % 口試委員審定書 71 | \IfFileExists{\letterVerif}{ 72 | \cleardoublepage\thispagestyle{empty} 73 | \includepdf[pagecommand={ \placetextbox{75}{184}{\fs{16}\deptshort}% 74 | \placetextbox{91}{200}{\fs{16}\author}% 75 | \placetextbox{100}{170}{\fs{16}\title}}% 76 | ]{\letterVerif}}{} 77 | 78 | % ------------------------------ 79 | \pagestyle{fancy} 80 | \end{document} -------------------------------------------------------------------------------- /NCNU_patch/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{NCNU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | \begin{document} 21 | \frontmatter 22 | \input{titlepage} % 封面/書名頁 23 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 24 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 25 | 26 | %%%%%%%%%%%% letters %%%%%%%%%%%% 27 | % Set file name in config.tex 28 | % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 29 | % \IfFileExists{\letterAuthEl}{ 30 | % \cleardoublepage % 由下個右頁開始 31 | % \includepdf{\letterAuthEl}}{} 32 | % % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 33 | % \IfFileExists{\letterPubReq}{ 34 | % \cleardoublepage 35 | % \includepdf{\letterPubReq}}{} 36 | % % 指導教授推薦書 37 | % \IfFileExists{\letterRecom}{ 38 | % \cleardoublepage 39 | % \includepdf{\letterRecom}}{} 40 | % % 口試委員審定書 41 | % \IfFileExists{\letterVerif}{ 42 | % \cleardoublepage 43 | % \includepdf{\letterVerif}}{} 44 | % \cleardoublepage 45 | 46 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 47 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 48 | \input{abstract_zh} % zh 中文摘要 49 | \input{abstract_en} % en 英文摘要 50 | \input{acknowledgements} % 誌謝(可略) 51 | 52 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 53 | % 此樣板可由 config.tex 切換是否自動加入目錄 54 | \tableofcontents % 目錄 55 | \listoffigures % 圖目錄 56 | \listoftables % 表目錄 57 | \input{abbreviation} % 符號說明 58 | \mainmatter 59 | \input{chapter_introduction} % 緒論 60 | \input{chapter_method} % 分析方法 61 | \input{chapter_result} % 實驗結果 62 | \input{chapter_conclusion} % 結論 63 | \input{chapter_template_demo} 64 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 65 | \input{bibliography} 66 | \appendix 67 | \input{appendix_device} 68 | \input{appendix_solution} 69 | \input{appendix_codes} 70 | \end{document} -------------------------------------------------------------------------------- /NCU_zh/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{NCU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | \begin{document} 21 | \frontmatter 22 | \input{titlepage} % 封面/書名頁 23 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 24 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 25 | 26 | %%%%%%%%%%%% letters %%%%%%%%%%%% 27 | % Set file name in config.tex 28 | % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 29 | \IfFileExists{\letterAuthEl}{ 30 | \cleardoublepage % 由下個右頁開始 31 | \includepdf{\letterAuthEl}}{} 32 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 33 | \IfFileExists{\letterPubReq}{ 34 | \cleardoublepage 35 | \includepdf{\letterPubReq}}{} 36 | % 指導教授推薦書 37 | \IfFileExists{\letterRecom}{ 38 | \cleardoublepage 39 | \includepdf{\letterRecom}}{} 40 | % 口試委員審定書 41 | \IfFileExists{\letterVerif}{ 42 | \cleardoublepage 43 | \includepdf{\letterVerif}}{} 44 | \cleardoublepage 45 | 46 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 47 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 48 | \input{abstract_zh} % zh 中文摘要 49 | \input{abstract_en} % en 英文摘要 50 | \input{acknowledgements} % 誌謝(可略) 51 | 52 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 53 | % 此樣板可由 config.tex 切換是否自動加入目錄 54 | \tableofcontents % 目錄 55 | \listoffigures % 圖目錄 56 | \listoftables % 表目錄 57 | \input{abbreviation} % 符號說明 58 | \mainmatter 59 | \input{chapter_introduction} % 緒論 60 | \input{chapter_method} % 分析方法 61 | \input{chapter_result} % 實驗結果 62 | \input{chapter_conclusion} % 結論 63 | \input{chapter_template_demo} 64 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 65 | \input{bibliography} 66 | \appendix 67 | \input{appendix_device} 68 | \input{appendix_solution} 69 | \input{appendix_codes} 70 | \input{appendix_letters_NCU} 71 | \end{document} -------------------------------------------------------------------------------- /YM_patch/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{YM_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | \begin{document} 21 | \frontmatter 22 | \input{titlepage} % 封面(不加浮水印) 23 | \input{titlepage} % 書名頁 24 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 25 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 26 | %%%%%%%%%%%% letters %%%%%%%%%%%% 27 | % Set file name in config.tex 28 | % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 29 | % \IfFileExists{\letterAuthEl}{ 30 | % \cleardoublepage % 由下個右頁開始 31 | % \includepdf{\letterAuthEl}}{} 32 | % % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 33 | % \IfFileExists{\letterPubReq}{ 34 | % \cleardoublepage 35 | % \includepdf{\letterPubReq}}{} 36 | % % 指導教授推薦書 37 | % \IfFileExists{\letterRecom}{ 38 | % \cleardoublepage 39 | % \includepdf{\letterRecom}}{} 40 | % % 口試委員審定書 41 | % \IfFileExists{\letterVerif}{ 42 | % \cleardoublepage 43 | % \includepdf{\letterVerif}}{} 44 | % \cleardoublepage 45 | 46 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 47 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 48 | \input{abstract_zh} % zh 中文摘要 49 | \input{abstract_en} % en 英文摘要 50 | \input{acknowledgements} % 誌謝(可略) 51 | 52 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 53 | % 此樣板可由 config.tex 切換是否自動加入目錄 54 | \tableofcontents % 目錄 55 | \listoffigures % 圖目錄 56 | \listoftables % 表目錄 57 | \input{abbreviation} % 符號說明 58 | \mainmatter 59 | \input{chapter_introduction} % 緒論 60 | \input{chapter_method} % 分析方法 61 | \input{chapter_result} % 實驗結果 62 | \input{chapter_conclusion} % 結論 63 | \input{chapter_template_demo} 64 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 65 | \input{bibliography} 66 | \appendix 67 | \input{appendix_device} 68 | \input{appendix_solution} 69 | \input{appendix_codes} 70 | 71 | \end{document} 72 | -------------------------------------------------------------------------------- /NCTU_patch/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{NCTU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | \begin{document} 21 | \frontmatter 22 | \input{cover} % 封面(不加浮水印) 23 | \input{titlepage} % 書名頁 24 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 25 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 26 | 27 | %%%%%%%%%%%% letters %%%%%%%%%%%% 28 | % 交大:授權書和審定書不須加入PDF檔,此處樣板不處理。 29 | % % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 30 | % \IfFileExists{\letterAuthEl}{ 31 | % \cleardoublepage % 由下個右頁開始 32 | % \includepdf{\letterAuthEl}}{} 33 | % % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 34 | % \IfFileExists{\letterPubReq}{ 35 | % \cleardoublepage 36 | % \includepdf{\letterPubReq}}{} 37 | % % 指導教授推薦書 38 | % \IfFileExists{\letterRecom}{ 39 | % \cleardoublepage 40 | % \includepdf{\letterRecom}}{} 41 | % % 口試委員審定書 42 | % \IfFileExists{\letterVerif}{ 43 | % \cleardoublepage 44 | % \includepdf{\letterVerif}}{} 45 | % \cleardoublepage 46 | 47 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 48 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 49 | \input{abstract_zh} % zh 中文摘要 50 | \input{abstract_en} % en 英文摘要 51 | \input{acknowledgements} % 誌謝(可略) 52 | 53 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 54 | % 此樣板可由 config.tex 切換是否自動加入目錄 55 | \tableofcontents % 目錄 56 | \listoffigures % 圖目錄 57 | \listoftables % 表目錄 58 | \input{abbreviation} % 符號說明 59 | \mainmatter 60 | \input{chapter_introduction} % 緒論 61 | \input{chapter_method} % 分析方法 62 | \input{chapter_result} % 實驗結果 63 | \input{chapter_conclusion} % 結論 64 | \input{chapter_template_demo} 65 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 66 | \input{bibliography} 67 | \appendix 68 | \input{appendix_device} 69 | \input{appendix_solution} 70 | \input{appendix_codes} 71 | % \input{appendix_letters_NCU} 72 | \backmatter 73 | \input{memoir} % 自傳 74 | \end{document} 75 | -------------------------------------------------------------------------------- /NCU_en/titlepage_en.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profs_cl 10 | \clist_gset:NV \g_sppmg_profs_cl \profs 11 | 12 | % get total number of prof. . Omitted language will not display. 13 | \int_gzero_new:N \g_sppmg_profTotal_int 14 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 15 | 16 | % NOTE: ``tabularx'' will processes its contents more than once 17 | % for calculate width, so ``gpop'' can't put in tabularx env. 18 | \tl_gclear_new:N \g_sppmg_tableContent_tl 19 | 20 | % Use a inline function for pop list , and save table content 21 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 22 | % Use ``for'' loop to get all prof. 23 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 24 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 25 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 26 | \int_case:nnTF {#1}{ 27 | {1} {Advisor: & \l_tmpa_tl & Ph.D \exp_not:n {\\} } 28 | {2} {Co-advisor: & \l_tmpa_tl & Ph.D \exp_not:n {\\} } 29 | }{}{ 30 | & \l_tmpa_tl & Ph.D \exp_not:n {\\} 31 | } 32 | } 33 | } 34 | 35 | % Copy contents to LaTeX2e macro. 36 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 37 | 38 | \ExplSyntaxOff 39 | 40 | \def\fsUniversity{\fontsize{26}{31}\selectfont } 41 | \def\fsTitle{\fontsize{22}{26.4}\selectfont } 42 | \def\fsNames{\fs{16}[1.5]} 43 | % --------define title page layout for thesis 44 | \titlepageFontFamily % set in config.tex 45 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 46 | \begin{spacing}{1.0} 47 | \begin{titlepage} 48 | \null\vfill 49 | \begin{center} 50 | {\fsUniversity\textbf{National Central University}\par} 51 | \vspace*{30mm} 52 | 53 | {\fsTitle {\dept} \par} 54 | \vspace*{2ex} 55 | 56 | {\fsTitle {\degree}\ Thesis\par} 57 | \vspace*{20mm} 58 | 59 | {\fsTitle {\title} \par} 60 | \vspace*{5mm} 61 | 62 | {\fsTitle {\subtitle} \par} 63 | \vspace*{10mm} 64 | 65 | {\ifx \logo\empty\vspace*{40mm} 66 | \else \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 67 | \fi} 68 | 69 | {\fsNames \renewcommand{\arraystretch}{1} 70 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}r} 71 | Student & \author \\ 72 | \profsTableContent 73 | \end{tabular} 74 | \par} 75 | \vspace*{5ex} 76 | 77 | {\fsTitle {\degreedateEn} \par} 78 | \vspace*{2ex} 79 | 80 | \ifthenelse{\boolean{printcopyright}} 81 | {{{Copyright\copyright\ \author\ \copyyear} \par}} 82 | \end{center} 83 | \null\vfill 84 | \end{titlepage} 85 | \end{spacing} 86 | \restoregeometry 87 | \normalfont % use main font 88 | %--------end of title page for thesis 89 | \cleardoublepage 90 | \end{document} 91 | -------------------------------------------------------------------------------- /NTU_patch/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{NTU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | \begin{document} 21 | \frontmatter 22 | % \addBookSpineThisPage % 圖書館要求電子論文PDF檔封面不加【側邊(含虛線)】。送印紙本請利用 bookspine.tex 。 23 | \input{titlepage} % 封面(不加浮水印) 24 | \startDOI 25 | \input{titlepage} % 書名頁 26 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 27 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 28 | 29 | % %%%%%%%%%%%% letters %%%%%%%%%%%% 30 | % % Set file name in config.tex 31 | % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 32 | \IfFileExists{\letterAuthEl}{ 33 | \cleardoublepage % 由下個右頁開始 34 | \includepdf{\letterAuthEl}}{} 35 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 36 | \IfFileExists{\letterPubReq}{ 37 | \cleardoublepage 38 | \includepdf{\letterPubReq}}{} 39 | % 指導教授推薦書 40 | \IfFileExists{\letterRecom}{ 41 | \cleardoublepage 42 | \includepdf{\letterRecom}}{} 43 | % 口試委員審定書 44 | \IfFileExists{\letterVerif}{ 45 | \cleardoublepage 46 | \includepdf{\letterVerif}}{} 47 | \cleardoublepage 48 | 49 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 50 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 51 | \input{abstract_zh} % zh 中文摘要 52 | \input{abstract_en} % en 英文摘要 53 | \input{acknowledgements} % 誌謝(可略) 54 | 55 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 56 | % 此樣板可由 config.tex 切換是否自動加入目錄 57 | \tableofcontents % 目錄 58 | \listoffigures % 圖目錄 59 | \listoftables % 表目錄 60 | \input{abbreviation} % 符號說明 61 | \mainmatter 62 | \input{chapter_introduction} % 緒論 63 | \input{chapter_method} % 分析方法 64 | \input{chapter_result} % 實驗結果 65 | \input{chapter_conclusion} % 結論 66 | \input{chapter_template_demo} 67 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 68 | \input{bibliography} 69 | \appendix 70 | \input{appendix_device} 71 | \input{appendix_solution} 72 | \input{appendix_codes} 73 | % \input{appendix_letters_NCU} 74 | \end{document} 75 | -------------------------------------------------------------------------------- /NCNU_patch/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCNU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profs_cl 10 | \clist_gset:NV \g_sppmg_profs_cl \profs 11 | 12 | % get total number of prof. . Omitted language will not display. 13 | \int_gzero_new:N \g_sppmg_profTotal_int 14 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 15 | 16 | % NOTE: ``tabularx'' will processes its contents more than once 17 | % for calculate width, so ``gpop'' can't put in tabularx env. 18 | \tl_gclear_new:N \g_sppmg_tableContent_tl 19 | 20 | % Use a inline function for pop list , and save table content 21 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 22 | % Use ``for'' loop to get all prof. 23 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 24 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 25 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 26 | \int_case:nnTF {#1}{ 27 | {1} {指導教授: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 28 | {2} {共同指導: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 29 | }{}{ 30 | & \l_tmpa_tl & 博士 \exp_not:n {\\} 31 | } 32 | } 33 | } 34 | 35 | % Copy contents to LaTeX2e macro. 36 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 37 | 38 | \ExplSyntaxOff 39 | 40 | 41 | \def\fsUniversity{\fontsize{26}{31}\selectfont } 42 | \def\fsTitle{\fontsize{22}{26.4}\selectfont } 43 | \def\fsNames{\fs{16}[1.5] } 44 | % --------define title page layout for thesis 45 | \titlepageFontFamily % set in config.tex 46 | \newgeometry{top=3cm, bottom=6cm, inner=2cm, outer=2cm} % only for titlepage 47 | \begin{spacing}{1.0} 48 | \begin{titlepage} 49 | \null\vfill 50 | \begin{center} 51 | {\fsUniversity\textbf{國立暨南國際大學 \quad \deptZh}\par} 52 | \vspace*{20mm} 53 | 54 | {\fsTitle {\degreeZh}論文\par} 55 | \vspace*{20mm} 56 | 57 | {\fsTitle {\title} \par} 58 | \vspace*{5mm} 59 | 60 | {\fsTitle {\subtitle} \par} 61 | \vspace*{10mm} 62 | 63 | {\ifx \logo\empty\vspace*{40mm} 64 | \else \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 65 | \fi} 66 | \vfill 67 | 68 | {\fsNames \renewcommand{\arraystretch}{1} 69 | % If you want make table by yourself, replace ``\profsTableContent'' 70 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}r} 71 | % 0.4em for ``:'' right side space 72 | \profsTableContent 73 | 74 | 研\enspace 究\enspace 生: & \author & \\ 75 | 76 | \end{tabular} 77 | \par 78 | } 79 | \vspace*{5ex} 80 | 81 | {\fsTitle {\degreedateROC} \par} 82 | \vspace*{2ex} 83 | 84 | \ifthenelse{\boolean{printcopyright}} 85 | {{{版權所有\copyright\ \author\ \copyyear} \par}} 86 | \end{center} 87 | \null\vfill 88 | \end{titlepage} 89 | \end{spacing} 90 | \restoregeometry 91 | \normalfont % use main font 92 | %--------end of title page for thesis 93 | \cleardoublepage 94 | \end{document} 95 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log | 版本紀錄 2 | 不同於首頁(README.md)的遷移資訊僅說明版本間的轉移,這裡提供各發佈版的更動。(此檔於 2016-12-30 補上。舊版僅概略描述,詳細變動請參考 git log ) 3 | 4 | 5 | ## v1.8.2 (2019-04-07) 6 | 主要是把 Issues 清一下。 7 | 8 | * 新增功能 9 | * 加入自動添加浮水印功能。不用再手動插入 `\startWatermark` 。 10 | * 由於以上原因,對於無特定封面又要求添加浮水印的學校。`main.tex` 預設印兩次 `titlepage.tex`,並且浮水印自動在第二頁(實體頁面)之後添加,方便紙本印刷。 11 | 12 | * 修改 13 | * 因應清大要求「不可包含空白頁」(Issue #5),因此於清大版改用 `openany` ,並將 `\cleardoublepage` 改為 `\clearpage`。(即 `\cleardoublepage` 僅跳至下頁而非原始的「下個右頁」。) 14 | 15 | * 修正 16 | * 浮水印的錯誤變數 `\watermark` (這是棄用變數名稱) 17 | * Issue #3 的浮水印透明度問題。 18 | 19 | ## v1.8.1 (2018-09-11) 20 | * 新增功能 21 | * 教授姓名改用逗點分隔單一變數,數量無限。(同時相關變數名稱亦有增減) 22 | * 自動加入 BibLaTeX 特定風格所需套件(e.g. apa) 23 | * 加入陽明、暨南樣式 24 | 25 | * 修改 26 | * 修正原始交大版摘要頭的教授列表。 27 | * 因應教授姓名輸入方式之改變,新增 `\profs` (`\profsZh` / `\profsEn`),刪除原有的 `\mprof`、`\sprofi`、`\sprofii` (`*Zh` / `*En`) 28 | 29 | * 修正 30 | * config.tex 中的 `\bibStyle` 未正確設定至 `thesis_base.cls`,導致無效。 31 | 32 | ## v1.8 (2018-01-18) 33 | 34 | * 新增功能 35 | * 支援清大樣式 36 | * 支援(多頁)浮水印。 37 | * 章間頁可選用純白頁(不含頁首頁尾)。 38 | * 支援自動選用 Mac 字型 (Thanks [borting](https://github.com/borting/nctu-thesis/) ) 39 | * 文獻支援三種插入方法,由 config.tex 簡單切換。 40 | * 目錄支援 `frontmatter` 區段使用不同字體風格。 41 | * 附上中大中英文件,並加入英文文件之自動填單。(文件於 2018-01-11 確認與校方一致) 42 | * 非 XeLaTeX 錯誤訊息。 43 | * 於 `macros_preamble.tex` 附上已註解的 `blindtext` 、 `glossaries` 套件,解註後使用。 44 | * `\tableofcontents`, `\listoffigures`, `\listoftables` 可由 `config.tex` 切換自動加入目錄頁。(不再需要於 `main.tex` 手動加入指令,因此 `main.tex` 同步移除相關指令。) 45 | 46 | * 修改 47 | * 開發環境升級至 Tex Live 2016 ,舊的 TeX 發行版將不再特別支援。 48 | * mhchem 套件之語法版號 3 -> 4 (2012 不支援) 49 | * `macros_preamble.tex` 新增 `\macrosAfterHyperref` 用於放置須於 `hyperref` 套件之後載入的指令。此後建議所有導言區內容均移入 `macros_preamble.tex` 50 | * `\frontmatter` 中所有圖、表、方程的編號顯示成 `0.1` 的格式(原 `book.cls` 設定為當 chapter <= 0 時不顯示 `章.`) 51 | * `config.tex` 重排順序。 52 | * 變數更名: 53 | -`config.tex`: `\titleStyle` -> `\titleNumStyle` 54 | * 教學檔移出成獨立專案。 55 | 56 | * 移除 `NCU_en/compatibility/` (舊版之相容性檔案,已不需要) 57 | 58 | ## v1.7.1 (2017-09-14) 59 | 60 | * 修正 \cref 引用 appendix 章節之文字。(加 \crefname{appendix}{附錄}{附錄}) 61 | * thesis_base.cls 預設文獻風格由 nature 改為 ieee。 62 | * NTU 版依校方要求進行微調 63 | * 增加學院名(直接設定於 config.tex 原有的 \def\deptZh 與 \def\deptEn)。 64 | * 去除封面書脊設定(main.tex 註解相關指令)、封面不含 DOI 與浮水印。 65 | * 書脊檔(bookspine.tex)之年月資訊更正:學年 -> 口試通過年、學期 -> 口試通過月。 66 | * 新增 tools/toc2txt.tex 用於轉換目錄檔 main.toc 為簡單文字檔。 67 | * 修正 NTU 名稱(台 -> 臺)。 68 | * 修正 author 範例(加句點 :D ) 69 | * 修復書脊文字旋轉(RawFeature=vertical) 70 | * tools 加入 unix2dos4toc.bat 71 | 72 | 73 | ## v1.7 (2017-01-07) 74 | * 支援 台大(NTU)、交大(NCTU) (依校方範例檔製作) 75 | * 將基礎 class NCU_thesis_extbook.cls 更名為 thesis_base.cls(由於各 .tex 並非直接載入此檔,因此.tex中無須更動)。 76 | * sppmgTool.sty 新增 \fs 指令 (\fontsize 快速版) 77 | 78 | 79 | ## v1.6.1 (2016-12-01) 80 | * 修正 sppmgTool.sty 中的快速插圖指令 81 | 82 | 83 | ## v1.6 (2016-11-30) 84 | * 合併(中央版)中英文的 class 檔(.cls) 85 | * 基礎 class 由 book 改至 extbook,得以使用14pt以上字體大小。(免去使用\fontsize) 86 | * 配合基礎字體變動,config.tex 中增加各種類型(圖說、表格....)文字樣式設定值。 87 | * abstract/摘要 之章節標題前加上論文資訊 \abstractHeader* 且其樣式由\abstractHeaderStyle 設定。 88 | * 自訂輔助寫作指令由 .cls 移入 sppmgTool.sty 89 | 90 | 91 | ## v1.5 (2016-10-27) 92 | * 由「中央大學之中文版」複製並停用中文相關設定而成之英文版。 93 | * 整理 class 檔內容 94 | * 摘要頁增加論文題目等等的論文資訊。(依各校規定而有不同) 95 | * 修正文獻資料庫(*.bib)的插入位置,並且實際插入一個 bib 到樣板中。 96 | 97 | 98 | ## v1.0 (2016-10-13) 99 | * 首版釋出。僅支援中央大學之中文版。 100 | * 內文大小由 \fontsize 進行調整。 101 | -------------------------------------------------------------------------------- /NCTU_patch/cover.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profsZh_cl 10 | \clist_gset:NV \g_sppmg_profsZh_cl \profsZh 11 | 12 | % get total number of prof. . Omitted language will not display. 13 | \int_gzero_new:N \g_sppmg_profTotal_int 14 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profsZh_cl} 15 | 16 | % NOTE: ``tabularx'' will processes its contents more than once 17 | % for calculate width, so ``gpop'' can't put in tabularx env. 18 | \tl_gclear_new:N \g_sppmg_tableContent_tl 19 | 20 | % Use a inline function for pop list , and save table content 21 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 22 | % Use ``for'' loop to get all prof. 23 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 24 | \clist_gpop:NNTF \g_sppmg_profsZh_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 25 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 26 | \int_case:nnTF {#1}{ 27 | {1} {指導教授: & \l_tmpa_tl & 博士 & \exp_not:n {\\} } 28 | {2} {共同指導: & \l_tmpa_tl & 博士 & \exp_not:n {\\} } 29 | }{}{ 30 | & \l_tmpa_tl & 博士 & \exp_not:n {\\} 31 | } 32 | } 33 | } 34 | 35 | % Copy contents to LaTeX2e macro. 36 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 37 | 38 | \ExplSyntaxOff 39 | 40 | \def\fsUniversity{\fontsize{38}{38}\selectfont } 41 | \def\fsTitle{\fontsize{22}{26.4}\selectfont } 42 | \def\fsNames{\fontsize{16}{20}\selectfont } 43 | % --------define title page layout for thesis 44 | \titlepageFontFamily % set in config.tex 45 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 46 | \begin{spacing}{1.0} 47 | \begin{titlepage} 48 | % \null\vfill 49 | \begin{center} 50 | {\fs{40} 國立交通大學 \par} 51 | \vspace*{13mm} 52 | 53 | {\fs{32} \textbf{\deptZh} \par} 54 | \vspace*{12mm} 55 | 56 | {\fs{28} \textbf{\degreeZh 論文}\par} 57 | \vspace*{26mm} 58 | 59 | {\fs{20} {\title} \par} 60 | \vspace*{10mm} 61 | 62 | {\fs{16} {\subtitle} \par} 63 | {\ifx \logo\empty\vspace*{35mm} 64 | 65 | \else \vspace*{5mm} \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 66 | \fi} 67 | 68 | {\fs{18}[1.5] \renewcommand{\arraystretch}{1} 69 | % If you want make table by yourself, replace ``\profsTableContent'' 70 | \begin{tabularx}{\textwidth}{l@{\hspace*{0.4em}}l@{\quad}rX} 71 | 研\enspace 究\enspace 生: & \author & & \\ 72 | 73 | \profsTableContent 74 | 75 | \end{tabularx} 76 | \par} 77 | \vfill 78 | 79 | {\fs{18} \textbf{\degreedateROC} \par} 80 | \vspace*{2ex} 81 | 82 | \ifthenelse{\boolean{printcopyright}} 83 | {{{版權所有\copyright\ \author\ \copyyear} \par}} 84 | \vspace*{15mm} 85 | 86 | \end{center} 87 | % \null\vfill 88 | \end{titlepage} 89 | \end{spacing} 90 | \restoregeometry 91 | \normalfont % use main font 92 | %--------end of title page for thesis 93 | \cleardoublepage 94 | \end{document} 95 | -------------------------------------------------------------------------------- /NCU_zh/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profs_cl 10 | \clist_gset:NV \g_sppmg_profs_cl \profs 11 | 12 | % get total number of prof. . Omitted language will not display. 13 | \int_gzero_new:N \g_sppmg_profTotal_int 14 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 15 | 16 | % NOTE: ``tabularx'' will processes its contents more than once 17 | % for calculate width, so ``gpop'' can't put in tabularx env. 18 | \tl_gclear_new:N \g_sppmg_tableContent_tl 19 | 20 | % Use a inline function for pop list , and save table content 21 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 22 | % Use ``for'' loop to get all prof. 23 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 24 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 25 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 26 | \int_case:nnTF {#1}{ 27 | {1} {指導教授: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 28 | {2} {共同指導: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 29 | }{}{ 30 | & \l_tmpa_tl & 博士 \exp_not:n {\\} 31 | } 32 | } 33 | } 34 | 35 | % Copy contents to LaTeX2e macro. 36 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 37 | 38 | \ExplSyntaxOff 39 | 40 | 41 | \def\fsUniversity{\fontsize{26}{31}\selectfont } 42 | \def\fsTitle{\fontsize{22}{26.4}\selectfont } 43 | \def\fsNames{\fs{16}[1.5] } 44 | % --------define title page layout for thesis 45 | \titlepageFontFamily % set in config.tex 46 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 47 | \begin{spacing}{1.0} 48 | \begin{titlepage} 49 | \null\vfill 50 | \begin{center} 51 | {\fsUniversity\textbf{國\quad 立\quad 中\quad 央\quad 大\quad 學}\par} 52 | \vspace*{20mm} 53 | 54 | {\fsTitle {\dept} \par} 55 | \vspace*{1ex} 56 | 57 | {\fsTitle {\degree}論文\par} 58 | \vspace*{20mm} 59 | 60 | {\fsTitle {\title} \par} 61 | \vspace*{5mm} 62 | 63 | {\fsTitle {\subtitle} \par} 64 | \vspace*{10mm} 65 | 66 | {\ifx \logo\empty\vspace*{40mm} 67 | \else \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 68 | \fi} 69 | \vfill 70 | 71 | {\fsNames \renewcommand{\arraystretch}{1} 72 | % If you want make table by yourself, replace ``\profsTableContent'' 73 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}r} 74 | % 0.4em for ``:'' right side space 75 | 研\enspace 究\enspace 生: & \author & \\ 76 | 77 | \profsTableContent 78 | 79 | \end{tabular} 80 | \par 81 | } 82 | \vspace*{5ex} 83 | 84 | {\fsTitle {\degreedate} \par} 85 | \vspace*{2ex} 86 | 87 | \ifthenelse{\boolean{printcopyright}} 88 | {{{版權所有\copyright\ \author\ \copyyear} \par}} 89 | \end{center} 90 | \null\vfill 91 | \end{titlepage} 92 | \end{spacing} 93 | \restoregeometry 94 | \normalfont % use main font 95 | %--------end of title page for thesis 96 | \cleardoublepage 97 | \end{document} 98 | -------------------------------------------------------------------------------- /NCU_en/titlepage_zh.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profs_cl 10 | \clist_gset:NV \g_sppmg_profs_cl \profs 11 | 12 | % get total number of prof. . Omitted language will not display. 13 | \int_gzero_new:N \g_sppmg_profTotal_int 14 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 15 | 16 | % NOTE: ``tabularx'' will processes its contents more than once 17 | % for calculate width, so ``gpop'' can't put in tabularx env. 18 | \tl_gclear_new:N \g_sppmg_tableContent_tl 19 | 20 | % Use a inline function for pop list , and save table content 21 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 22 | % Use ``for'' loop to get all prof. 23 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 24 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 25 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 26 | \int_case:nnTF {#1}{ 27 | {1} {指導教授: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 28 | {2} {共同指導: & \l_tmpa_tl & 博士 \exp_not:n {\\} } 29 | }{}{ 30 | & \l_tmpa_tl & 博士 \exp_not:n {\\} 31 | } 32 | } 33 | } 34 | 35 | % Copy contents to LaTeX2e macro. 36 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 37 | 38 | \ExplSyntaxOff 39 | 40 | 41 | \def\fsUniversity{\fontsize{26}{31}\selectfont } 42 | \def\fsTitle{\fontsize{22}{26.4}\selectfont } 43 | \def\fsNames{\fs{16}[1.5] } 44 | % --------define title page layout for thesis 45 | \titlepageFontFamily % set in config.tex 46 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 47 | \begin{spacing}{1.0} 48 | \begin{titlepage} 49 | \null\vfill 50 | \begin{center} 51 | {\fsUniversity\textbf{國\quad 立\quad 中\quad 央\quad 大\quad 學}\par} 52 | \vspace*{20mm} 53 | 54 | {\fsTitle {\dept} \par} 55 | \vspace*{1ex} 56 | 57 | {\fsTitle {\degree}論文\par} 58 | \vspace*{20mm} 59 | 60 | {\fsTitle {\title} \par} 61 | \vspace*{5mm} 62 | 63 | {\fsTitle {\subtitle} \par} 64 | \vspace*{10mm} 65 | 66 | {\ifx \logo\empty\vspace*{40mm} 67 | \else \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 68 | \fi} 69 | \vfill 70 | 71 | {\fsNames \renewcommand{\arraystretch}{1} 72 | % If you want make table by yourself, replace ``\profsTableContent'' 73 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}r} 74 | % 0.4em for ``:'' right side space 75 | 研\enspace 究\enspace 生: & \author & \\ 76 | 77 | \profsTableContent 78 | 79 | \end{tabular} 80 | \par 81 | } 82 | \vspace*{5ex} 83 | 84 | {\fsTitle {\degreedateZh} \par} 85 | \vspace*{2ex} 86 | 87 | \ifthenelse{\boolean{printcopyright}} 88 | {{{版權所有\copyright\ \author\ \copyyear} \par}} 89 | \end{center} 90 | \null\vfill 91 | \end{titlepage} 92 | \end{spacing} 93 | \restoregeometry 94 | \normalfont % use main font 95 | %--------end of title page for thesis 96 | \cleardoublepage 97 | \end{document} 98 | -------------------------------------------------------------------------------- /NCU_en/sppmgTools.sty: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e} 2 | \ProvidesPackage{sppmgTools}[2016/11/29 by sppmg] 3 | 4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5 | % Packages 6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7 | 8 | \RequirePackage{xparse} 9 | \RequirePackage{tikz} 10 | \RequirePackage{eso-pic} 11 | % \RequirePackage{expl3} 12 | 13 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14 | % My tools 15 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 | 17 | \newcommand{\placetextbox}[3]{% \placetextbox{}{}{} 18 | \setbox0=\hbox{#3}% Put in a box 19 | \AddToShipoutPictureFG*{% Add to current page foreground 20 | \put(\LenToUnit{#1mm},\LenToUnit{#2mm}){\vtop{{\null}\makebox[0pt][c]{#3}}}% 21 | }% 22 | }% mm 可取代為\paperwidth 使用比例0-1 23 | % 選項colorgrid標示座標 24 | 25 | 26 | % easy insert single figure 27 | % \fig[scalefactor][label][!htb]{path}[caption][short caption] 28 | \NewDocumentCommand\fig{O{0.5} O{} O{} m O{} o}{ % need xparse package 29 | \begin{figure}[#3]%[!htb] 30 | \centering 31 | \includegraphics[width=#1\textwidth]{#4} 32 | \IfNoValueTF{#6}{\caption{#5}}{\caption[#6]{#5}} 33 | \def\temp@fig{#2} 34 | \ifx\temp@fig\empty 35 | \label{fig:#4} 36 | \else 37 | \label{#2} 38 | \fi 39 | \end{figure} 40 | } 41 | % \insfig is old name of \fig, for compatibility 42 | \newcommand\insfig{\fig} 43 | 44 | 45 | % make circle around letters (use tikz, copy from other guy) 46 | \newcommand*\circhar[1]{% 47 | \begin{tikzpicture} 48 | \node[draw,circle,inner sep=1pt] {#1}; 49 | \end{tikzpicture}} 50 | 51 | 52 | 53 | % short command for fontsize. for easy read. 54 | % usage: \fs{fontsize}[baselineskip] , unit = pt 55 | % if baselineskip < fontsize => multiple 56 | 57 | % need pgf / tikz 58 | \NewDocumentCommand\fs{m o}{ 59 | \IfNoValueTF{#2}{ 60 | \fontsize{#1}{#1}\selectfont 61 | }{ 62 | \pgfmathparse{ 63 | ifthenelse(#2 < #1 , #1*1.2*#2 , #2)} 64 | \fontsize{#1}{\pgfmathresult}\selectfont 65 | } 66 | } 67 | 68 | % LaTeX3 , work fine but need expl3 after 2012-05-08 69 | % \ExplSyntaxOn 70 | % \NewDocumentCommand\fs{m o}{ 71 | % \IfNoValueTF{#2}{ 72 | % \fontsize{#1}{#1}\selectfont 73 | % }{ 74 | % \fp_compare:nNnTF {#2} < {#1}{ 75 | % \fontsize{#1}{\fp_eval:n {#1*1.2*#2} }\selectfont 76 | % }{ 77 | % \fontsize{#1}{#2}\selectfont 78 | % } 79 | % } 80 | % } 81 | % \ExplSyntaxOff 82 | 83 | 84 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 85 | % Debug 86 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 87 | 88 | % display used package list in .log file, information for develop. 89 | \listfiles 90 | 91 | % display current font information. 92 | \newcommand{\showfont}{ \par 93 | \begin{tabular}{rcc} \hline 94 | current font info. & En & CJK \\ \hline 95 | encoding: & \f@encoding & - \\ 96 | family: & \f@family & 97 | \ifx\undefined\CJK@family 98 | - 99 | \else 100 | \CJK@family 101 | \fi \\ 102 | series: & \f@series & - \\ 103 | shape: & \f@shape & - \\ 104 | size: & \f@size & - \\ \hline 105 | \end{tabular}\par 106 | } % old xeCJK no \CJK@family 107 | 108 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NCU_zh/sppmgTools.sty: -------------------------------------------------------------------------------- 1 | \NeedsTeXFormat{LaTeX2e} 2 | \ProvidesPackage{sppmgTools}[2016/11/29 by sppmg] 3 | 4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5 | % Packages 6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7 | 8 | \RequirePackage{xparse} 9 | \RequirePackage{tikz} 10 | \RequirePackage{eso-pic} 11 | % \RequirePackage{expl3} 12 | 13 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14 | % My tools 15 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 | 17 | \newcommand{\placetextbox}[3]{% \placetextbox{}{}{} 18 | \setbox0=\hbox{#3}% Put in a box 19 | \AddToShipoutPictureFG*{% Add to current page foreground 20 | \put(\LenToUnit{#1mm},\LenToUnit{#2mm}){\vtop{{\null}\makebox[0pt][c]{#3}}}% 21 | }% 22 | }% mm 可取代為\paperwidth 使用比例0-1 23 | % 選項colorgrid標示座標 24 | 25 | 26 | % easy insert single figure 27 | % \fig[scalefactor][label][!htb]{path}[caption][short caption] 28 | \NewDocumentCommand\fig{O{0.5} O{} O{} m O{} o}{ % need xparse package 29 | \begin{figure}[#3]%[!htb] 30 | \centering 31 | \includegraphics[width=#1\textwidth]{#4} 32 | \IfNoValueTF{#6}{\caption{#5}}{\caption[#6]{#5}} 33 | \def\temp@fig{#2} 34 | \ifx\temp@fig\empty 35 | \label{fig:#4} 36 | \else 37 | \label{#2} 38 | \fi 39 | \end{figure} 40 | } 41 | % \insfig is old name of \fig, for compatibility 42 | \newcommand\insfig{\fig} 43 | 44 | 45 | % make circle around letters (use tikz, copy from other guy) 46 | \newcommand*\circhar[1]{% 47 | \begin{tikzpicture} 48 | \node[draw,circle,inner sep=1pt] {#1}; 49 | \end{tikzpicture}} 50 | 51 | 52 | 53 | % short command for fontsize. for easy read. 54 | % usage: \fs{fontsize}[baselineskip] , unit = pt 55 | % if baselineskip < fontsize => multiple 56 | 57 | % need pgf / tikz 58 | \NewDocumentCommand\fs{m o}{ 59 | \IfNoValueTF{#2}{ 60 | \fontsize{#1}{#1}\selectfont 61 | }{ 62 | \pgfmathparse{ 63 | ifthenelse(#2 < #1 , #1*1.2*#2 , #2)} 64 | \fontsize{#1}{\pgfmathresult}\selectfont 65 | } 66 | } 67 | 68 | % LaTeX3 , work fine but need expl3 after 2012-05-08 69 | % \ExplSyntaxOn 70 | % \NewDocumentCommand\fs{m o}{ 71 | % \IfNoValueTF{#2}{ 72 | % \fontsize{#1}{#1}\selectfont 73 | % }{ 74 | % \fp_compare:nNnTF {#2} < {#1}{ 75 | % \fontsize{#1}{\fp_eval:n {#1*1.2*#2} }\selectfont 76 | % }{ 77 | % \fontsize{#1}{#2}\selectfont 78 | % } 79 | % } 80 | % } 81 | % \ExplSyntaxOff 82 | 83 | 84 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 85 | % Debug 86 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 87 | 88 | % display used package list in .log file, information for develop. 89 | \listfiles 90 | 91 | % display current font information. 92 | \newcommand{\showfont}{ \par 93 | \begin{tabular}{rcc} \hline 94 | current font info. & En & CJK \\ \hline 95 | encoding: & \f@encoding & - \\ 96 | family: & \f@family & 97 | \ifx\undefined\CJK@family 98 | - 99 | \else 100 | \CJK@family 101 | \fi \\ 102 | series: & \f@series & - \\ 103 | shape: & \f@shape & - \\ 104 | size: & \f@size & - \\ \hline 105 | \end{tabular}\par 106 | } % old xeCJK no \CJK@family 107 | 108 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The LaTeX Template for TW Thesis 台灣碩博士 LaTeX 論文樣板 2 | 3 | ![XeLaTeX](https://img.shields.io/badge/TeX-XeLaTeX-orange.svg) 4 | [![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/sppmg) 5 | 6 | 這個專案的目的是希望台灣的研究生可以快速上手 LaTeX(尤其是使用中文撰寫),讓寫論文的時間完整的用在內容上。 7 | 8 | 除了提供中文樣板讓使用者直接修改之外,同時提供一個簡易 [LaTeX 教學](https://github.com/sppmg/LaTeX_tutorial_for_thesis),*教學檔原始碼也是樣板的最佳範例*。教學內容主要但不限於論文樣板範圍,一般 LaTeX 學習者亦歡迎參考使用。 9 | 10 | 建議至少花15分鐘快速瀏覽過教學。不懂沒關係,至少知道 LaTeX 有哪些功能、要到哪裡找。瀏覽一遍只要15分鐘,不知道好用功能可以浪費你好幾天。 11 | *(學弟妹們!不要再手打圖表編號了啊!!)* 12 | 13 | 專案名稱為 TW Thesis Template 表示這是為了台灣的論文而設計,主要支援中文論文,並提供多個學校的樣板。 14 | 專案目前支援的學校如下(全部支援中(zh), 英(en)雙語系): 15 | 16 | | 中文校名 | 英文縮寫/目錄 | 審核通過 | 說明 | 17 | | --------------- | ------------- | ------- | ------------- | 18 | | 國立中央大學 | NCU | 是 | 為其餘學校的基礎樣板。 19 | | 國立臺灣師範大學 | NTNU | ? | 與中央版完全相同,請自行修改校名(如 `titlepage.tex` 內)。 20 | | 國立臺灣大學 | NTU | 是 | patch 21 | | 國立交通大學 | NCTU | ? | patch 22 | | 國立清華大學 | NTHU | 是 | patch 23 | | 國立暨南國際大學 | NCNU | ? | patch 24 | | 國立陽明大學 | YM | ? | patch 25 | 26 | - **上表中, patch 表示為補充檔,可經由內附工具(build.sh/build.bat)產生完整樣板。細節見[Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%88%9D%E7%B4%9A%E6%89%8B%E5%86%8A#patch-%E7%89%88%E6%A8%A3%E6%9D%BF%E4%BD%BF%E7%94%A8%E8%AA%AA%E6%98%8E)中的說明。** 27 | 28 | - 「審核通過」表示確認已有學生用此樣板撰寫並審過。「?」者為未確認,但已盡力符合校方要求,應該不會有問題。 29 | 30 | - 文獻列表樣式預設直接套用期刊(IEEE)樣式,**可能不符合校方、系所規定**,請視情況自行修改(看審核嚴格程度)。設定值位於 `config.tex` 與 `bibliography.tex`。 31 | 32 | - [其他 LaTeX 樣板](https://github.com/sppmg/TW_Thesis_Template/wiki/%E5%90%8C%E5%A5%BD%E9%80%A3%E7%B5%90)可以參考他人製作方式,以及本樣板尚未支援的學校。 33 | 34 | 35 | 由於本樣板設計是以一本完整的書為目標,所以不僅僅是論文,日後撰寫書籍文件亦非常適合。 36 | 37 | ## 下載 38 | 39 | 基本上只要是 `Branch:master` 均為穩定版。直接按綠色 `Clone or download` 下載整個專案即可。 40 | 41 | 若要特定發佈版號可以至 [releases](https://github.com/sppmg/TW_Thesis_Template/releases) 42 | 43 | 若想嘗鮮可以切換 `Branch:develop` 後下載專案。不過我通常 `develop` 只在大改時才會有短時間和 `master` 有差異,普通使用者用 `master` 或 `releases` 即可。 44 | 45 | 46 | ## 使用說明 47 | 48 | 本專案說明分為下列 3 種 49 | 50 | ### 單純的使用手冊 51 | 見本專案的 [Wiki](https://github.com/sppmg/TW_Thesis_Template/wiki) 。 52 | MiKTeX 使用者請一定要閱讀 [MiKTeX 注意事項](https://github.com/sppmg/TW_Thesis_Template/wiki/MiKTeX-%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A0%85)。 53 | 54 | ### 各校樣式說明 55 | 對於各校特有的說明放在其目錄下的 `README.md` (github 進入其目錄即可看到網頁呈現結果)。 56 | 57 | ### 教學手冊 58 | 包含詳細的 LaTeX 資訊,由軟體安裝到基礎 LaTeX 教學。即使不足以讓你成為大師,至少也能帶你入門。 59 | 亦有部份章節敘述樣板設定及使用方式。 60 | 61 | 此手冊使用 NCU_zh 作為基底,因此也是一個現成的 LaTeX 範例。 62 | 63 | 目前教學手冊獨立為一個專案,請移駕 https://github.com/sppmg/LaTeX_tutorial_for_thesis 64 | 65 | 66 | ## 回饋 67 | 使用上有問題或建議請回饋到 Issues 分頁。非中央版使用者若發生「格式不符」情況請於 Issues 提出修正建議(通過審核也請告知)。 68 | 69 | ## 最新消息 70 | 若有任何新的資訊,我會公佈於[Wiki-News](https://github.com/sppmg/TW_Thesis_Template/wiki/News)。 71 | 72 | ## 版本遷移資訊 73 | 這裡紀錄一些版本間的遷移資訊供舊版使用者遷移至新版本使用。各版本修改資訊見[Change Log](https://github.com/sppmg/TW_Thesis_Template/blob/master/CHANGELOG.md)。 74 | 75 | | 版本/日期 | 資訊 | 76 | | ----------------- | ------------- | 77 | | 1.8.2 (2019-04-07) | 相容 v1.8.1,但 `config.tex` 新增一變數 `\wmStartPage`,請自行貼至舊版。| 78 | | 1.8.1 (2018-09-11) | 因應教授姓名輸入方式之改變,新增 `\profs` ,刪除原有的 `\mprof` 等變數。 | 79 | | v1.8 (2018-01-18) | 相對於 `v1.7` / `v1.7.1` ,因基礎(共用)樣板新增功能,舊使用者須放上新的 `config.tex` ,請手動將相關資訊移入新版設定檔中。新 `config.tex` 對部份舊設定值順序略有調整,這點非常抱歉!其餘檔案基本上可以不用修正,直接將修改過的 chapter, appendix, macro_* 等移入即可。另外 `main.tex` 目錄(TOC)已在樣板中設置自動加入目錄,請將舊版 `main.tex` 的 `\addcontentsline{toc}` 等三行移除。| 80 | | v1.7 (2017-01-07) | 相容v1.6 | 81 | | v1.6 (2016-11-30) | 中英文共用同一份cls檔,因此英文版的tex檔標頭由NCU_thesis_en.cls 改為 `NCU_thesis.cls`。 英文版的 compatibility 目錄中含有一個 `NCU_thesis_en.cls` ,舊有使用者可以將其複製至主檔目錄,即可使用新版cls而不須修改tex檔。| 82 | | v1.5 (2016-10-27) | 各tex檔標頭稍改,\\chapter直接移入新版即可。 bib檔引入位置修正。之前置於`config.tex`是錯的。 | 83 | -------------------------------------------------------------------------------- /NCTU_patch/NCTU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCTU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10 | % Load base class 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \LoadClass{thesis_base} 14 | 15 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 | % Redefine header of abstract 17 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18 | 19 | % I use LaTeX3 to automatically generate name table. 20 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 21 | % it will save contents to `\profsTableContent''. 22 | % You can ignore this block even you want make table by yourself. 23 | \ExplSyntaxOn 24 | 25 | 26 | \cs_new:Npn \sppmg_makeAbsTableContent:NNNn #1#2#3#4 { 27 | % Copy prof. list from config.tex 28 | \clist_gclear_new:N \g_sppmg_profs_cl 29 | \clist_gset:NV \g_sppmg_profs_cl #1 30 | 31 | % get total number of prof. . Omitted language will not display. 32 | \int_gzero_new:N \g_sppmg_profTotal_int 33 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 34 | 35 | % NOTE: ``tabularx'' will processes its contents more than once 36 | % for calculate width, so ``gpop'' can't put in tabularx env. 37 | \tl_gclear_new:N \g_sppmg_tableContent_tl 38 | 39 | % For abstractHeader. pop Advisor first. 40 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 41 | \cs_gset_eq:NN #2 \l_tmpa_tl 42 | 43 | % Use a inline function for pop list , and save table content 44 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 45 | % Use ``for'' loop to get all prof. 46 | \int_step_inline:nnnn {2}{1}{\g_sppmg_profTotal_int}{ 47 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 48 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 49 | \int_case:nnTF {##1}{ 50 | % {1} {指導教授: & \l_tmpa_tl & 博士 & \exp_not:n {\\} } 51 | {2} { & & & 52 | \tl_if_eq:nnTF {#4}{zh}{共同指導:}{Co-advisor:} 53 | & \l_tmpa_tl \exp_not:n {\\} } 54 | }{}{ 55 | & & & & \l_tmpa_tl \exp_not:n {\\} 56 | } 57 | } 58 | } 59 | 60 | % Copy contents to LaTeX2e macro. 61 | \cs_gset_eq:NN #3 \g_sppmg_tableContent_tl 62 | } 63 | 64 | \sppmg_makeAbsTableContent:NNNn \profsZh \mprofZh \profsTableContentAbsZh {zh} 65 | \sppmg_makeAbsTableContent:NNNn \profsEn \mprofEn \profsTableContentAbsEn {en} 66 | 67 | \cs_undefine:N \sppmg_makeAbsTableContent:NNNn 68 | 69 | \ExplSyntaxOff 70 | 71 | 72 | \def\abstractHeaderZh{\centering 73 | \abstractHeaderStyle\titleZh\par 74 | \vspace*{1ex} 75 | \normalsize 76 | { \renewcommand{\arraystretch}{1} 77 | \begin{tabularx}{\textwidth}{r@{\hspace*{0.4em}}lXr@{\hspace*{0.4em}}l} 78 | 學生: & \authorZh & & 指導教授:& \mprofZh \\ 79 | 80 | \profsTableContentAbsZh 81 | 82 | \end{tabularx}\par } 83 | \vspace*{1em} 84 | 國立交通大學\; \deptZh \degreeZh 班 \par 85 | } 86 | \def\abstractHeaderEn{\centering 87 | \abstractHeaderStyle\titleEn\par 88 | \vspace*{1ex} 89 | \normalsize 90 | { \renewcommand{\arraystretch}{1} 91 | \begin{tabularx}{\textwidth}{r@{\hspace*{0.4em}}lXr@{\hspace*{0.4em}}l} 92 | Student: & \authorEn & & Advisor: & \mprofEn \\ 93 | 94 | \profsTableContentAbsEn 95 | 96 | \end{tabularx}\par } 97 | \vspace*{1.5em} 98 | 99 | \deptEn \par 100 | National Chiao Tung University \par 101 | } 102 | 103 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NTHU_patch/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[openany]{NTHU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | % openany: see issue #5, NTHU not allow blank page, so add this option to allow chapter start in left side, 17 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 18 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 19 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 20 | 21 | \begin{document} 22 | \frontmatter 23 | \input{titlepage} % 封面(不加浮水印) 24 | \input{titlepage} % 書名頁 25 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 26 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 27 | 28 | %%%%%%%%%%%% letters %%%%%%%%%%%% 29 | % Set file name in config.tex 30 | % 依校方規定,此處須插入: 31 | % [v] 清大(電子授權書) 必備,不論是否授權都要裝訂 32 | % [v] 清大(紙本授權書) 必備,不論是否授權都要裝訂 33 | % [x] 國家圖書館(電子授權書) 有授權才要裝訂 34 | % [v] 國家圖書館(紙本論文延後公開/下架申請書)→紙本論文有申請延後公開才要裝訂 35 | % [v] 指導教授推薦書 36 | % [v] 考試委員審定書 37 | % !!! [x] 部份請自行插入 38 | 39 | % 碩博士論文電子檔授權書 Authorization Letter (for electronic) 40 | \IfFileExists{\letterAuthEl}{ 41 | \cleardoublepage % 由下個右頁開始 42 | \includepdf{\letterAuthEl}}{} 43 | % 碩博士論文紙本授權書 Authorization Letter (for paper) 44 | \IfFileExists{\letterAuthPa}{ 45 | \cleardoublepage % 由下個右頁開始 46 | \includepdf{\letterAuthPa}}{} 47 | % 國家圖書館(電子授權書) 有授權才要裝訂 48 | 49 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 50 | \IfFileExists{\letterPubReq}{ 51 | \cleardoublepage 52 | \includepdf{\letterPubReq}}{} 53 | % 指導教授推薦書 54 | \IfFileExists{\letterRecom}{ 55 | \cleardoublepage 56 | \includepdf{\letterRecom}}{} 57 | % 口試委員審定書 58 | \IfFileExists{\letterVerif}{ 59 | \cleardoublepage 60 | \includepdf{\letterVerif}}{} 61 | \cleardoublepage 62 | 63 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 64 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 65 | \input{abstract_zh} % zh 中文摘要 66 | \input{abstract_en} % en 英文摘要 67 | \input{acknowledgements} % 誌謝(可略) 68 | 69 | % 原始 book class 不將 TOC,LOF,LOT 加入目錄列表,須手動加 70 | % 此樣板可由 config.tex 切換是否自動加入目錄 71 | \tableofcontents % 目錄 72 | \listoffigures % 圖目錄 73 | \listoftables % 表目錄 74 | \input{abbreviation} % 符號說明 75 | \mainmatter 76 | \input{chapter_introduction} % 緒論 77 | \input{chapter_method} % 分析方法 78 | \input{chapter_result} % 實驗結果 79 | \input{chapter_conclusion} % 結論 80 | \input{chapter_template_demo} 81 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 82 | \input{bibliography} 83 | \appendix 84 | \input{appendix_device} 85 | \input{appendix_solution} 86 | \input{appendix_codes} 87 | % \input{appendix_letters_NCU} 88 | \end{document} 89 | -------------------------------------------------------------------------------- /NCU_en/main.tex: -------------------------------------------------------------------------------- 1 | % !TEX TS-program = xelatex 2 | % !BIB program = biber 3 | % !TEX encoding = UTF-8 Unicode 4 | 5 | % 使用手冊請見 TW_Thesis_Template wiki: 6 | % https://github.com/sppmg/TW_Thesis_Template/wiki 7 | 8 | % User guide in wiki of TW_Thesis_Template : 9 | % https://github.com/sppmg/TW_Thesis_Template/wiki 10 | 11 | \documentclass[]{NCU_thesis} % \documentclass[option1, option2, ...] 12 | % Helpful options: 13 | % draft = Don't load figure ,reduce compile time. 14 | % showframe = show document margins. 15 | % colorgrid = show colored coordinate. (by eso-pic pkg.) 16 | \usepackage[subpreambles]{standalone} % standalone class setting in config.tex 17 | % Option ``subpreambles'' enable sub-tex's preambles when compile main tex. (pkg default disable) 18 | % sppmg think it's still some problem (e.g. \addbibresource will faild ), recommend move all subpreambles to ``macros_preamble.tex`` 19 | 20 | % Check Chinese setting before \input file. Avoid get error because no Chinese font. (It's 4 en template only.) 21 | % Usage: \input{zh_file}[page info] 22 | \NewDocumentCommand\inputZh{m O{This Page}}{ 23 | \ifthenelse{\boolean{disableChinese} \OR \NOT \equal{\titlepageLang}{zh} \AND \NOT \equal{\titlepageLang}{en}}{ 24 | \def\thispage{#2} 25 | \input{zh_hidden_warning} 26 | }{ 27 | \input{#1} 28 | } 29 | } 30 | 31 | \begin{document} 32 | \frontmatter 33 | \inputZh{titlepage_\titlepageLang}[Title page (cover)] % Cover/Titlepage 封面/書名頁 34 | \listoftodos % todo list, hide when set \textbackslash{}setboolean\{publish\}\{\textbf{true}\} in config.tex. It will not add to TOC , you can add \todototoc before \listoftodos to do that. 35 | \todo[inline]{``Todo List'' will hide when set \textbackslash{}setboolean\{publish\}\{\emph{true}\} in config.tex.} 36 | 37 | %%%%%%%%%%%% letters %%%%%%%%%%%% 38 | % Set file name in config.tex 39 | % 碩博士論文電子檔授權書 Authorization Letter/Power of Attorney 40 | \IfFileExists{\letterAuthEl}{ 41 | \cleardoublepage % 由下個右頁開始 42 | \includepdf{\letterAuthEl}}{} 43 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 44 | \IfFileExists{\letterPubReq}{ 45 | \cleardoublepage 46 | \includepdf{\letterPubReq}}{} 47 | % 指導教授推薦書 48 | \IfFileExists{\letterRecom}{ 49 | \cleardoublepage 50 | \includepdf{\letterRecom}}{} 51 | % 口試委員審定書 52 | \IfFileExists{\letterVerif}{ 53 | \cleardoublepage 54 | \includepdf{\letterVerif}}{} 55 | \cleardoublepage 56 | 57 | %%%%%%%%%%%% Other frontmatter, eg,abstract %%%%%%%%%%%% 58 | % 中英文論文摘要:內容應說明研究目的,資料來源,研究方法及研究結果等 59 | \inputZh{abstract_zh}[Chinese abstract] 60 | \input{abstract_en} % English abstract 61 | \input{acknowledgements} % acknowledgements(option) 誌謝(可略) 62 | 63 | % Original book class doesn't add TOC,LOF,LOT to Contents 64 | % This template can switch auto add entry in config.tex 65 | \tableofcontents % Table Of Contents 66 | \listoffigures % List Of Figures 圖目錄 67 | \listoftables % List Of Tables 表目錄 68 | \input{abbreviation} % Symbols 符號及術語 69 | \mainmatter 70 | \input{chapter_introduction} % introduction 緒論 71 | \input{chapter_method} % method 分析方法 72 | \input{chapter_result} % result 實驗結果 73 | \input{chapter_conclusion} % conclusion 結論 74 | \input{chapter_template_demo} % some demo 75 | \backmatter % book class 預設\backmatter 在\appendix 後面。因此.cls修改過\appendix 定義 76 | \input{bibliography} 77 | \appendix 78 | \input{appendix_device} 79 | \input{appendix_solution} 80 | \input{appendix_codes} 81 | 82 | \inputZh{appendix_letters_NCU}[Automatical write letters] 83 | \end{document} -------------------------------------------------------------------------------- /YM_patch/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=YM_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profsZh_cl 10 | \clist_gset:NV \g_sppmg_profsZh_cl \profsZh 11 | \clist_gclear_new:N \g_sppmg_profsEn_cl 12 | \clist_gset:NV \g_sppmg_profsEn_cl \profsEn 13 | 14 | % get total number of prof. . Omitted language will not display. 15 | \int_gzero_new:N \g_sppmg_profTotal_int 16 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profsZh_cl} 17 | 18 | % NOTE: ``tabularx'' will processes its contents more than once 19 | % for calculate width, so ``gpop'' can't put in tabularx env. 20 | \tl_gclear_new:N \g_sppmg_tableContent_tl 21 | 22 | % Use a inline function for pop list , and save table content 23 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 24 | % Use ``for'' loop to get all prof. 25 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 26 | \clist_gpop:NNTF \g_sppmg_profsZh_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 27 | \clist_gpop:NNTF \g_sppmg_profsEn_cl \l_tmpb_tl {}{ \tl_clear:N \l_tmpb_tl} 28 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 29 | \int_case:nnTF {#1}{ 30 | {1} {指導教授: & \l_tmpa_tl\ 博士 & (\l_tmpb_tl ,\ Ph.D.) \exp_not:n {\\} } 31 | {2} {共同指導: & \l_tmpa_tl\ 博士 & (\l_tmpb_tl ,\ Ph.D.) \exp_not:n {\\} } 32 | }{}{ 33 | & \l_tmpa_tl\ 博士 & (\l_tmpb_tl ,\ Ph.D.) \exp_not:n {\\} 34 | } 35 | } 36 | } 37 | 38 | % Copy contents to LaTeX2e macro. 39 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 40 | 41 | \ExplSyntaxOff 42 | 43 | 44 | \def\fsUniversity{\fs{16}[1.5]\selectfont } 45 | \def\fsDeptEn {\fs{14}[1.5]\selectfont } 46 | \def\fsTitle{\fs{18}[1.5]\selectfont } 47 | \def\fsNames{\fs{18}[1.5]\selectfont } 48 | % --------define title page layout for thesis 49 | \titlepageFontFamily % set in config.tex 50 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 51 | \begin{spacing}{1.0} 52 | \begin{titlepage} 53 | \null\vfill 54 | \begin{center} 55 | {\fsTitle \title \par} 56 | \vspace*{5mm} 57 | 58 | {\fsTitle \subtitle \par} 59 | \vspace*{10mm} 60 | \vfill\vfill 61 | 62 | 63 | {\fsNames \renewcommand{\arraystretch}{1} 64 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}l} 65 | 研\enspace 究\enspace 生: & \authorZh &(\authorEn) \\ 66 | \profsTableContent \par 67 | \end{tabular} 68 | \par 69 | } 70 | 71 | 72 | {\ifx \logo\empty\vfill 73 | \else \includegraphics[height=30mm]{\logo}\vspace*{10mm} \par 74 | \fi} 75 | \vspace*{10mm}\vfill\vfill 76 | 77 | 78 | {\fsUniversity 國立陽明大學 \par} 79 | 80 | {\fsUniversity {\deptZh} \par} 81 | \vspace*{1ex} 82 | 83 | {\fsTitle {\degree}論文 \par} 84 | 85 | {\fsDeptEn \deptEn \par} 86 | 87 | {\fsUniversity National Yang-Ming University \par} 88 | 89 | {\fsUniversity \thesisType \par} 90 | \vspace*{10mm}\vfill\vfill 91 | 92 | 93 | {\fsTitle \degreedateROC \\ 94 | \degreedateAD 95 | \par} 96 | \vspace*{2ex} 97 | 98 | \ifthenelse{\boolean{printcopyright}} 99 | {{{版權所有\copyright\ \author\ \copyyear} \par}} 100 | \end{center} 101 | \null\vfill 102 | \end{titlepage} 103 | \end{spacing} 104 | \restoregeometry 105 | \normalfont % use main font 106 | %--------end of title page for thesis 107 | \cleardoublepage 108 | \end{document} 109 | -------------------------------------------------------------------------------- /NTHU_patch/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NTHU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profsZh_cl 10 | \clist_gset:NV \g_sppmg_profsZh_cl \profsZh 11 | \clist_gclear_new:N \g_sppmg_profsEn_cl 12 | \clist_gset:NV \g_sppmg_profsEn_cl \profsEn 13 | 14 | % get total number of prof. . Omitted language will not display. 15 | \int_gzero_new:N \g_sppmg_profTotal_int 16 | \int_gset:Nn \g_sppmg_profTotal_int { 17 | \int_max:nn {\clist_count:N \g_sppmg_profsZh_cl} 18 | {\clist_count:N \g_sppmg_profsEn_cl} 19 | } 20 | 21 | % NOTE: ``tabularx'' will processes its contents more than once 22 | % for calculate width, so ``gpop'' can't put in tabularx env. 23 | % \tl_if_exist:NTF {\tl_clear:N \g_sppmg_tableContent_tl} {\tl_new:N \g_sppmg_tableContent_tl} 24 | % \tl_if_exist:NTF \g_sppmg_tableContent_tl {} {\tl_new:N \g_sppmg_tableContent_tl} 25 | \tl_gclear_new:N \g_sppmg_tableContent_tl 26 | 27 | 28 | % Use a inline function for pop 2 list (zh+en), and save table content 29 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 30 | % Use ``for'' loop to get all prof. 31 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 32 | \clist_gpop:NNTF \g_sppmg_profsZh_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 33 | \clist_gpop:NNTF \g_sppmg_profsEn_cl \l_tmpb_tl {}{ \tl_clear:N \l_tmpb_tl} 34 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 35 | \int_case:nnTF {#1}{ 36 | {1} {指導教授: & \l_tmpa_tl & 博士 & (Prof.~ \l_tmpb_tl ) \exp_not:n {\\} } 37 | {2} {共同指導: & \l_tmpa_tl & 博士 & (Prof.~ \l_tmpb_tl ) \exp_not:n {\\} } 38 | }{}{ 39 | & \l_tmpa_tl & 博士 & (Prof.~ \l_tmpb_tl ) \exp_not:n {\\} 40 | } 41 | } 42 | } 43 | 44 | % Copy contents to LaTeX2e macro. 45 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 46 | 47 | \ExplSyntaxOff 48 | \def\fsUniversity{\fs{24}[1.5]} 49 | \def\fsTitle{\fs{20}[1.5]} 50 | \def\fsNames{\fs{18}[1.5]} 51 | 52 | \def\mcShift{\hspace{-6.0pt}} % It's for align non-multicolumn cell . 53 | % --------define title page layout for thesis 54 | \titlepageFontFamily % set in config.tex 55 | \newgeometry{top=2.5cm, bottom=2.5cm, inner=2cm, outer=2cm} % only for titlepage 56 | \begin{spacing}{1.0} 57 | \begin{titlepage} 58 | \null\vfill 59 | \begin{center} 60 | {\fsUniversity 國\quad 立\quad 清\quad 華\quad 大\quad 學} \par 61 | \vspace*{5mm} 62 | 63 | {\fsTitle {\degree}論文\par} 64 | \vspace*{20mm} 65 | 66 | {\fsTitle {\title} \par} 67 | \vspace*{5mm} 68 | 69 | {\fsTitle {\subtitle} \par} 70 | \vspace*{10mm} 71 | 72 | {\ifx \logo\empty\vspace*{30mm} 73 | \else \includegraphics[height=30mm]{\logo} \par 74 | \fi} 75 | \vfill 76 | 77 | {\fsNames \renewcommand{\arraystretch}{1} 78 | % If you want make table by yourself, replace ``\profsTableContent'' 79 | \begin{tabular}{l@{\hspace*{0.4em}}l@{\quad}l@{\quad}l} 80 | 系\qquad 所: & \multicolumn{3}{l}{\mcShift \dept} \\ 81 | 學\qquad 號: & \multicolumn{3}{l}{\mcShift \studentID} \\ 82 | 研\enspace 究\enspace 生: & \authorZh & & (\authorEn) \\ 83 | 84 | \profsTableContent 85 | 86 | \end{tabular} 87 | \par} 88 | \vspace*{5ex} 89 | 90 | {\fsTitle {\degreedate} \par} 91 | \vspace*{2ex} 92 | 93 | \ifthenelse{\boolean{printcopyright}} 94 | {{{版權所有\copyright\ \author\ \quad \copyyear} \par}} 95 | {} 96 | \end{center} 97 | \null\vfill 98 | \end{titlepage} 99 | \end{spacing} 100 | \restoregeometry 101 | \normalfont % use main font 102 | %--------end of title page for thesis 103 | \cleardoublepage 104 | \end{document} 105 | -------------------------------------------------------------------------------- /NTU_patch/bookspine.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{article} 2 | 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | % info 5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6 | 7 | \def\deptZh {物理研究所} 8 | \def\degreeZh {碩士} % 碩士/博士 9 | \def\titleZh {臺灣大學LaTeX論文樣板(中文)} % Chinese title 10 | \def\title {\titleZh} % Main title, default Chinese title 11 | \def\authorZh {君の名は。} 12 | \def\authorEn {Your name.} 13 | \def\author {\authorZh} % Choose one When only use one name.(book spine using.) 14 | \def\degreeyearROC{107} % year of ROC 年份 15 | \def\degreemonth{6} % month 月份 16 | 17 | \def\OS{linux} % {linux}/{mac}/{win} 18 | \def\CJKmainfont{} % font, default use kai 19 | 20 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | % Pkg. and setting 22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 | 24 | \RequirePackage{iftex} % Check using TeX en­gine.(Only XeTeX.) 25 | \ifXeTeX\else 26 | \ClassError{TW_Thesis_Template}{XeTeX is required.}{Please use XeLaTeX to compile this document.} 27 | \fi 28 | 29 | \usepackage{ifplatform} 30 | \usepackage{ifthen} 31 | \usepackage{xparse} 32 | \usepackage{fontspec} 33 | \usepackage[CJKmath=true, slantfont, boldfont]{xeCJK} 34 | \xeCJKDeclareSubCJKBlock{GreekCoptic}{ "0370 -> "03FF }% Unicode block of Greek and Coptic 35 | \XeTeXlinebreakskip = 0pt plus 1pt % 設定中文字距與英文字距 36 | \XeTeXlinebreaklocale "zh" % 設定斷行演算法為中文 37 | \usepackage[paperwidth=20mm,paperheight=297mm, margin=0.5mm,ignoreall]{geometry} 38 | \usepackage{multirow} 39 | \usepackage{tabularx} 40 | 41 | 42 | %%%%%%%%%%% Auto select font %%%%%%%%%%%%%% 43 | % Use ifplatform package to determine OS and overwrite \OS. 44 | % It's need option ``-shell-escape'' to XeLaTeX. 45 | % If no this option , It's only determine windows. 46 | % (Texstudio may default use -shell-escape) 47 | \iflinux 48 | \def\OS{linux} 49 | \else\ifmacosx 50 | \def\OS{mac} 51 | \else\ifwindows 52 | \def\OS{win} 53 | \fi\fi\fi 54 | 55 | % --------- Chinese ---------- 56 | \ifx\CJKmainfont\empty 57 | \ifthenelse{\equal{\OS}{linux}}{ 58 | \def\CJKmainfont{AR PL UMing TW} % 明體 59 | }{ 60 | \ifthenelse{\equal{\OS}{mac}}{ 61 | \def\CJKmainfont{LiSong Pro} % 儷宋 Pro (明體) 62 | }{ 63 | \ifthenelse{\equal{\OS}{win}}{ 64 | \def\CJKmainfont{MingLiU} % 細明體 65 | }{ 66 | }}} 67 | \fi 68 | \setCJKmainfont{\CJKmainfont} 69 | 70 | 71 | \NewDocumentCommand\fs{m o}{ 72 | \IfNoValueTF{#2}{ 73 | \fontsize{#1}{#1}\selectfont 74 | }{ 75 | \fontsize{#1}{#2}\selectfont 76 | } 77 | } 78 | 79 | % ---------------------- Vertical CJK --------------------------- 80 | % Vertical with fixed base line in a rotatebox box. 81 | % ref: http://tex.stackexchange.com/questions/11913/baseline-shift-with-fontspec 82 | \newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs,RawFeature=vertical]{\CJKmainfont} %AR PL UMing TW}%{\CJKsfdefault} 83 | % Fix base line of Vertical CJK 84 | \def\vCJKShiftSymbol#1{\raise.35em\hbox{#1}} 85 | \def\vCJKBL{\let\CJKsymbol\vCJKShiftSymbol 86 | \let\CJKpunctsymbol\vCJKShiftSymbol} 87 | \def\vCJK#1{\vCJKBL\vCJKFamily\rotatebox{270}{#1}} % Short macro to do all thing of vertical typing. 88 | 89 | 90 | \begin{document} 91 | \thispagestyle{empty} 92 | \begin{center} 93 | \vCJK { 94 | \renewcommand{\arraystretch}{1} 95 | % \setstretch{1} 96 | \begin{tabularx}{280mm}{lXcXcXcXrl} 97 | \fs{12}國立臺灣大學 & 98 | \multirow{2}{*}{} & 99 | \multirow{2}{*}{\fs{12}\degreeZh 論文} & 100 | \multirow{2}{*}{} & 101 | \multirow{2}{*}{\fs{14}\title} & 102 | \multirow{2}{*}{} & 103 | \multirow{2}{*}{\fs{14}\author \quad 撰} & 104 | \multirow{2}{*}{} & 105 | \multirow{2}{*}{\rotatebox[origin=r]{90}{\fs{14}\degreeyearROC}} & 106 | \multirow{2}{*}{\raisebox{-0.6em}{\rotatebox[origin=r]{90}{\fs{14}\degreemonth}}} \\ 107 | \fs{12}\deptZh & & & & & & & & & \\ % 108 | \end{tabularx} 109 | } 110 | \end{center} 111 | 112 | \end{document} 113 | -------------------------------------------------------------------------------- /NCTU_patch/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NCU_thesis, crop=false, float=true]{standalone} 2 | \begin{document} 3 | % I use LaTeX3 to automatically generate name table. 4 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 5 | % it will save contents to `\profsTableContent''. 6 | % You can ignore this block even you want make table by yourself. 7 | \ExplSyntaxOn 8 | % Copy prof. list from config.tex 9 | \clist_gclear_new:N \g_sppmg_profsZh_cl 10 | \clist_gset:NV \g_sppmg_profsZh_cl \profsZh 11 | \clist_gclear_new:N \g_sppmg_profsEn_cl 12 | \clist_gset:NV \g_sppmg_profsEn_cl \profsEn 13 | 14 | % get total number of prof. . Omitted language will not display. 15 | \int_gzero_new:N \g_sppmg_profTotal_int 16 | \int_gset:Nn \g_sppmg_profTotal_int { 17 | \int_max:nn {\clist_count:N \g_sppmg_profsZh_cl} 18 | {\clist_count:N \g_sppmg_profsEn_cl} 19 | } 20 | 21 | % NOTE: ``tabularx'' will processes its contents more than once 22 | % for calculate width, so ``gpop'' can't put in tabularx env. 23 | % \tl_if_exist:NTF {\tl_clear:N \g_sppmg_tableContent_tl} {\tl_new:N \g_sppmg_tableContent_tl} 24 | % \tl_if_exist:NTF \g_sppmg_tableContent_tl {} {\tl_new:N \g_sppmg_tableContent_tl} 25 | \tl_gclear_new:N \g_sppmg_tableContent_tl 26 | 27 | 28 | % Use a inline function for pop 2 list (zh+en), and save table content 29 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 30 | % Use ``for'' loop to get all prof. 31 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 32 | \clist_gpop:NNTF \g_sppmg_profsZh_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 33 | \clist_gpop:NNTF \g_sppmg_profsEn_cl \l_tmpb_tl {}{ \tl_clear:N \l_tmpb_tl} 34 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 35 | \int_case:nnTF {#1}{ 36 | {1} {指導教授: & \l_tmpa_tl & & Advisor: & \l_tmpb_tl \exp_not:n {\\} } 37 | {2} {共同指導: & \l_tmpa_tl & & Co-advisor: & \l_tmpb_tl \exp_not:n {\\} } 38 | }{}{ 39 | & \l_tmpa_tl & & & \l_tmpb_tl \exp_not:n {\\} 40 | } 41 | } 42 | } 43 | 44 | % Copy contents to LaTeX2e macro. 45 | \cs_set_eq:NN \profsTableContent \g_sppmg_tableContent_tl 46 | 47 | \ExplSyntaxOff 48 | 49 | 50 | % \def\fsUniversityZh{\fontsize{18}{27}\selectfont } 51 | % \def\fsUniversityEn{\fontsize{16}{24}\selectfont } 52 | % \def\fsDeptEn{\fontsize{14}{21}\selectfont } 53 | % \def\fsTitle{\fontsize{18}{27}\selectfont } 54 | % \def\fsNames{\fontsize{18}{27}\selectfont } 55 | % --------define title page layout for thesis 56 | \titlepageFontFamily % set in config.tex 57 | \newgeometry{top=2.0cm, bottom=2.0cm, inner=2cm, outer=2cm} % only for titlepage 58 | \begin{spacing}{1.0} 59 | \begin{titlepage} 60 | % \null\vfill 61 | \begin{center} 62 | {\fs{16} {\titleZh} \par} 63 | \vspace*{5mm} 64 | {\fs{16} {\titleEn} \par} 65 | \vspace*{30mm} 66 | 67 | {\fs{14}[1.5] \renewcommand{\arraystretch}{1} 68 | % If you want make table by yourself, replace ``\profsTableContent'' 69 | \begin{tabularx}{\textwidth}{l@{\hspace*{0.4em}}lXr@{\hspace*{0.4em}}l} 70 | % 0.4em for ``:'' right side space 71 | 研\enspace 究\enspace 生: & \authorZh & & Student: & \authorEn \\ 72 | 73 | \profsTableContent 74 | 75 | \end{tabularx} 76 | \par} 77 | \vspace*{15mm} \vfill 78 | 79 | {\fs{14}[20] 80 | 國立交通大學 \par 81 | \deptZh \par 82 | \degreeZh 論文\par} 83 | \vspace*{20mm} \vfill 84 | 85 | {\fs{14}[18] 86 | A Thesis \par 87 | Submitted to \deptEn \par 88 | \ifx \collegeEn\empty\else College of \collegeEn \par \fi 89 | National Chiao Tung University \par 90 | in partial Fulfillment of the Requirements \par 91 | for the Degree of \par 92 | \degreeEn \par 93 | in \par 94 | \vspace*{10mm} \vfill 95 | 96 | \deptEn 97 | \vspace*{10mm} \vfill 98 | 99 | \degreedateEn \par 100 | \vspace*{10mm} \vfill 101 | 102 | Hsinchu, Taiwan, Republic of China \par 103 | \vspace*{10mm} \vfill 104 | \degreedateROC} 105 | \end{center} 106 | \end{titlepage} 107 | \end{spacing} 108 | \restoregeometry 109 | \normalfont % use main font 110 | %--------end of title page for thesis 111 | \cleardoublepage 112 | 113 | \end{document} 114 | -------------------------------------------------------------------------------- /NTU_patch/titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass[class=NTU_thesis, crop=false, float=true]{standalone} 2 | 3 | \begin{document} 4 | % I use LaTeX3 to automatically generate name table. 5 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 6 | % it will save contents to `\profsTableContent''. 7 | % You can ignore this block even you want make table by yourself. 8 | \ExplSyntaxOn 9 | 10 | \cs_new:Npn \sppmg_makeAbsTableContent:NNn #1#2#3 { 11 | % Copy prof. list from config.tex 12 | \clist_gclear_new:N \g_sppmg_profs_cl 13 | \clist_gset:NV \g_sppmg_profs_cl #1 14 | 15 | % get total number of prof. . Omitted language will not display. 16 | \int_gzero_new:N \g_sppmg_profTotal_int 17 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 18 | 19 | % NOTE: ``tabularx'' will processes its contents more than once 20 | % for calculate width, so ``gpop'' can't put in tabularx env. 21 | \tl_gclear_new:N \g_sppmg_tableContent_tl 22 | 23 | % Use a inline function for pop list , and save table content 24 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 25 | % Use ``for'' loop to get all prof. 26 | \int_step_inline:nnnn {1}{1}{\g_sppmg_profTotal_int}{ 27 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 28 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 29 | \int_case:nnTF {##1}{ 30 | {1} { 31 | \tl_if_eq:nnTF {#3}{zh}{ 32 | 指導教授: & \l_tmpa_tl & 博士 \exp_not:n {\\} 33 | }{ 34 | Advisor: & \l_tmpa_tl ,~Ph.D \exp_not:n {\\} 35 | } 36 | } 37 | % {2} { & & & 共同指導: & \l_tmpa_tl \exp_not:n {\\} } 38 | }{}{ 39 | \tl_if_eq:nnTF {#3}{zh}{ 40 | & \l_tmpa_tl & 博士 \exp_not:n {\\} 41 | }{ 42 | & \l_tmpa_tl ,~Ph.D \exp_not:n {\\} 43 | } 44 | } 45 | } 46 | } 47 | 48 | % Copy contents to LaTeX2e macro. 49 | \cs_gset_eq:NN #2 \g_sppmg_tableContent_tl 50 | } 51 | 52 | \sppmg_makeAbsTableContent:NNn \profsZh \profsTableContentAbsZh {zh} 53 | \sppmg_makeAbsTableContent:NNn \profsEn \profsTableContentAbsEn {en} 54 | 55 | \cs_undefine:N \sppmg_makeAbsTableContent:NNn 56 | 57 | \ExplSyntaxOff 58 | 59 | \def\fsUniversityZh{\fontsize{18}{27}\selectfont } 60 | \def\fsUniversityEn{\fontsize{16}{24}\selectfont } 61 | \def\fsDeptEn{\fontsize{14}{21}\selectfont } 62 | \def\fsTitle{\fontsize{18}{27}\selectfont } 63 | \def\fsNames{\fs{18}[1.5] } 64 | % --------define title page layout for thesis 65 | \rmfamily 66 | \ifthenelse{\boolean{disableChinese}}{}{ 67 | \CJKfamily{sf} % use roman font for en, kai(sf) for zh 68 | } 69 | \newgeometry{top=4cm, bottom=3cm, inner=2cm, outer=2cm} % only for titlepage 70 | \begin{spacing}{1.0} 71 | \begin{titlepage} 72 | % \null\vfill 73 | \begin{center} 74 | {\fsUniversityZh\textbf{國立臺灣大學~\deptZh} \par 75 | \textbf{\degreeZh 論文} \par} 76 | \vspace*{5mm} 77 | 78 | {\fsDeptEn \deptEn \par} 79 | {\fsUniversityEn 80 | National Taiwan University \par 81 | \degreeEn\ Thesis\par} 82 | \vspace*{10mm} 83 | 84 | {\fsTitle {\titleZh} \par} 85 | \vspace*{5mm} 86 | {\fsTitle {\titleEn} \par} 87 | \vspace*{10mm} 88 | 89 | {\ifx \logo\empty\vfill 90 | \else \includegraphics[height=30mm]{\logo}\vfill\vspace*{3mm} \par 91 | \fi} 92 | {\fsNames 93 | \authorZh \par 94 | \authorEn \par} 95 | \vspace*{10mm} 96 | 97 | {\fsNames \renewcommand{\arraystretch}{1} 98 | % If you want make table by yourself, replace ``\profsTableContent'' 99 | \begin{tabular}{ll@{\quad}r} 100 | \profsTableContentAbsZh 101 | \end{tabular}\par} 102 | \vspace*{5mm} 103 | 104 | {\fsNames \renewcommand{\arraystretch}{1} 105 | \begin{tabular}{ll} 106 | \profsTableContentAbsEn 107 | \end{tabular}\par} 108 | \vspace*{5ex} 109 | 110 | \vfill 111 | 112 | {\fsTitle \degreedateROC \par 113 | \degreedateEn \par} 114 | 115 | \ifthenelse{\boolean{printcopyright}} 116 | {\vspace*{2ex} 117 | 版權所有\copyright\ \author\ \copyyear \par} 118 | \end{center} 119 | \end{titlepage} 120 | \end{spacing} 121 | \restoregeometry 122 | \normalfont % use main font 123 | %--------end of title page for thesis 124 | \cleardoublepage 125 | 126 | \end{document} 127 | -------------------------------------------------------------------------------- /NCNU_patch/NCNU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a link to real class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NCNU_thesis}[2018/05/13 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10 | % Load base class 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \LoadClass{thesis_base} 14 | 15 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16 | % Redefine header of abstract 17 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18 | 19 | % I use LaTeX3 to automatically generate name table. 20 | % Below \ExplSyntaxOn to \ExplSyntaxOff perpare prof. table contents, 21 | % it will save contents to `\profsTableContent''. 22 | % You can ignore this block even you want make table by yourself. 23 | \ExplSyntaxOn 24 | 25 | 26 | \cs_new:Npn \sppmg_makeAbsTableContent:NNNn #1#2#3#4 { 27 | % Copy prof. list from config.tex 28 | \clist_gclear_new:N \g_sppmg_profs_cl 29 | \clist_gset:NV \g_sppmg_profs_cl #1 30 | 31 | % get total number of prof. . Omitted language will not display. 32 | \int_gzero_new:N \g_sppmg_profTotal_int 33 | \int_gset:Nn \g_sppmg_profTotal_int {\clist_count:N \g_sppmg_profs_cl} 34 | 35 | % NOTE: ``tabularx'' will processes its contents more than once 36 | % for calculate width, so ``gpop'' can't put in tabularx env. 37 | \tl_gclear_new:N \g_sppmg_tableContent_tl 38 | 39 | % For abstractHeader. pop Advisor first. 40 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 41 | \cs_gset_eq:NN #2 \l_tmpa_tl 42 | 43 | % Use a inline function for pop list , and save table content 44 | % Input(#1) switch 3 case, 1 = Advisor, 2 = committee member , 3+ is more. 45 | % Use ``for'' loop to get all prof. 46 | \int_step_inline:nnnn {2}{1}{\g_sppmg_profTotal_int}{ 47 | \clist_gpop:NNTF \g_sppmg_profs_cl \l_tmpa_tl {}{ \tl_clear:N \l_tmpa_tl} 48 | \tl_gput_right:Nx \g_sppmg_tableContent_tl { 49 | \int_case:nnTF {##1}{ 50 | % {1} {指導教授: & \l_tmpa_tl & 博士 & \exp_not:n {\\} } 51 | {2} { & & & 52 | \tl_if_eq:nnTF {#4}{zh}{共同指導:}{Co-advisor:} 53 | & \l_tmpa_tl \exp_not:n {\\} } 54 | }{}{ 55 | & & & & \l_tmpa_tl \exp_not:n {\\} 56 | } 57 | } 58 | } 59 | 60 | % Copy contents to LaTeX2e macro. 61 | \cs_gset_eq:NN #3 \g_sppmg_tableContent_tl 62 | } 63 | 64 | \sppmg_makeAbsTableContent:NNNn \profsZh \mprofZh \profsTableContentAbsZh {zh} 65 | \sppmg_makeAbsTableContent:NNNn \profsEn \mprofEn \profsTableContentAbsEn {en} 66 | 67 | \cs_undefine:N \sppmg_makeAbsTableContent:NNNn 68 | 69 | \ExplSyntaxOff 70 | 71 | % \AfterEndDocument{\label{LastPage}}%\pageref{LastPage} 72 | \usepackage[page,xspace]{totalcount} 73 | \def\mcShift{\hspace{-6.0pt}} % It's for align non-multicolumn cell . 74 | % \multicolumn{2}{l}{\mcShift 國立暨南國際大學 \collegeZh \deptZh} & 頁數:\pageref{LastPage} \\ 75 | \def\abstractHeaderZh{\centering 76 | % \abstractHeaderStyle\titleZh\par 77 | \vspace*{1ex} 78 | % \normalsize 79 | \footnotesize 80 | { \renewcommand{\arraystretch}{1} 81 | \begin{tabularx}{\textwidth}{l@{\hspace*{0.4em}}lXl@{\hspace*{0.4em}}l} 82 | % \multicolumn{4}{l}{\mcShift \titleZh } 83 | 論文名稱 & \multicolumn{4}{l}{\mcShift :\titleZh } \\ 84 | 校院系 & \multicolumn{3}{l}{\mcShift :國立暨南國際大學 \collegeZh{} \deptZh} & 頁數:\totalpages \\ 85 | 畢業時間 & :\degreeyearROC / \degreemonth & & 學位別 & :\deptZh \\ 86 | 研究生 & :\authorZh & & 指導教授 & : \mprofZh \\ 87 | 88 | \profsTableContentAbsZh 89 | 90 | \end{tabularx}\par } 91 | } 92 | \def\abstractHeaderEn{\centering 93 | % \abstractHeaderStyle\titleEn\par 94 | \vspace*{1ex} 95 | % \normalsize 96 | \footnotesize 97 | { \renewcommand{\arraystretch}{1} 98 | \begin{tabularx}{\textwidth}{l@{\hspace*{0.4em}}XXl@{\hspace*{0.4em}}l} 99 | 100 | Title of Thesis & \multicolumn{4}{l}{\mcShift : \titleEn } \\ 101 | Name of Institute & \multicolumn{3}{l}{\mcShift : 102 | \begin{tabular}[t]{l} 103 | National Chi Nan University \\ 104 | \collegeEn \\ 105 | \deptEn \\ 106 | \end{tabular} 107 | } & Pages: \totalpages \\ 108 | % Name of Institute & National Chi Nan University \collegeEn{} \deptEn & & & Pages: \pageref{LastPage} \\ 109 | Graduation Time & : \degreemonth / \degreeyearEn & & Degree Conferred & : \deptEn \\ 110 | 111 | Student Name & : \authorEn & & Advisor Name: & \mprofEn \\ 112 | 113 | \profsTableContentAbsEn 114 | 115 | \end{tabularx}\par } 116 | } 117 | 118 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 119 | % Redefine other configure 120 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 121 | 122 | \geometry{includefoot, top=2.3cm, bottom=3.5cm, inner=3cm, outer=2.5cm} 123 | 124 | \endinput % this must be the last command. -------------------------------------------------------------------------------- /NCU_en/macros_preamble.tex: -------------------------------------------------------------------------------- 1 | % This file is common preamble region, 2 | % it will load in .cls, before hyperref and cleveref package. 3 | % If your package need load after ``hyperref'' (to get link function), 4 | % please write in ``\def\macrosAfterHyperref'' 5 | % Note: Use \RequirePackage{package} in this file to load package. 6 | % Use \usepackage{package} in preamble of each other tex . 7 | % -------------------------------------------------- 8 | % blindtext is used to generating dummy text for testing. 9 | % see https://texblog.org/2011/02/26/generating-dummy-textblindtext-with-latex-for-testing/ 10 | % \RequirePackage{blindtext} 11 | 12 | 13 | % Load packages after ``hyperref'' 14 | \def\macrosAfterHyperref{ 15 | % demo , uncomment below 2 lines for use ``glossaries'' with link. 16 | % \RequirePackage[toc]{glossaries} 17 | % \makeglossaries 18 | } 19 | 20 | 21 | % Bibliography management. 22 | % If you use BibLaTeX , use \addbibresource inside below \ifnum block. 23 | % If you use BibTeX , set \bibliography in bibliography.tex 24 | \ifnum \bibManType=2 25 | % 2 == biber / BibLaTeX 26 | % Add your bib file here, one \addbibresource one file. 27 | \addbibresource{demo.bib} 28 | \fi 29 | 30 | 31 | % A example for define unit command. 32 | \providecommand{\temp}[1]{$\SI{#1}{\degreeCelsius}$} % \temp{30} -> 30 °C 33 | \providecommand{\symumm}[1]{$\SI{#1}{\milli\metre}$} % \symumm{3} -> 3 mm 34 | \providecommand{\symums}[1]{$\SI{#1}{\milli\second}$} % \symums{5} -> 5 ms 35 | \providecommand{\symumM}[1]{$\SI{#1}{\milli\Molar}$} % \symumM{1} -> 1 mM 36 | \providecommand{\symumv}[1]{$\SI{#1}{\milli\volt}$} % \symumv{1} -> 1 mv 37 | \providecommand{\symuma}[1]{$\SI{#1}{\milli\ampere}$} % \symuma{1} -> 1 ma 38 | 39 | \providecommand{\abs}[1]{\lvert #1 \rvert } % \abs{x} -> |x|, Required package: amsmath 40 | 41 | 42 | % for todo colors(ref: https://tex.stackexchange.com/a/178806) 43 | \NewDocumentCommand{\todoUnsure}{O{} +m}{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}} 44 | \NewDocumentCommand{\todoChange}{O{} +m}{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}} 45 | \NewDocumentCommand{\todoInfo}{O{} +m}{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}} 46 | \NewDocumentCommand{\todoImprovement}{O{} +m}{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}} 47 | \NewDocumentCommand{\todoThiswillnotshowUnsure}{O{} +m}{\todo[disable,#1]{#2}} 48 | 49 | 50 | %%%%%%%% for codes %%%%%%%%% 51 | % see https://www.sharelatex.com/learn/Code_listing 52 | \definecolor{codegreen}{rgb}{0,0.6,0} 53 | \definecolor{codegray}{rgb}{0.5,0.5,0.5} 54 | \definecolor{codepurple}{rgb}{0.58,0,0.82} 55 | \definecolor{codebgcolor}{rgb}{0.95,0.95,0.92} 56 | 57 | \lstdefinestyle{commonStyle}{ 58 | frame=single, 59 | %backgroundcolor=\color{codebgcolor}, 60 | commentstyle=\color{codegreen}, 61 | keywordstyle=\color{blue}, 62 | numberstyle=\footnotesize\color{codegray}, 63 | stringstyle=\color{codepurple}, 64 | basicstyle=\ttfamily\small\setstretch{1.0}, 65 | breakatwhitespace=false, 66 | breaklines=true, 67 | captionpos=t, 68 | caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 69 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 70 | keepspaces=true, 71 | xleftmargin=1cm, 72 | %xrightmargin=1cm, 73 | numbers=left, 74 | numbersep=5pt, 75 | showspaces=false, 76 | showstringspaces=false, 77 | showtabs=false, 78 | tabsize=4 79 | } 80 | 81 | \lstdefinestyle{consoleStyle}{ 82 | frame=single, 83 | %backgroundcolor=\color{codebgcolor}, 84 | commentstyle=\color{codegreen}, 85 | keywordstyle=\color{blue}, 86 | numberstyle=\footnotesize\color{codegray}, 87 | stringstyle=\color{codepurple}, 88 | basicstyle=\ttfamily\small\setstretch{1.0}, 89 | breakatwhitespace=false, 90 | breaklines=true, 91 | captionpos=t, 92 | %caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 93 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 94 | keepspaces=true, 95 | xleftmargin=0cm, 96 | numbers=none, 97 | showspaces=false, 98 | showstringspaces=false, 99 | showtabs=false, 100 | tabsize=4 101 | } 102 | 103 | \lstdefinestyle{LatexStyle}{ 104 | language={[LaTeX]TeX}, 105 | inputpath={./}, % must same as root tex 106 | frame=single, 107 | %backgroundcolor=\color{backcolour}, 108 | commentstyle=\color{codegreen}, 109 | keywordstyle=\color{blue}, 110 | numberstyle=\scriptsize\color{codegray}, 111 | stringstyle=\color{codepurple}, 112 | basicstyle=\ttfamily\footnotesize\setstretch{1.0}, 113 | breakatwhitespace=false, 114 | breaklines=true, 115 | captionpos=t, 116 | %caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 117 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 118 | keepspaces=true, 119 | xleftmargin=1cm, 120 | %xrightmargin=1cm, 121 | numbers=left, 122 | numbersep=5pt, 123 | showspaces=false, 124 | showstringspaces=false, 125 | showtabs=false, 126 | tabsize=4 127 | } 128 | 129 | \lstset{style=commonStyle} % default style 130 | \renewcommand{\lstlistingname}{Code} % change title of caption to ``Code'' from ``Listing'' 131 | -------------------------------------------------------------------------------- /NCU_zh/macros_preamble.tex: -------------------------------------------------------------------------------- 1 | % This file is common preamble region, 2 | % it will load in .cls, before hyperref and cleveref package. 3 | % If your package need load after ``hyperref'' (to get link function), 4 | % please write in ``\def\macrosAfterHyperref'' 5 | % Note: Use \RequirePackage{package} in this file to load package. 6 | % Use \usepackage{package} in preamble of each other tex . 7 | % -------------------------------------------------- 8 | % blindtext is used to generating dummy text for testing. 9 | % see https://texblog.org/2011/02/26/generating-dummy-textblindtext-with-latex-for-testing/ 10 | % \RequirePackage{blindtext} 11 | 12 | 13 | % Load packages after ``hyperref'' 14 | \def\macrosAfterHyperref{ 15 | % demo , uncomment below 2 lines for use ``glossaries'' with link. 16 | % \RequirePackage[toc]{glossaries} 17 | % \makeglossaries 18 | } 19 | 20 | 21 | % Bibliography management. 22 | % If you use BibLaTeX , use \addbibresource inside below \ifnum block. 23 | % If you use BibTeX , set \bibliography in bibliography.tex 24 | \ifnum \bibManType=2 25 | % 2 == biber / BibLaTeX 26 | % Add your bib file here, one \addbibresource one file. 27 | \addbibresource{demo.bib} 28 | \fi 29 | 30 | 31 | % A example for define unit command. 32 | \providecommand{\temp}[1]{$\SI{#1}{\degreeCelsius}$} % \temp{30} -> 30 °C 33 | \providecommand{\symumm}[1]{$\SI{#1}{\milli\metre}$} % \symumm{3} -> 3 mm 34 | \providecommand{\symums}[1]{$\SI{#1}{\milli\second}$} % \symums{5} -> 5 ms 35 | \providecommand{\symumM}[1]{$\SI{#1}{\milli\Molar}$} % \symumM{1} -> 1 mM 36 | \providecommand{\symumv}[1]{$\SI{#1}{\milli\volt}$} % \symumv{1} -> 1 mv 37 | \providecommand{\symuma}[1]{$\SI{#1}{\milli\ampere}$} % \symuma{1} -> 1 ma 38 | 39 | \providecommand{\abs}[1]{\lvert #1 \rvert } % \abs{x} -> |x|, Required package: amsmath 40 | 41 | 42 | % for todo colors(ref: https://tex.stackexchange.com/a/178806) 43 | \NewDocumentCommand{\todoUnsure}{O{} +m}{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}} 44 | \NewDocumentCommand{\todoChange}{O{} +m}{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}} 45 | \NewDocumentCommand{\todoInfo}{O{} +m}{\todo[linecolor=OliveGreen,backgroundcolor=OliveGreen!25,bordercolor=OliveGreen,#1]{#2}} 46 | \NewDocumentCommand{\todoImprovement}{O{} +m}{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}} 47 | \NewDocumentCommand{\todoThiswillnotshowUnsure}{O{} +m}{\todo[disable,#1]{#2}} 48 | 49 | 50 | %%%%%%%% for codes %%%%%%%%% 51 | % see https://www.sharelatex.com/learn/Code_listing 52 | \definecolor{codegreen}{rgb}{0,0.6,0} 53 | \definecolor{codegray}{rgb}{0.5,0.5,0.5} 54 | \definecolor{codepurple}{rgb}{0.58,0,0.82} 55 | \definecolor{codebgcolor}{rgb}{0.95,0.95,0.92} 56 | 57 | \lstdefinestyle{commonStyle}{ 58 | frame=single, 59 | %backgroundcolor=\color{codebgcolor}, 60 | commentstyle=\color{codegreen}, 61 | keywordstyle=\color{blue}, 62 | numberstyle=\footnotesize\color{codegray}, 63 | stringstyle=\color{codepurple}, 64 | basicstyle=\ttfamily\small\setstretch{1.0}, 65 | breakatwhitespace=false, 66 | breaklines=true, 67 | captionpos=t, 68 | caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 69 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 70 | keepspaces=true, 71 | xleftmargin=1cm, 72 | %xrightmargin=1cm, 73 | numbers=left, 74 | numbersep=5pt, 75 | showspaces=false, 76 | showstringspaces=false, 77 | showtabs=false, 78 | tabsize=4 79 | } 80 | 81 | \lstdefinestyle{consoleStyle}{ 82 | frame=single, 83 | %backgroundcolor=\color{codebgcolor}, 84 | commentstyle=\color{codegreen}, 85 | keywordstyle=\color{blue}, 86 | numberstyle=\footnotesize\color{codegray}, 87 | stringstyle=\color{codepurple}, 88 | basicstyle=\ttfamily\small\setstretch{1.0}, 89 | breakatwhitespace=false, 90 | breaklines=true, 91 | captionpos=t, 92 | %caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 93 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 94 | keepspaces=true, 95 | xleftmargin=0cm, 96 | numbers=none, 97 | showspaces=false, 98 | showstringspaces=false, 99 | showtabs=false, 100 | tabsize=4 101 | } 102 | 103 | \lstdefinestyle{LatexStyle}{ 104 | language={[LaTeX]TeX}, 105 | inputpath={./}, % must same as root tex 106 | frame=single, 107 | %backgroundcolor=\color{backcolour}, 108 | commentstyle=\color{codegreen}, 109 | keywordstyle=\color{blue}, 110 | numberstyle=\scriptsize\color{codegray}, 111 | stringstyle=\color{codepurple}, 112 | basicstyle=\ttfamily\footnotesize\setstretch{1.0}, 113 | breakatwhitespace=false, 114 | breaklines=true, 115 | captionpos=t, 116 | %caption={\protect\filename@parse{\lstname}\protect\filename@base\text{.}\protect‌​\filename@ext}, 117 | % http://tex.stackexchange.com/questions/174541/only-get-filename-and-extension-of-listing-not-whole-path 118 | keepspaces=true, 119 | xleftmargin=1cm, 120 | %xrightmargin=1cm, 121 | numbers=left, 122 | numbersep=5pt, 123 | showspaces=false, 124 | showstringspaces=false, 125 | showtabs=false, 126 | tabsize=4 127 | } 128 | 129 | \lstset{style=commonStyle} % default style 130 | \renewcommand{\lstlistingname}{Code} % change title of caption to ``Code'' from ``Listing'' 131 | -------------------------------------------------------------------------------- /NTU_patch/NTU_thesis.cls: -------------------------------------------------------------------------------- 1 | % This class is a patch to NCU class. 2 | \NeedsTeXFormat{LaTeX2e} 3 | \ProvidesClass{NTU_thesis}[2018/01/18 by sppmg] 4 | % pass no defined option to book class. 5 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{thesis_base}} 6 | % terminates the option processing. 7 | \ProcessOptions\relax 8 | 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10 | % LaTeX tools (before base class) 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \RequirePackage{ifthen} 14 | \RequirePackage{xparse} 15 | 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 | % Load config.tex 18 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19 | \ifx\undefined\configured 20 | % --------- Define option for config.tex ---------- 21 | \provideboolean{publish} % publish ? Set true before publish. 發怖前設true 22 | \provideboolean{disableChinese} % Disable chinese, for English user. 23 | \provideboolean{printcopyright} % print copyright text on titlepage or cover. 24 | \provideboolean{pdfLinkBoxDisplay} % Draw box on link in the pdf viewer. 25 | \provideboolean{bibStyleNameYear} % bibliography use name,year to sort and cite. 26 | \provideboolean{reallyBlankPage} % Really blank pages between chapters 27 | \provideboolean{tocEntryToToc} % Add TOC entry to TOC 28 | \provideboolean{lofEntryToToc} % Add LOF entry to TOC 29 | \provideboolean{lotEntryToToc} % Add LOT entry to TOC 30 | 31 | % --------- Load config.tex ---------- 32 | \IfFileExists{./config.tex}{\input{./config.tex}\gdef\configured{}}{} % search only in the current directory use ./file 33 | 34 | % Easy check Chinese sitting. It will not disable Chinese font. 35 | % Usage: \ifzh{zh}{non-zh} or \ifzh{zh} 36 | \ProvideDocumentCommand{\ifzh}{+m +G{}}{ 37 | \ifthenelse{\NOT \boolean{disableChinese} \AND \equal{\lang}{zh}}{#1}{#2} 38 | } 39 | \fi 40 | 41 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 42 | % Presetting for NTU 43 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 44 | 45 | \ifzh{ % TOC 章級標號形式設定 46 | \gdef\thecontentslabel@chapter{第\,\zhnumber{\thecontentslabel}\,章} 47 | \gdef\thecontentslabel@chapter@app{\appendixname\thecontentslabel} 48 | }{ 49 | \gdef\thecontentslabel@chapter{\thecontentslabel} 50 | \gdef\thecontentslabel@chapter@app{\thecontentslabel} 51 | } 52 | 53 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 | % Load base class 55 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 56 | \LoadClass{thesis_base} 57 | 58 | %%%%% Load additional packages and commands. 59 | 60 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 61 | % Change setting for NTU 62 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 63 | % ---------------------- Margin of content --------------------------- 64 | \geometry{top=3cm, bottom=2cm, inner=3cm, outer=3cm} 65 | 66 | % ---------------------- Chapter title style --------------------------- 67 | \ifzh{ 68 | \patchcmd{\@makechapterhead} 69 | {\zhnumber{\thechapter}、\makebox[0.5em]{}} 70 | {第\zhnumber{\thechapter}章\makebox[0.5em]{}}{}{} 71 | } 72 | % ---------------------- Page header --------------------------- 73 | \ifzh{ 74 | % \mainmatter 75 | \patchcmd{\chaptermark} 76 | {\zhnumber{\thechapter}、} 77 | {第\zhnumber{\thechapter}章}{}{} 78 | % \appendix 79 | \patchcmd{\chaptermark} 80 | {\thechapter、} 81 | {附錄\thechapter\enspace}{}{} 82 | } 83 | 84 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 85 | % Command for NTU 86 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 87 | 88 | % ---------------------- Vertical CJK --------------------------- 89 | \ifthenelse{\boolean{disableChinese}}{}{ 90 | % Vertical with fixed base line in a rotatebox box. 91 | % ref: http://tex.stackexchange.com/questions/11913/baseline-shift-with-fontspec 92 | \newCJKfontfamily{\vCJKFamily}[Vertical=RotatedGlyphs]{\CJKsansfont} 93 | % Fix base line of Vertical CJK 94 | \def\vCJKShiftSymbol#1{\raise.35em\hbox{#1}} 95 | \def\vCJKBL{\let\CJKsymbol\vCJKShiftSymbol 96 | \let\CJKpunctsymbol\vCJKShiftSymbol} 97 | \def\vCJK#1{\vCJKBL\vCJKFamily\rotatebox{270}{#1}} % Short macro to do all thing of vertical typing. 98 | } 99 | 100 | 101 | % ---------------------- Book spine --------------------------- 102 | % Add book spine in this page 103 | \newcommand{\addBookSpineThisPage}{ 104 | \ifthenelse{\boolean{disableChinese}}{}{ 105 | \AddToShipoutPictureFG*{% 106 | \AtPageUpperLeft{% 107 | \put(\LenToUnit{1.5mm},\LenToUnit{0mm}){\vCJK { 108 | \renewcommand{\arraystretch}{1} 109 | \setstretch{1} 110 | \begin{tabularx}{290mm}{lXcXcXcXrl} 111 | \fs{12}國立臺灣大學 & 112 | \multirow{2}{*}{} & 113 | \multirow{2}{*}{\fs{12}\degreeZh 論文} & 114 | \multirow{2}{*}{} & 115 | \multirow{2}{*}{\fs{14}\title} & 116 | \multirow{2}{*}{} & 117 | \multirow{2}{*}{\fs{14}\author \quad 撰} & 118 | \multirow{2}{*}{} & 119 | \multirow{2}{*}{\rotatebox[origin=r]{90}{\fs{14}\degreeyearROC}} & 120 | \multirow{2}{*}{\raisebox{-0.6em}{\rotatebox[origin=r]{90}{\fs{14}\degreesemesterROC}}} \\ 121 | \fs{12}\deptZh & & & & & & & & & \\ % 122 | \end{tabularx} 123 | } 124 | \vrule 125 | }} % 126 | } 127 | }% disableChinese 128 | } 129 | 130 | 131 | % ---------------------- DOI --------------------------- 132 | % Add DOI to every page after this command. 133 | \newcommand{\startDOI}{ 134 | \ifx\doi\empty\else 135 | \AddToShipoutPictureBG{% 136 | \AtPageUpperLeft{% 137 | \makebox[\paperwidth][r]{% Move over to right so right aligns with right of text block 138 | \raisebox{-\paperheight}{% Drop down so top aligns with top of text block 139 | \put(\LenToUnit{-1cm},\LenToUnit{1cm}){% 140 | \makebox[0pt][r]{\fs{12}\href{http://dx.doi.org/\doi}{doi:\doi}} 141 | } 142 | }} 143 | }% 144 | } 145 | \fi} 146 | 147 | 148 | \endinput % this must be the last command. 149 | -------------------------------------------------------------------------------- /NCU_en/demo.bib: -------------------------------------------------------------------------------- 1 | 2 | @online{__????, 3 | title = {大家來學 {LaTeX}, latex123}, 4 | url = {http://www.cs.pu.edu.tw/~wckuo/doc/latex123/latex123.html}, 5 | urldate = {2016-10-10}, 6 | file = {大家來學 LaTeX, latex123:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/8JMIVZ4A/latex123.html:text/html} 7 | } 8 | 9 | @online{_sppmg/tw_thesis_template_????, 10 | title = {sppmg/{TW}\_Thesis\_Template}, 11 | url = {https://github.com/sppmg/TW_Thesis_Template}, 12 | abstract = {{TW}\_Thesis\_Template - The {LaTeX} Template for Thesis}, 13 | titleaddon = {{GitHub}}, 14 | urldate = {2016-10-23}, 15 | file = {Snapshot:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/73ZETBNK/TW_Thesis_Template.html:text/html} 16 | } 17 | 18 | @book{mittelbach_latex_2004, 19 | location = {Boston}, 20 | edition = {2nd edition}, 21 | title = {The {LaTeX} Companion}, 22 | isbn = {978-0-201-36299-2}, 23 | abstract = {This is the digial version of the printed book (Copyright © 2004). The {LaTeX} Companion has long been the essential resource for anyone using {LaTeX} to create high-quality printed documents. This completely updated edition brings you all the latest information about {LaTeX} and the vast range of add-on packages now available--over 200 are covered! Full of new tips and tricks for using {LaTeX} in both traditional and modern typesetting, this book will also show you how to customize layout features to your own needs--from phrases and paragraphs to headings, lists, and pages. Inside, you will find: Expert advice on using {LaTeX}'s basic formatting tools to create all types of publications--from memos to encyclopedias In-depth coverage of important extension packages for tabular and technical typesetting, floats and captions, multicolumn layouts--including reference guides and discussions of the underlying typographic and {TeXnical} concepts Detailed techniques for generating and typesetting contents lists, bibliographies, indexes, etc. Tips and tricks for {LaTeX} programmers and systems support New to this edition: Nearly 1,000 fully tested examples that illustrate the text and solve typographical and technical problems--all ready to run! An additional chapter on citations and bibliographies Expanded material on the setup and use of fonts to access a huge collection of glyphs, and to typeset text from a wide range of languages and cultures Major new packages for graphics, "verbatim" listings, floats, and page layout Full coverage of the latest packages for all types ofdocuments--mathematical, multilingual, and many more Detailed help on all error messages, including those troublesome low-level {TeX} errors Like its predecessor, The {LaTeX} Companion, Second Edition, is an indispensable reference for anyone wishing to use {LaTeX} productively. The accompanying {CD}-{ROM} contains a complete plug-and-play {LaTeX} installation, including all the packages and examples featured in the book.}, 24 | pagetotal = {1120}, 25 | publisher = {Addison-Wesley Professional}, 26 | author = {Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris}, 27 | date = {2004-05-02} 28 | } 29 | 30 | @article{session_genome_2016, 31 | title = {Genome evolution in the allotetraploid frog Xenopus laevis}, 32 | volume = {538}, 33 | rights = {© 2016 Macmillan Publishers Limited, part of Springer Nature. All rights reserved.}, 34 | issn = {0028-0836}, 35 | url = {http://www.nature.com/nature/journal/v538/n7625/full/nature19840.html}, 36 | doi = {10.1038/nature19840}, 37 | abstract = {To explore the origins and consequences of tetraploidy in the African clawed frog, we sequenced the Xenopus laevis genome and compared it to the related diploid X. tropicalis genome. We characterize the allotetraploid origin of X. laevis by partitioning its genome into two homoeologous subgenomes, marked by distinct families of ‘fossil’ transposable elements. On the basis of the activity of these elements and the age of hundreds of unitary pseudogenes, we estimate that the two diploid progenitor species diverged around 34 million years ago (Ma) and combined to form an allotetraploid around 17–18 Ma. More than 56\% of all genes were retained in two homoeologous copies. Protein function, gene expression, and the amount of conserved flanking sequence all correlate with retention rates. The subgenomes have evolved asymmetrically, with one chromosome set more often preserving the ancestral state and the other experiencing more gene loss, deletion, rearrangement, and reduced gene expression.}, 38 | pages = {336--343}, 39 | number = {7625}, 40 | journaltitle = {Nature}, 41 | shortjournal = {Nature}, 42 | author = {Session, Adam M. and Uno, Yoshinobu and Kwon, Taejoon and Chapman, Jarrod A. and Toyoda, Atsushi and Takahashi, Shuji and Fukui, Akimasa and Hikosaka, Akira and Suzuki, Atsushi and Kondo, Mariko and van Heeringen, Simon J. and Quigley, Ian and Heinz, Sven and Ogino, Hajime and Ochi, Haruki and Hellsten, Uffe and Lyons, Jessica B. and Simakov, Oleg and Putnam, Nicholas and Stites, Jonathan and Kuroki, Yoko and Tanaka, Toshiaki and Michiue, Tatsuo and Watanabe, Minoru and Bogdanovic, Ozren and Lister, Ryan and Georgiou, Georgios and Paranjpe, Sarita S. and van Kruijsbergen, Ila and Shu, Shengquiang and Carlson, Joseph and Kinoshita, Tsutomu and Ohta, Yuko and Mawaribuchi, Shuuji and Jenkins, Jerry and Grimwood, Jane and Schmutz, Jeremy and Mitros, Therese and Mozaffari, Sahar V. and Suzuki, Yutaka and Haramoto, Yoshikazu and Yamamoto, Takamasa S. and Takagi, Chiyo and Heald, Rebecca and Miller, Kelly and Haudenschild, Christian and Kitzman, Jacob and Nakayama, Takuya and Izutsu, Yumi and Robert, Jacques and Fortriede, Joshua and Burns, Kevin and Lotay, Vaneet and Karimi, Kamran and Yasuoka, Yuuri and Dichmann, Darwin S. and Flajnik, Martin F. and Houston, Douglas W. and Shendure, Jay and {DuPasquier}, Louis and Vize, Peter D. and Zorn, Aaron M. and Ito, Michihiko and Marcotte, Edward M. and Wallingford, John B. and Ito, Yuzuru and Asashima, Makoto and Ueno, Naoto and Matsuda, Yoichi and Veenstra, Gert Jan C. and Fujiyama, Asao and Harland, Richard M. and Taira, Masanori and Rokhsar, Daniel S.}, 43 | urldate = {2016-10-24}, 44 | date = {2016-10-20}, 45 | langid = {english}, 46 | keywords = {Genome evolution, Molecular evolution}, 47 | file = {Full Text PDF:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/D42SNAPG/Session 等。 - 2016 - Genome evolution in the allotetraploid frog Xenopu.pdf:application/pdf;Snapshot:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/XUBNDCPA/nature19840.html:text/html} 48 | } -------------------------------------------------------------------------------- /NCU_zh/demo.bib: -------------------------------------------------------------------------------- 1 | 2 | @online{__????, 3 | title = {大家來學 {LaTeX}, latex123}, 4 | url = {http://www.cs.pu.edu.tw/~wckuo/doc/latex123/latex123.html}, 5 | urldate = {2016-10-10}, 6 | file = {大家來學 LaTeX, latex123:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/8JMIVZ4A/latex123.html:text/html} 7 | } 8 | 9 | @online{_sppmg/tw_thesis_template_????, 10 | title = {sppmg/{TW}\_Thesis\_Template}, 11 | url = {https://github.com/sppmg/TW_Thesis_Template}, 12 | abstract = {{TW}\_Thesis\_Template - The {LaTeX} Template for Thesis}, 13 | titleaddon = {{GitHub}}, 14 | urldate = {2016-10-23}, 15 | file = {Snapshot:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/73ZETBNK/TW_Thesis_Template.html:text/html} 16 | } 17 | 18 | @book{mittelbach_latex_2004, 19 | location = {Boston}, 20 | edition = {2nd edition}, 21 | title = {The {LaTeX} Companion}, 22 | isbn = {978-0-201-36299-2}, 23 | abstract = {This is the digial version of the printed book (Copyright © 2004). The {LaTeX} Companion has long been the essential resource for anyone using {LaTeX} to create high-quality printed documents. This completely updated edition brings you all the latest information about {LaTeX} and the vast range of add-on packages now available--over 200 are covered! Full of new tips and tricks for using {LaTeX} in both traditional and modern typesetting, this book will also show you how to customize layout features to your own needs--from phrases and paragraphs to headings, lists, and pages. Inside, you will find: Expert advice on using {LaTeX}'s basic formatting tools to create all types of publications--from memos to encyclopedias In-depth coverage of important extension packages for tabular and technical typesetting, floats and captions, multicolumn layouts--including reference guides and discussions of the underlying typographic and {TeXnical} concepts Detailed techniques for generating and typesetting contents lists, bibliographies, indexes, etc. Tips and tricks for {LaTeX} programmers and systems support New to this edition: Nearly 1,000 fully tested examples that illustrate the text and solve typographical and technical problems--all ready to run! An additional chapter on citations and bibliographies Expanded material on the setup and use of fonts to access a huge collection of glyphs, and to typeset text from a wide range of languages and cultures Major new packages for graphics, "verbatim" listings, floats, and page layout Full coverage of the latest packages for all types ofdocuments--mathematical, multilingual, and many more Detailed help on all error messages, including those troublesome low-level {TeX} errors Like its predecessor, The {LaTeX} Companion, Second Edition, is an indispensable reference for anyone wishing to use {LaTeX} productively. The accompanying {CD}-{ROM} contains a complete plug-and-play {LaTeX} installation, including all the packages and examples featured in the book.}, 24 | pagetotal = {1120}, 25 | publisher = {Addison-Wesley Professional}, 26 | author = {Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris}, 27 | date = {2004-05-02} 28 | } 29 | 30 | @article{session_genome_2016, 31 | title = {Genome evolution in the allotetraploid frog Xenopus laevis}, 32 | volume = {538}, 33 | rights = {© 2016 Macmillan Publishers Limited, part of Springer Nature. All rights reserved.}, 34 | issn = {0028-0836}, 35 | url = {http://www.nature.com/nature/journal/v538/n7625/full/nature19840.html}, 36 | doi = {10.1038/nature19840}, 37 | abstract = {To explore the origins and consequences of tetraploidy in the African clawed frog, we sequenced the Xenopus laevis genome and compared it to the related diploid X. tropicalis genome. We characterize the allotetraploid origin of X. laevis by partitioning its genome into two homoeologous subgenomes, marked by distinct families of ‘fossil’ transposable elements. On the basis of the activity of these elements and the age of hundreds of unitary pseudogenes, we estimate that the two diploid progenitor species diverged around 34 million years ago (Ma) and combined to form an allotetraploid around 17–18 Ma. More than 56\% of all genes were retained in two homoeologous copies. Protein function, gene expression, and the amount of conserved flanking sequence all correlate with retention rates. The subgenomes have evolved asymmetrically, with one chromosome set more often preserving the ancestral state and the other experiencing more gene loss, deletion, rearrangement, and reduced gene expression.}, 38 | pages = {336--343}, 39 | number = {7625}, 40 | journaltitle = {Nature}, 41 | shortjournal = {Nature}, 42 | author = {Session, Adam M. and Uno, Yoshinobu and Kwon, Taejoon and Chapman, Jarrod A. and Toyoda, Atsushi and Takahashi, Shuji and Fukui, Akimasa and Hikosaka, Akira and Suzuki, Atsushi and Kondo, Mariko and van Heeringen, Simon J. and Quigley, Ian and Heinz, Sven and Ogino, Hajime and Ochi, Haruki and Hellsten, Uffe and Lyons, Jessica B. and Simakov, Oleg and Putnam, Nicholas and Stites, Jonathan and Kuroki, Yoko and Tanaka, Toshiaki and Michiue, Tatsuo and Watanabe, Minoru and Bogdanovic, Ozren and Lister, Ryan and Georgiou, Georgios and Paranjpe, Sarita S. and van Kruijsbergen, Ila and Shu, Shengquiang and Carlson, Joseph and Kinoshita, Tsutomu and Ohta, Yuko and Mawaribuchi, Shuuji and Jenkins, Jerry and Grimwood, Jane and Schmutz, Jeremy and Mitros, Therese and Mozaffari, Sahar V. and Suzuki, Yutaka and Haramoto, Yoshikazu and Yamamoto, Takamasa S. and Takagi, Chiyo and Heald, Rebecca and Miller, Kelly and Haudenschild, Christian and Kitzman, Jacob and Nakayama, Takuya and Izutsu, Yumi and Robert, Jacques and Fortriede, Joshua and Burns, Kevin and Lotay, Vaneet and Karimi, Kamran and Yasuoka, Yuuri and Dichmann, Darwin S. and Flajnik, Martin F. and Houston, Douglas W. and Shendure, Jay and {DuPasquier}, Louis and Vize, Peter D. and Zorn, Aaron M. and Ito, Michihiko and Marcotte, Edward M. and Wallingford, John B. and Ito, Yuzuru and Asashima, Makoto and Ueno, Naoto and Matsuda, Yoichi and Veenstra, Gert Jan C. and Fujiyama, Asao and Harland, Richard M. and Taira, Masanori and Rokhsar, Daniel S.}, 43 | urldate = {2016-10-24}, 44 | date = {2016-10-20}, 45 | langid = {english}, 46 | keywords = {Genome evolution, Molecular evolution}, 47 | file = {Full Text PDF:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/D42SNAPG/Session 等。 - 2016 - Genome evolution in the allotetraploid frog Xenopu.pdf:application/pdf;Snapshot:/home/sppmg/.mozilla/firefox/onxyd4fz.zoteroDemo/zotero/storage/XUBNDCPA/nature19840.html:text/html} 48 | } -------------------------------------------------------------------------------- /NCU_zh/config.tex: -------------------------------------------------------------------------------- 1 | %%%%% build setting | 編譯設定 %%%%% 2 | \setboolean{publish}{false} % {true}/{false} Set true before publish. 發佈前設true 3 | \def\lang{zh} % {zh}/{en} Set main language. 4 | \setboolean{disableChinese}{false} % {true}/{false} Disable Chinese, for English user who don't have Chinese fonts. 5 | 6 | \synctex=1 % Enable SyncTeX. 7 | 8 | 9 | %%%%% Information of your document. | 定義文件資訊 %%%%% 10 | \def\deptshort {物理} 11 | \def\dept {物理研究所}%XX學系XXX碩士班(請參考「中央大學學位論文撰寫體例參考」附錄) 12 | \def\degree {碩士} % 碩士/博士 13 | \def\titleZh {中央大學LaTeX論文樣板(中文)} % Chinese title 14 | \def\titleEn {NCU LaTeX Thesis Template(Chinese)} % English title 15 | \def\title {\titleZh} % Main title, default Chinese title 16 | \def\subtitle {\titleEn} % Subtitle, default English title, empty allowed. 17 | \def\logo {} % logo on titlepage. Watermark see below. 中央無校徽在封面。若你想加,樣板已附上,填入 ``logo-NCU.jpg'' 即可 18 | \def\author {君の名は。} 19 | % \profs is professor's comma separated list. First is advisor , comma use ``{,}'' 20 | \def\profs {你的指導教授, 你的共同指導, ZUO{,} GONG-DE, 可再加更多人\dots} 21 | \def\degreedate{中~華~民~國~一百零七~年~六~月} 22 | \def\copyyear {2012-2013} 23 | 24 | \setboolean{printcopyright}{false} % {true}/{false} print copyright text on titlepage or cover. 25 | 26 | \def\keywordsZh{關鍵字, 論文, 樣板, 讓我畢業} 27 | \def\keywordsEn{Keyword, Thesis, Template, Graduate me} 28 | 29 | 30 | %%%%% Set letters filename | 設定插入文件 %%%%% 31 | % This setting for main.tex default letters. 32 | % It will not insert PDF if file non-exist or empty . 33 | % 此為 main.tex 預設插入之 PDF,檔案不存在或空白則不插入。 34 | 35 | % 碩博士論文電子檔授權書 Authorization Letter (for electronic) 36 | \def\letterAuthEl{letter_authorization.pdf} 37 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 38 | \def\letterPubReq{letter_publication_request.pdf} 39 | % 指導教授推薦書 40 | \def\letterRecom {letter_recommendation.pdf} 41 | % 口試委員審定書 42 | \def\letterVerif {letter_verification.pdf} 43 | 44 | 45 | %%%%% Bibliography | 文獻列表 %%%%% 46 | \def\bibManType{2} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX 47 | \def\bibStyle{ieee} % Default ``ieee'' with BibLaTeX. If you use BibTeX change to ``ieeetr''. 48 | % BibLaTeX ref: https://www.sharelatex.com/learn/Biblatex_bibliography_styles 49 | % BibTeX ref: https://www.sharelatex.com/learn/Bibtex_bibliography_styles 50 | \setboolean{bibStyleNameYear}{false} % {true}/{false} true for use name,year to sort and cite.(If you want use custom option in .cls, set false here. ) 51 | 52 | 53 | %%%%% Set OS | 設定作業系統 %%%%% 54 | % It will overwrite \OS if your LaTeX compile parameter has ``-shell-escape''(Texstudio default enable). 55 | % Linux user: keep setting or add ``-shell-escape'' to compiler. 56 | % Mac OS X user: Set to mac or add ``-shell-escape'' to compiler. 57 | % Windows user: Don't need change setting. 58 | \def\OS{linux} % {linux}/{mac}/{win}, only effect auto select CJK font.(CJK means Chinese, Japanese, and Korean) 59 | 60 | 61 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 62 | % Font size or style | 字體大小、風格 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | 65 | %%%%% Set font | 設定中英文字型 %%%%% 66 | % Keep empty for default font. CJK font must set OS for auto select. 67 | % Setting by name of font(English will be better) or font filename. 68 | % Linux 利用指令 fc-list :lang=zh 來查詢可以用的字體名稱。 69 | % Windows 使用內建字型管理查詢。建議填英文字型名稱。 70 | \def\mainfont {} % default use Latin Modern Roman (lmodern pkg.) 71 | \def\sansfont {} 72 | \def\monofont {} 73 | \def\CJKmainfont{} 74 | \def\CJKsansfont{} 75 | \def\CJKmonofont{} 76 | 77 | 78 | %%%%% Style of fonts and line stretch | 字體大小風格及行距 %%%%% 79 | % Base font 80 | \def\baseFontSize{14pt} % Valid: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt 81 | \def\baseLineStretch{1.5} % 行距(倍數) 82 | \def\fakeBoldFactor{2} % 假粗體粗度。(Only affect CJK font.) 83 | % Bibliography 84 | \def\bibFontStyle{\small} 85 | \def\bibLineStretch{1.2} 86 | % Table 87 | \def\floatFontStyle{\small} % content of table 88 | \def\tableLineStretch{1.2} 89 | % Caption 90 | \def\captionFontStyle{\small} 91 | \def\subcaptionFontStyle{\footnotesize} 92 | \def\captionLineStretch{1.2} 93 | % Page 94 | \def\pageHeaderStyle{\sffamily\itshape\footnotesize} 95 | \def\pageFooterStyle{\sffamily\footnotesize} 96 | % listing font style set by basicstyle in \lstdefinestyle, see macro_preamble.tex 97 | % todonotes font style set by textsize option when package loading, see thesis_base.cls . default \footnotesize 98 | 99 | 100 | %%%%% Style of titles | 標題風格 %%%%% 101 | \def\titlepageFontFamily{\sffamily} 102 | % set "\rmfamily\CJKfamily{sf}" to mix rm for English and sf(default Kai) for CJK, see wiki on TW_Thesis_Template. 103 | \def\abstractHeaderStyle{\sffamily\Large} % Information on abstract, cls default use \centering 104 | 105 | \def\chapterTitleNumStyle {\sffamily\LARGE\bfseries} % Number of chapter, only for en 106 | \def\chapterTitleStyle {\sffamily\huge\bfseries} % cls default use \centering for zh 107 | \def\sectionTitleStyle {\sffamily\Large\bfseries} 108 | \def\subsectionTitleStyle {\sffamily\large\bfseries} 109 | \def\subsubsectionTitleStyle{\sffamily\normalsize\bfseries} 110 | \def\paragraphTitleStyle {\sffamily\normalsize\bfseries} 111 | \def\subparagraphTitleStyle {\sffamily\normalsize\bfseries} 112 | 113 | % Section numbering 114 | \def\secNumDepth{4} % Depth of section Numbering. 設定章節標題給予數字標號的深度, \paragraph == 4 115 | \def\titleNumStyle{0} % 0/1 116 | \def\indentBlockSSS{0mm} % indent \subsubsection{} 117 | \def\indentBlockPar{0mm} % indent \paragraph{} 118 | \def\indentBlockSPar{0mm} % indent \subparagraph{} 119 | 120 | 121 | %%%%% Style of TOC | 目錄風格 %%%%% 122 | \def\tocDepth{2} % Depth of TOC. 目錄顯示層級,\subsection == 2 123 | \def\tocStyleAlign{0} % 0/1 see tutorial. (0 -> original) 124 | \def\tocStyleChapter{1} % 0/1/2 125 | \def\tocStyleChapterFontFM{} % {\itshape} etc. TOC chapter addition style to frontmatter. Only affect in \tocStyleChapter{1} . 126 | 127 | 128 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 129 | % Pages style | 頁面風格 130 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 131 | 132 | %%%%% Watermark | 浮水印 %%%%% 133 | % Add a watermark to every page after \startWatermark . 134 | % It will search (image) filename in figures folder. 135 | 136 | % Package (\wmMethod) bug / disadvantages: 137 | % background: Background failed in all \includepdf page. Keep for compatibility. 138 | % eso-pic: No, but still failed in some \includepdf page. 139 | \def\wmContent{} % 圖檔名或文字 | image filename or text.(中央不用加,若你想加,樣板已附上,填入 ``logo-NCU.jpg'' 即可) 140 | \def\wmMethod{1} % {0}/{1} 0 == background pkg. , 1 == eso-pic pkg. Recommend eso-pic 141 | \def\wmScale{1} % 縮放比 142 | \def\wmOpacity{1} % 透明度 143 | \def\wmShiftFromCenterX{0mm} % 圖片中心相對紙張中心垂直位移 144 | \def\wmShiftFromCenterY{0mm} % 圖片中心相對紙張中心水平位移 145 | \def\wmAngle{0} % 旋轉角度 146 | 147 | % Start page: 148 | % 0 == Manually, start at \startWatermark . 149 | % 1 == Auto start at 1st physical page(include cover/titlepage). 150 | % 2 == Auto start at 2nd physical page(include cover/titlepage). 151 | % note: {1}/{2} request set ``publish'' (at line 2) to display. 152 | \def\wmStartPage{2} % {0}/{1}/{2} 153 | 154 | 155 | %%%%% Really blank page | 純白空白頁 %%%%% 156 | \setboolean{reallyBlankPage}{false} % {true}/{false} true for use really blank pages between chapters. 157 | 158 | 159 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 160 | % Misc | 雜項 161 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 162 | 163 | %%%%% TOC (Table Of Contents) | 目錄 %%%%% 164 | % Add TOC/LOF/LOT entry to TOC 165 | \setboolean{tocEntryToToc}{true} % {true}/{false}, Table Of Contents 166 | \setboolean{lofEntryToToc}{false} % {true}/{false}, List Of Figures 167 | \setboolean{lotEntryToToc}{false} % {true}/{false}, List Of Tables 168 | 169 | 170 | %%%%% PDF %%%%% 171 | \setboolean{pdfLinkBoxDisplay}{true} % {true}/{false} ,Draw a box on the link. It only display in pdf viewer, not on paper. 172 | -------------------------------------------------------------------------------- /NCU_en/config.tex: -------------------------------------------------------------------------------- 1 | %%%%% build setting | 編譯設定 %%%%% 2 | \setboolean{publish}{false} % {true}/{false} Set true before publish. 發怖前設true 3 | \def\lang{en} % {zh}/{en} Set main language. 4 | \setboolean{disableChinese}{true} % {true}/{false} Disable chinese, for English user who don't have Chinese fonts. 5 | \def\titlepageLang{zh} % {zh}/{en}/{} Choose language for titlepage (zh -> Chinese / en -> English / {} -> hide titlepage and disable chinese font) 6 | \synctex=1 % Enable SyncTeX 7 | 8 | %%%%% Information of your document. | 定義文件資訊 %%%%% 9 | \def\deptshort {物理} 10 | \def\dept {物理研究所}%XX學系XXX碩士班(請參考「中央大學學位論文撰寫體例參考」附錄) 11 | \def\degree {碩士} % Master(碩士)/Ph.D(博士) 12 | \def\titleZh {中央大學論文樣板(英文)} % Chinese title 13 | \def\titleEn {NCU Thesis Template(English)} % English title 14 | \def\title {\titleZh} % Main title, default Chinese title 15 | \def\subtitle {\titleEn} % Subtitle, default English title, empty allowed. 16 | \def\logo {} % logo on titlepage. Watermark see below. NCU no logo on cover/titlepage. If you still want insert logo, use ``logo-NCU.jpg'' 17 | \def\author {Your Name.} 18 | % \profs is professor's comma separated list. First is advisor , comma use ``{,}'' 19 | \def\profs {Your advisor, Co-advisor, ZUO{,} GONG-DE, more \dots} 20 | \def\degreedateZh{中~華~民~國~一百零七~年~六~月} % Only for Chinese titlepage 21 | \def\degreedateEn{June 2018} % Only for English titlepage 22 | \def\copyyear {2012-2013} 23 | 24 | \setboolean{printcopyright}{false} % {true}/{false} print copyright text on titlepage or cover. 25 | 26 | \def\keywordsZh{關鍵字, 論文, 樣板, 讓我畢業} 27 | \def\keywordsEn{Keyword, Thesis, Template, Graduate me} 28 | 29 | 30 | %%%%% Set letters filename | 設定插入文件 %%%%% 31 | % This setting for main.tex default letters. 32 | % It will not insert PDF if file non-exist or empty . 33 | % 此為 main.tex 預設插入之 PDF,檔案不存在或空白則不插入。 34 | 35 | % 碩博士論文電子檔授權書 Authorization Letter (for electronic) 36 | \def\letterAuthEl{letter_authorization.pdf} 37 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 38 | \def\letterPubReq{letter_publication_request.pdf} 39 | % 指導教授推薦書 40 | \def\letterRecom {letter_recommendation.pdf} 41 | % 口試委員審定書 42 | \def\letterVerif {letter_verification.pdf} 43 | 44 | 45 | %%%%% Bibliography | 文獻列表 %%%%% 46 | \def\bibManType{2} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX 47 | \def\bibStyle{ieee} % Default ``ieee'' with BibLaTeX. If you use BibTeX change to ``ieeetr''. 48 | % BibLaTeX ref: https://www.sharelatex.com/learn/Biblatex_bibliography_styles 49 | % BibTeX ref: https://www.sharelatex.com/learn/Bibtex_bibliography_styles 50 | \setboolean{bibStyleNameYear}{false} % {true}/{false} true for use name,year to sort and cite.(If you want use custom option in .cls, set false here. ) 51 | 52 | 53 | %%%%% Set OS | 設定作業系統 %%%%% 54 | % It will overwrite \OS if your LaTeX compile parameter has ``-shell-escape''(Texstudio default enable). 55 | % Linux user: keep setting or add ``-shell-escape'' to compiler. 56 | % Mac OS X user: Set to mac or add ``-shell-escape'' to compiler. 57 | % Windows user: Don't need change setting. 58 | \def\OS{linux} % {linux}/{mac}/{win}, only effect auto select CJK font.(CJK means Chinese, Japanese, and Korean) 59 | 60 | 61 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 62 | % Font size or style | 字體大小、風格 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | 65 | %%%%% Set font | 設定中英文字型 %%%%% 66 | % Keep empty for default font. CJK font must set OS for auto select. 67 | % Setting by name of font(English will be better) or font filename. 68 | % Linux 利用指令 fc-list :lang=zh 來查詢可以用的字體名稱。 69 | % Windows 使用內建字型管理查詢。建議填英文字型名稱。 70 | \def\mainfont {} % default use Latin Modern Roman (lmodern pkg.) 71 | \def\sansfont {} 72 | \def\monofont {} 73 | \def\CJKmainfont{} 74 | \def\CJKsansfont{} 75 | \def\CJKmonofont{} 76 | 77 | 78 | %%%%% Style of fonts and line stretch | 字體大小風格及行距 %%%%% 79 | % Base font 80 | \def\baseFontSize{12pt} % Valid: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt 81 | \def\baseLineStretch{1.3} % 行距(倍數) 82 | \def\fakeBoldFactor{2} % 假粗體粗度。(Only affect CJK font.) 83 | % Bibliography 84 | \def\bibFontStyle{\small} 85 | \def\bibLineStretch{1.2} 86 | % Table 87 | \def\floatFontStyle{\small} % content of table 88 | \def\tableLineStretch{1.2} 89 | % Caption 90 | \def\captionFontStyle{\small} 91 | \def\subcaptionFontStyle{\footnotesize} 92 | \def\captionLineStretch{1.2} 93 | % Page 94 | \def\pageHeaderStyle{\sffamily\itshape\footnotesize} 95 | \def\pageFooterStyle{\sffamily\footnotesize} 96 | % listing font style set by basicstyle in \lstdefinestyle, see macro_preamble.tex 97 | % todonotes font style set by textsize option when package loading, see thesis_base.cls . default \footnotesize 98 | 99 | 100 | %%%%% Style of titles | 標題風格 %%%%% 101 | \def\titlepageFontFamily{\sffamily} 102 | % set "\rmfamily\CJKfamily{sf}" to mix rm for English and sf(default Kai) for CJK, see wiki on TW_Thesis_Template. 103 | \def\abstractHeaderStyle{\sffamily\Large} % Information on abstract, cls default use \centering 104 | 105 | \def\chapterTitleNumStyle{\sffamily\LARGE\bfseries} % Number of chapter, only for en 106 | \def\chapterTitleStyle{\sffamily\huge\bfseries} % cls default use \centering for zh 107 | \def\sectionTitleStyle{\sffamily\Large\bfseries} 108 | \def\subsectionTitleStyle{\sffamily\large\bfseries} 109 | \def\subsubsectionTitleStyle{\sffamily\normalsize\bfseries} 110 | \def\paragraphTitleStyle{\sffamily\normalsize\bfseries} 111 | \def\subparagraphTitleStyle{\sffamily\normalsize\bfseries} 112 | 113 | % Section numbering 114 | \def\secNumDepth{4} % Depth of section Numbering. 設定章節標題給予數字標號的深度, \paragraph == 4 115 | \def\titleNumStyle{0} % 0/1 116 | \def\indentBlockSSS{0mm} % indent \subsubsection{} 117 | \def\indentBlockPar{0mm} % indent \paragraph{} 118 | \def\indentBlockSPar{0mm} % indent \subparagraph{} 119 | 120 | 121 | %%%%% Style of TOC | 目錄風格 %%%%% 122 | \def\tocDepth{2} % Depth of TOC. 目錄顯示層級,\subsection == 2 123 | \def\tocStyleAlign{0} % 0/1 see tutorial. (0 -> original) 124 | \def\tocStyleChapter{1} % 0/1/2 125 | \def\tocStyleChapterFontFM{} % {\itshape} etc. TOC chapter addition style to frontmatter. Only affect in \tocStyleChapter{1} . 126 | 127 | 128 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 129 | % Pages style | 頁面風格 130 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 131 | 132 | %%%%% Watermark | 浮水印 %%%%% 133 | % Add a watermark to every page after \startWatermark . 134 | % It will search (image) filename in figures folder. 135 | 136 | % Package (\wmMethod) bug / disadvantages: 137 | % background: Background failed in all \includepdf page. Keep for compatibility. 138 | % eso-pic: No, but still failed in some \includepdf page. 139 | \def\wmContent{} % 圖檔名或文字 | image filename or text.(中央不用加,若你想加,樣板已附上,填入 ``logo-NCU.jpg'' 即可) 140 | \def\wmMethod{1} % {0}/{1} 0 == background pkg. , 1 == eso-pic pkg. Recommend eso-pic 141 | \def\wmScale{1} % 縮放比 142 | \def\wmOpacity{1} % 透明度 143 | \def\wmShiftFromCenterX{0mm} % 圖片中心相對紙張中心垂直位移 144 | \def\wmShiftFromCenterY{0mm} % 圖片中心相對紙張中心水平位移 145 | \def\wmAngle{0} % 旋轉角度 146 | 147 | % Start page: 148 | % 0 == Manually, start at \startWatermark . 149 | % 1 == Auto start at 1st physical page(include cover/titlepage). 150 | % 2 == Auto start at 2nd physical page(include cover/titlepage). 151 | % note: {1}/{2} request set ``publish'' (at line 2) to display. 152 | \def\wmStartPage{2} % {0}/{1}/{2} 153 | 154 | 155 | %%%%% Really blank page | 純白空白頁 %%%%% 156 | \setboolean{reallyBlankPage}{false} % {true}/{false} true for use really blank pages between chapters. 157 | 158 | 159 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 160 | % Misc | 雜項 161 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 162 | 163 | %%%%% TOC (Table Of Contents) | 目錄 %%%%% 164 | % Add TOC/LOF/LOT entry to TOC 165 | \setboolean{tocEntryToToc}{true} % {true}/{false}, Table Of Contents 166 | \setboolean{lofEntryToToc}{false} % {true}/{false}, List Of Figures 167 | \setboolean{lotEntryToToc}{false} % {true}/{false}, List Of Tables 168 | 169 | 170 | %%%%% PDF %%%%% 171 | \setboolean{pdfLinkBoxDisplay}{true} % {true}/{false} ,Draw a box on the link. It only display in pdf viewer, not on paper. 172 | -------------------------------------------------------------------------------- /YM_patch/config.tex: -------------------------------------------------------------------------------- 1 | %%%%% build setting | 編譯設定 %%%%% 2 | \setboolean{publish}{false} % {true}/{false} Set true before publish. 發佈前設true 3 | \def\lang{zh} % {zh}/{en} Set main language. 4 | \setboolean{disableChinese}{false} % {true}/{false} Disable Chinese, for English user who don't have Chinese fonts. 5 | 6 | \synctex=1 % Enable SyncTeX. 7 | 8 | 9 | %%%%% Information of your document. | 定義文件資訊 %%%%% 10 | \def\deptshort {物理} 11 | \def\deptZh {物理研究所} 12 | \def\deptEn {Department of Physics} 13 | \def\degree {碩士} % 碩士/博士 14 | \def\thesisType{Master Thesis} % Master Thesis/Doctoral Dissertation 15 | \def\titleZh {陽明大學LaTeX論文樣板(中文)} % Chinese title 16 | \def\titleEn {YM LaTeX Thesis Template(Chinese)} % English title 17 | \def\title {\titleZh} % Main title, default Chinese title 18 | \def\subtitle {\titleEn} % Subtitle, default English title, empty allowed. 19 | \def\logo {} % logo on titlepage. Watermark see below. 中央無校徽在封面。若你想加,樣板已附上,填入 ``logo-NCU.jpg'' 即可 20 | \def\authorZh {君の名は。} 21 | \def\authorEn {Your Name.} 22 | \def\author {\authorZh} % Choose one When only use one name.(book spine using.) 23 | % \profs is professor's comma separated list. First is advisor , comma use ``{,}'' 24 | \def\profsZh {你的指導教授, 你的共同指導, 英文逗號示範} 25 | \def\profsEn {Your advisor, Committee member, ZUO{,} GONG-DE} 26 | \def\degreedateROC{中華民國~\zhdigits{107}~年~六~月} % YM use O not 零 27 | \def\degreedateAD {June 2018} 28 | \def\copyyear {2012-2013} 29 | 30 | \setboolean{printcopyright}{false} % {true}/{false} print copyright text on titlepage or cover. 31 | 32 | \def\keywordsZh{關鍵字, 論文, 樣板, 讓我畢業} 33 | \def\keywordsEn{Keyword, Thesis, Template, Graduate me} 34 | 35 | 36 | %%%%% Set letters filename | 設定插入文件 %%%%% 37 | % This setting for main.tex default letters. 38 | % It will not insert PDF if file non-exist or empty . 39 | % 此為 main.tex 預設插入之 PDF,檔案不存在或空白則不插入。 40 | 41 | % 碩博士論文電子檔授權書 Authorization Letter (for electronic) 42 | \def\letterAuthEl{letter_authorization.pdf} 43 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 44 | \def\letterPubReq{letter_publication_request.pdf} 45 | % 指導教授推薦書 46 | \def\letterRecom {letter_recommendation.pdf} 47 | % 口試委員審定書 48 | \def\letterVerif {letter_verification.pdf} 49 | 50 | 51 | %%%%% Bibliography | 文獻列表 %%%%% 52 | \def\bibManType{2} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX 53 | \def\bibStyle{ieee} % Default ``ieee'' with BibLaTeX. If you use BibTeX change to ``ieeetr''. 54 | % BibLaTeX ref: https://www.sharelatex.com/learn/Biblatex_bibliography_styles 55 | % BibTeX ref: https://www.sharelatex.com/learn/Bibtex_bibliography_styles 56 | \setboolean{bibStyleNameYear}{false} % {true}/{false} true for use name,year to sort and cite.(If you want use custom option in .cls, set false here. ) 57 | 58 | 59 | %%%%% Set OS | 設定作業系統 %%%%% 60 | % It will overwrite \OS if your LaTeX compile parameter has ``-shell-escape''(Texstudio default enable). 61 | % Linux user: keep setting or add ``-shell-escape'' to compiler. 62 | % Mac OS X user: Set to mac or add ``-shell-escape'' to compiler. 63 | % Windows user: Don't need change setting. 64 | \def\OS{linux} % {linux}/{mac}/{win}, only effect auto select CJK font.(CJK means Chinese, Japanese, and Korean) 65 | 66 | 67 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 68 | % Font size or style | 字體大小、風格 69 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 70 | 71 | %%%%% Set font | 設定中英文字型 %%%%% 72 | % Keep empty for default font. CJK font must set OS for auto select. 73 | % Setting by name of font(English will be better) or font filename. 74 | % Linux 利用指令 fc-list :lang=zh 來查詢可以用的字體名稱。 75 | % Windows 使用內建字型管理查詢。建議填英文字型名稱。 76 | \def\mainfont {} % default use Latin Modern Roman (lmodern pkg.) 77 | \def\sansfont {} 78 | \def\monofont {} 79 | \def\CJKmainfont{} 80 | \def\CJKsansfont{} 81 | \def\CJKmonofont{} 82 | 83 | 84 | %%%%% Style of fonts and line stretch | 字體大小風格及行距 %%%%% 85 | % Base font 86 | \def\baseFontSize{14pt} % Valid: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt 87 | \def\baseLineStretch{1.5} % 行距(倍數) 88 | \def\fakeBoldFactor{2} % 假粗體粗度。(Only affect CJK font.) 89 | % Bibliography 90 | \def\bibFontStyle{\small} 91 | \def\bibLineStretch{1.2} 92 | % Table 93 | \def\floatFontStyle{\small} % content of table 94 | \def\tableLineStretch{1.2} 95 | % Caption 96 | \def\captionFontStyle{\small} 97 | \def\subcaptionFontStyle{\footnotesize} 98 | \def\captionLineStretch{1.2} 99 | % Page 100 | \def\pageHeaderStyle{\sffamily\itshape\footnotesize} 101 | \def\pageFooterStyle{\sffamily\footnotesize} 102 | % listing font style set by basicstyle in \lstdefinestyle, see macro_preamble.tex 103 | % todonotes font style set by textsize option when package loading, see thesis_base.cls . default \footnotesize 104 | 105 | 106 | %%%%% Style of titles | 標題風格 %%%%% 107 | \def\titlepageFontFamily{\rmfamily\CJKfamily{sf}} 108 | % set "\rmfamily\CJKfamily{sf}" to mix rm for English and sf(default Kai) for CJK, see wiki on TW_Thesis_Template. 109 | \def\abstractHeaderStyle{\sffamily\Large} % Information on abstract, cls default use \centering 110 | 111 | \def\chapterTitleNumStyle {\sffamily\LARGE\bfseries} % Number of chapter, only for en 112 | \def\chapterTitleStyle {\sffamily\huge\bfseries} % cls default use \centering for zh 113 | \def\sectionTitleStyle {\sffamily\Large\bfseries} 114 | \def\subsectionTitleStyle {\sffamily\large\bfseries} 115 | \def\subsubsectionTitleStyle{\sffamily\normalsize\bfseries} 116 | \def\paragraphTitleStyle {\sffamily\normalsize\bfseries} 117 | \def\subparagraphTitleStyle {\sffamily\normalsize\bfseries} 118 | 119 | % Section numbering 120 | \def\secNumDepth{4} % Depth of section Numbering. 設定章節標題給予數字標號的深度, \paragraph == 4 121 | \def\titleNumStyle{0} % 0/1 122 | \def\indentBlockSSS{0mm} % indent \subsubsection{} 123 | \def\indentBlockPar{0mm} % indent \paragraph{} 124 | \def\indentBlockSPar{0mm} % indent \subparagraph{} 125 | 126 | 127 | %%%%% Style of TOC | 目錄風格 %%%%% 128 | \def\tocDepth{2} % Depth of TOC. 目錄顯示層級,\subsection == 2 129 | \def\tocStyleAlign{0} % 0/1 see tutorial. (0 -> original) 130 | \def\tocStyleChapter{1} % 0/1/2 131 | \def\tocStyleChapterFontFM{} % {\itshape} etc. TOC chapter addition style to frontmatter. Only affect in \tocStyleChapter{1} . 132 | 133 | 134 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 135 | % Pages style | 頁面風格 136 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 137 | 138 | %%%%% Watermark | 浮水印 %%%%% 139 | % Add a watermark to every page after \startWatermark . 140 | % It will search (image) filename in figures folder. 141 | 142 | % Package (\wmMethod) bug / disadvantages: 143 | % background: Background failed in all \includepdf page. Keep for compatibility. 144 | % eso-pic: No, but still failed in some \includepdf page. 145 | \def\wmContent{logo-YM.jpg} % 圖檔名或文字 | image filename or text. 146 | \def\wmMethod{1} % {0}/{1} 0 == background pkg. , 1 == eso-pic pkg. Recommend eso-pic 147 | \def\wmScale{1} % 縮放比 148 | \def\wmOpacity{1} % 透明度 149 | \def\wmShiftFromCenterX{0mm} % 圖片中心相對紙張中心垂直位移 150 | \def\wmShiftFromCenterY{0mm} % 圖片中心相對紙張中心水平位移 151 | \def\wmAngle{0} % 旋轉角度 152 | 153 | % Start page: 154 | % 0 == Manually, start at \startWatermark . 155 | % 1 == Auto start at 1st physical page(include cover/titlepage). 156 | % 2 == Auto start at 2nd physical page(include cover/titlepage). 157 | % note: {1}/{2} request set ``publish'' (at line 2) to display. 158 | \def\wmStartPage{2} % {0}/{1}/{2} 159 | 160 | %%%%% Really blank page | 純白空白頁 %%%%% 161 | \setboolean{reallyBlankPage}{false} % {true}/{false} true for use really blank pages between chapters. 162 | 163 | 164 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 165 | % Misc | 雜項 166 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 167 | 168 | %%%%% TOC (Table Of Contents) | 目錄 %%%%% 169 | % Add TOC/LOF/LOT entry to TOC 170 | \setboolean{tocEntryToToc}{true} % {true}/{false}, Table Of Contents 171 | \setboolean{lofEntryToToc}{false} % {true}/{false}, List Of Figures 172 | \setboolean{lotEntryToToc}{false} % {true}/{false}, List Of Tables 173 | 174 | 175 | %%%%% PDF %%%%% 176 | \setboolean{pdfLinkBoxDisplay}{true} % {true}/{false} ,Draw a box on the link. It only display in pdf viewer, not on paper. 177 | -------------------------------------------------------------------------------- /NTHU_patch/config.tex: -------------------------------------------------------------------------------- 1 | %%%%% build setting | 編譯設定 %%%%% 2 | \setboolean{publish}{false} % {true}/{false} Set true before publish. 發佈前設true 3 | \def\lang{zh} % {zh}/{en} Set main language. 4 | \setboolean{disableChinese}{false} % {true}/{false} Disable Chinese, for English user who don't have Chinese fonts. 5 | 6 | \synctex=1 % Enable SyncTeX. 7 | 8 | 9 | %%%%% Information of your document. | 定義文件資訊 %%%%% 10 | \def\deptshort {物理} 11 | \def\dept {物理研究所} % 請參考校方規定格式 12 | \def\degree {碩士} % 碩士/博士 13 | \def\studentID {0255723080} % XD 14 | \def\titleZh {清華大學LaTeX論文樣板(中文)} % Chinese title 15 | \def\titleEn {NTHU LaTeX Thesis Template(Chinese)} % English title 16 | \def\title {\titleZh} % Main title, default Chinese title 17 | \def\subtitle {\titleEn} % Subtitle, default English title, empty allowed. 18 | \def\logo {} % logo on titlepage. Watermark see below. 19 | \def\authorZh {君の名は。} 20 | \def\authorEn {Your name.} 21 | \def\author {\authorZh} % Choose one When only use one name.(book spine using.) 22 | % \profs is professor's comma separated list. First is advisor , comma use ``{,}'' 23 | \def\profsZh {你的指導教授, 你的共同指導, 可再加更多人\dots, 英文逗號示範} 24 | \def\profsEn {Your advisor, Committee member, More member\dots , ZUO{,} GONG-DE} 25 | \def\degreedate{中~華~民~國~ \zhdigits{107} ~年~六~月} % NTHU demo use O not 零 26 | \def\copyyear {2012-2013} 27 | 28 | \setboolean{printcopyright}{false} % {true}/{false} print copyright text on titlepage or cover. 29 | 30 | \def\keywordsZh{關鍵字, 論文, 樣板, 讓我畢業} 31 | \def\keywordsEn{Keyword, Thesis, Template, Graduate me} 32 | 33 | 34 | %%%%% Set letters filename | 設定插入文件 %%%%% 35 | % This setting for main.tex default letters. 36 | % It will not insert PDF if file non-exist or empty . 37 | % 此為 main.tex 預設插入之 PDF,檔案不存在或空白則不插入。 38 | 39 | % 碩博士論文電子檔授權書 Authorization Letter (for electronic) 40 | \def\letterAuthEl{} % {letter_authorization_electronic.pdf} 41 | % 碩博士論文紙本授權書 Authorization Letter (for paper) 42 | \def\letterAuthPa{} % {letter_authorization_paper.pdf} 43 | % 碩博士紙本論文延後公開/下架申請書。(如需延後公開者,才需要裝訂於論文內頁) 44 | \def\letterPubReq{} % {letter_publication_request.pdf} 45 | % 指導教授推薦書 46 | \def\letterRecom {} % {letter_recommendation.pdf} 47 | % 口試委員審定書 48 | \def\letterVerif {} % {letter_verification.pdf} 49 | 50 | 51 | %%%%% Bibliography | 文獻列表 %%%%% 52 | \def\bibManType{2} % {0}/{1}/{2} 0 = Embedded, 1 = BibTeX, 2 = biber / BibLaTeX 53 | \def\bibStyle{ieee} % Default ``ieee'' with BibLaTeX. If you use BibTeX change to ``ieeetr''. 54 | % BibLaTeX ref: https://www.sharelatex.com/learn/Biblatex_bibliography_styles 55 | % BibTeX ref: https://www.sharelatex.com/learn/Bibtex_bibliography_styles 56 | \setboolean{bibStyleNameYear}{false} % {true}/{false} true for use name,year to sort and cite.(If you want use custom option in .cls, set false here. ) 57 | 58 | 59 | %%%%% Set OS | 設定作業系統 %%%%% 60 | % It will overwrite \OS if your LaTeX compile parameter has ``-shell-escape''(Texstudio default enable). 61 | % Linux user: keep setting or add ``-shell-escape'' to compiler. 62 | % Mac OS X user: Set to mac or add ``-shell-escape'' to compiler. 63 | % Windows user: Don't need change setting. 64 | \def\OS{linux} % {linux}/{mac}/{win}, only effect auto select CJK font.(CJK means Chinese, Japanese, and Korean) 65 | 66 | 67 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 68 | % Font size or style | 字體大小、風格 69 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 70 | 71 | %%%%% Set font | 設定中英文字型 %%%%% 72 | % Keep empty for default font. CJK font must set OS for auto select. 73 | % Setting by name of font(English will be better) or font filename. 74 | % Linux 利用指令 fc-list :lang=zh 來查詢可以用的字體名稱。 75 | % Windows 使用內建字型管理查詢。建議填英文字型名稱。 76 | \def\mainfont {} % default use Latin Modern Roman (lmodern pkg.) 77 | \def\sansfont {} 78 | \def\monofont {} 79 | \def\CJKmainfont{} 80 | \def\CJKsansfont{} 81 | \def\CJKmonofont{} 82 | 83 | 84 | %%%%% Style of fonts and line stretch | 字體大小風格及行距 %%%%% 85 | % Base font 86 | \def\baseFontSize{14pt} % Valid: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt 87 | \def\baseLineStretch{1.5} % 行距(倍數) 88 | \def\fakeBoldFactor{2} % 假粗體粗度。(Only affect CJK font.) 89 | % Bibliography 90 | \def\bibFontStyle{\small} 91 | \def\bibLineStretch{1.2} 92 | % Table 93 | \def\floatFontStyle{\small} % content of table 94 | \def\tableLineStretch{1.2} 95 | % Caption 96 | \def\captionFontStyle{\small} 97 | \def\subcaptionFontStyle{\footnotesize} 98 | \def\captionLineStretch{1.2} 99 | % Page 100 | \def\pageHeaderStyle{\sffamily\itshape\footnotesize} 101 | \def\pageFooterStyle{\sffamily\footnotesize} 102 | % listing font style set by basicstyle in \lstdefinestyle, see macro_preamble.tex 103 | % todonotes font style set by textsize option when package loading, see thesis_base.cls . default \footnotesize 104 | 105 | 106 | %%%%% Style of titles | 標題風格 %%%%% 107 | \def\titlepageFontFamily{\sffamily} 108 | % set "\rmfamily\CJKfamily{sf}" to mix rm for English and sf(default Kai) for CJK, see wiki on TW_Thesis_Template. 109 | \def\abstractHeaderStyle{\sffamily\Large} % Information on abstract, cls default use \centering 110 | 111 | \def\chapterTitleNumStyle {\sffamily\LARGE\bfseries} % Number of chapter, only for en 112 | \def\chapterTitleStyle {\sffamily\huge\bfseries} % cls default use \centering for zh 113 | \def\sectionTitleStyle {\sffamily\Large\bfseries} 114 | \def\subsectionTitleStyle {\sffamily\large\bfseries} 115 | \def\subsubsectionTitleStyle{\sffamily\normalsize\bfseries} 116 | \def\paragraphTitleStyle {\sffamily\normalsize\bfseries} 117 | \def\subparagraphTitleStyle {\sffamily\normalsize\bfseries} 118 | 119 | % Section numbering 120 | \def\secNumDepth{4} % Depth of section Numbering. 設定章節標題給予數字標號的深度, \paragraph == 4 121 | \def\titleNumStyle{0} % 0/1 122 | \def\indentBlockSSS{0mm} % indent \subsubsection{} 123 | \def\indentBlockPar{0mm} % indent \paragraph{} 124 | \def\indentBlockSPar{0mm} % indent \subparagraph{} 125 | 126 | 127 | %%%%% Style of TOC | 目錄風格 %%%%% 128 | \def\tocDepth{2} % Depth of TOC. 目錄顯示層級,\subsection == 2 129 | \def\tocStyleAlign{0} % 0/1 see tutorial. (0 -> original) 130 | \def\tocStyleChapter{1} % 0/1/2 131 | \def\tocStyleChapterFontFM{} % {\itshape} etc. TOC chapter addition style to frontmatter. Only affect in \tocStyleChapter{1} . 132 | 133 | 134 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 135 | % Pages style | 頁面風格 136 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 137 | 138 | %%%%% Watermark | 浮水印 %%%%% 139 | % Add a watermark to every page after \startWatermark . 140 | % It will search (image) filename in figures folder. 141 | 142 | % Package (\wmMethod) bug / disadvantages: 143 | % background: Background failed in all \includepdf page. Keep for compatibility. 144 | % eso-pic: No, but still failed in some \includepdf page. 145 | \def\wmContent{nthu-logo.pdf} % 圖檔名或文字 | image filename or text. 146 | \def\wmMethod{1} % {0}/{1} 0 == background pkg. , 1 == eso-pic pkg. Recommend eso-pic 147 | \def\wmScale{1} % 縮放比 148 | \def\wmOpacity{1} % 透明度 149 | \def\wmShiftFromCenterX{0mm} % 圖片中心相對紙張中心垂直位移 150 | \def\wmShiftFromCenterY{0mm} % 圖片中心相對紙張中心水平位移 151 | \def\wmAngle{0} % 旋轉角度 152 | 153 | % Start page: 154 | % 0 == Manually, start at \startWatermark . 155 | % 1 == Auto start at 1st physical page(include cover/titlepage). 156 | % 2 == Auto start at 2nd physical page(include cover/titlepage). 157 | % note: {1}/{2} request set ``publish'' (at line 2) to display. 158 | \def\wmStartPage{2} % {0}/{1}/{2} 159 | 160 | %%%%% Really blank page | 純白空白頁 %%%%% 161 | \setboolean{reallyBlankPage}{false} % {true}/{false} true for use really blank pages between chapters. 162 | 163 | 164 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 165 | % Misc | 雜項 166 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 167 | 168 | %%%%% TOC (Table Of Contents) | 目錄 %%%%% 169 | % Add TOC/LOF/LOT entry to TOC 170 | \setboolean{tocEntryToToc}{true} % {true}/{false}, Table Of Contents 171 | \setboolean{lofEntryToToc}{false} % {true}/{false}, List Of Figures 172 | \setboolean{lotEntryToToc}{false} % {true}/{false}, List Of Tables 173 | 174 | 175 | %%%%% PDF %%%%% 176 | \setboolean{pdfLinkBoxDisplay}{true} % {true}/{false} ,Draw a box on the link. It only display in pdf viewer, not on paper. 177 | --------------------------------------------------------------------------------