Giter VIP home page Giter VIP logo

nputhesis's Introduction

NPU 博士、硕士学位论文 \LaTeX 模板

nputhesis 是基于\LaTeX 的 ctexbook 文类编写的西北工业大学博士、硕士论文格式文类, 基本实现了博士、硕士学位论文撰写规定的要求.

\TeX 环境

sample.tex 源文件使用 UTF8 编码在 TeXLive 2019 下使用引擎 xelatexpdflatex 编译通过. 其他环境未测试.

(* 推荐使用新版 TeXLive 下的 xelatex 进行编译 *)

如何使用

  1. 如何使用该文类 在 \TeX 文档开头使用 nputhesis 文类即可, 如 \documentclass[twoside,UTF8,phd,AutoFakeBold]{nputhesis}.

    这里使用 AutoFakeBold 为外封面的字体加黑. 在 TeXLive 2019 之前的版本中, 启用该选项将导致 xelatex 编译生成的 pdf 文件内容复制时显示为乱码, 进而导致查重报告显示为乱码. 解决方法有以下三种:

    1. 升级 TeXLive 到 2019 版.
    2. 使用 Adobe 字体. 首先自行下载安装 Adobe 字体, 然后在 tex 源文件导言区重新定义相关字体, 如
      \documentclass[twoside, UTF8, phd, dbr, AutoFakeBold]{nputhesis}
      % 导言区
      \renewcommand{\songti}{\CJKfontspec{Adobe Song Std L}}        % adobe 宋体
      \renewcommand{\kaishu}{\CJKfontspec{Adobe Kaiti Std R}}       % adobe 楷体
      \renewcommand{\heiti}{\CJKfontspec{Adobe Heiti Std R}}        % adobe 黑体
      \renewcommand{\fangsong}{\CJKfontspec{Adobe Fangsong Std R}}  % adobe 仿宋
      % other command
      \begin{document}
      正文
      \end{document}
              
    3. 去掉 AutoFakeBold 选项. 这样会导致外封面字体不能加黑.
  2. 如何编译 推荐使用 `latexmk’ 命令进行编译, 编译命令如下
    latexmk -xelatex -synctex=1 nputhesis-sample.tex
        
  3. 符号表的生成 由于符号表需要使用外部程序 `makeindex’ 辅助生成, 所以我们添加了 `latexmkrc’ 文件, 只要使用上述 `latexmk’ 命令符号表可以自动生成, 否则, 需要手动调用 ‘makeindex’ 程序
    makeindex nputhesis-sample.nlo -s nomencl.ist -o nputhesis-sample.nls -t nputhesis-sample.nlg
        

文档选项说明

  1. 由于 nputhesis 基于 book 实现, book 文类的选项这里均能是使用, 如 twoside.
  2. nputhesis 新定义的选项
    • UTF8 : 传递给宏包 ctexcap, 用于中文标题处理.
    • phd : 使用博士论文模板, 默认选项.
    • ma : 使用硕士论文模板.
    • dbr : 用于隐藏作者和导师名, 需要使用命令 \dbr.
    • blankinfo : 空白页信息开关, 用于在偶数空白页显示 `This Page Intentionally Left Blank!`, 默认不显示.

使用的宏包及定义的环境

该文类内部已包含宏包 geometry, xcolor, fancyhdr, titletoc, caption, ulem, amsthm, amsmath, amsfonts, setspace, longtable, booktabs, tabularx, multirow, graphicx, ctex, nomencl, multicol.

  1. 使用了 amsthm 宏包定义了定理格式 nputheoremnpuplain, 并默认启用 npuplain.

在文档中 \newtheorem{theorem}{定理}[section] 定义新环境将默认使用格式. 若需更改将 要定义的定理格式为其他格式, 如 nputheorem, 请使用如下命令:

\theoremstyle{nputheorem}
\newtheorem{npu-thm}{斜体定理}[section]

那么 npu-thm 环境将使用 nputheorem 格式.

  1. 符号表生成使用了宏包 nomencl . 在需要显示符号表的地方使用命令 \printnomenclature 即可,

模板中符号表在目录后. 添加符号请使用命令 \nomenclature{<sym>}{<text explanation>}.

关于参考文献得说明

推荐使用 biblatex 宏包生成参考文献. 若确实需要使用 bst 文件生成参考文件, 可以考虑 使用 @Haixing-Hu 编写的 `bst’ 文件 `gbt7741-2005.bst’.

其他链接

  1. @polossk: LaTeX-Template-For-NPU-Thesis
  2. @NPUSCG: 西北工业大学研究生选题报告表 \LaTeX 模板
  3. @Haixing-Hu: `gbt7741-2005.bst’.

License

MIT License

Copyright (c) 2020 Yang Zongze ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

nputhesis's People

Contributors

lrtfm avatar lyq105 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.