Code Monkey home page Code Monkey logo

nputhesis's Introduction

NPU 硕博士论文 LaTeX 模板

nputhesis 是基于\LaTeX 的 book 文类编写的西北工业大学硕博论文格式文类, 实现了西北工业大学硕博毕业论文格式的基本要求.

\TeX 环境

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

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

如何使用

  1. 如何使用该文类
    • 在 \TeX 文档开头使用 nputhesis 文类即可, 如 \documentclass[twoside,UTF8,phd]{nputhesis}.
  2. 如何编译 推荐使用 `latexmk’ 命令进行编译, 编译命令如下
    latexmk -xelatex -synctex=1 sample.tex
        
  3. 符号表的生成 由于符号表需要使用外部程序 `makeindex’ 辅助生成, 所以我们添加了 `latexmkrc’ 文件, 只要使用上述 `latexmk’ 命令符号表可以自动生成, 否则, 需要手动调用 ‘makeindex’ 程序
    makeindex sample.nlo -s nomencl.ist -o sample.nls -t sample.nlg
        

文档选项说明

  1. 由于 nputhesis 基于 book 实现, book 文类的选项这里均能是使用, 如 twoside.
  2. nputhesis 新定义的选项
    • UTF8 : 传递给宏包 ctexcap, 用于中文标题处理.
    • phd : 使用博士论文模板, 默认选项.
    • ma : 使用硕士论文模板.
    • 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 宏包定义了定理格式 nputheorem, 并默认启用. 在文档中 \newtheorem{thm}{定理}[section] 定义新环境将默认使用格式.

若需更改将要定义的定理格式为其他格式, 如 plain, 请使用如下命令:

\theoremstyle{plain}
\newtheorem{oldthm}{旧定理}[section]

那么 newthm 环境将使用 plain 格式.

  1. 符号表以双栏方式显示, 内部使用宏包 nomenclmulticol. 在需要显示符号表的地方使用命令 \printnomenclature 即可, 模板中

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

已知问题

  • 使用 natbib 宏包时, 包含参考文献条目的目录页中, 页眉显示为参考文献. 修复方法如下: 在使用 `natbib` 包时, 修改 `bibsection` 命令
    \usepackage[super]{natbib}
    \renewcommand\bibsection{\chapter*{\bibname}}
        

License

MIT License

Copyright (c) 2018 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.