Giter VIP home page Giter VIP logo

nwpumetaphysicsoffice / yet-another-latex-template-for-npu-thesis Goto Github PK

View Code? Open in Web Editor NEW
323.0 8.0 82.0 23.36 MB

西北工业大学硕博学位论文模版 | Yet Another Thesis Template for Northwestern Polytechnical University

Home Page: https://nwpumetaphysicsoffice.github.io/Yet-Another-LaTeX-Template-for-NPU-Thesis/

License: GNU General Public License v3.0

TeX 98.46% Makefile 0.78% Shell 0.31% Python 0.42% Dockerfile 0.04%
npu-thesis thesis-template latex latex-template phd-thesis master-thesis nwpu-metaphysics-office thesis

yet-another-latex-template-for-npu-thesis's Introduction

Yet Another NPU Thesis Template

Poster

Status PhD-Thesis Master-Thesis TeX-Template License Version

TeXLive>=2021 DOI

这是在西北工业大学硕博研究生学位论文格式的要求下的一份 $\LaTeX$ 文档类模板,通过使用 yanputhesis 文档类来完成学位论文,也可直接在发布示例文件的基础上,修改章节标题,撰写内容,即可完成学位论文任务。

本 repo 主要基于开源库 polossk/LaTeX-Template-For-NPU-Thesis 之上修改而成,格式参照于 2022 年西北工业大学研究生院编写的西北工业大学研究生学位论文写作指南

目前项目主要由 @polossk 维护,发布版本可能会有一些不影响阅读与送审的小问题。如果有相关格式更正需求,请发布 issue 催更,我们将对模板 bug 发布更新。

  • master 分支,发布累积更新后的版本,当前版本 v1.8.5
  • polossk-dev 分支,由 @polossk 维护的开发分支,用于及时发布更新补丁,当前版本 v1.8.5.0307 下载链接

使用说明

  1. 下载这个项目的 zip 包到到本地
  2. 确保您的 TeX 版本为不低于 Texlive 2021 版本
  3. 直接对 yanputhesis-sample.tex 文件进行修改,对应的摘要、章节内容、附录文件均已经默认生成,在此基础上加以修改即可
  4. 如有必要,也可以请仿照 yanputhesis-sample.tex 的文件格式,在导言区使用 \documentclass[lang=chs, degree=phd, blindreview=false, adobe=false]{yanputhesis} 来直接设置文档格式
  5. 如有必要,修改 makefile 文件的 MAIN 选项为自己 tex 文档的文件名
  6. make samplebib & Enjoy

基本信息录入

%%=============================================================================%
%% 基本信息录入
%%-----------------------------------------------------------------------------%
\title{基于 LaTeX 排版的 \\ 西北工业大学论文模板}{          % 中英文标题
    Yet Another Thesis Template of \\ Northwestern Polytechnical University
}                                                           % 请自行断行
\author{\blindreview{张三丰}}{\blindreview{Sanfeng Zhang}}  % 姓名(添加盲评标记)
\date{2022年6月}{Jun 2022}                                  % 答辩日期
\school{数学与统计学院}{School of Mathematics and Statistics}% 学院
% 专业 博士请使用 Philosophy in XXXX,硕士只写 XXXX 即可
\major{数学}{Philosophy in Mathematics}                     % 专业
\advisor{\blindreview{李四海}}{\blindreview{Sihai Li}}      % 导师(添加盲评标记)
\studentnumber{2016123456}                                  % 学号
\funding{本研究得到玄学基金(编号23336666)资助.}{         % 基金资助
    The present work is supported by Funding of Metaphysics %
    (Project No:23336666).}                                %
%%=============================================================================%

常见问题 Q&A

  • Q:博士学位论文 or 硕士学位论文?
    • 本模版默认为博士学位论文,并且兼容硕士学位论文。目前不兼容本科毕业设计论文(未来计划兼容)。
    • 硕士如需使用,请使用编辑器搜索 degree=phd 标志,并修改 phdmaster 即可。
    • 本科毕业设计论文推荐直接使用 polossk/LaTeX-Template-For-NPU-Thesis 模板,该模板的格式控制均集成在 setting.tex 文件当中,更方便初学者使用与学习。
  • Q:参考文献的格式是哪个标准下的?
  • Q:我是 CTEX 套件用户,运行时出现错误,是什么原因?
    • 因为 CTEX 套件年久失修,我们没有适配。请使用不低于 Texlive 2021 版本编写您的学位论文。
  • Q:为什么页眉出现了多余的数字编号?
    • 因为 fancyhdr 在旧版本中 leftmark 有 bug,新版本已修复,请使用不低于 Texlive 2021 版本即可避免该问题。
  • Q:有专家评审问询到参考文献格式中为何会有多余的斜线(斜杠),这是什么原因?
    • 最新国标是允许文档类型中通过斜线标注文档出处的,但是很多专家并不会关心新国标有哪些改动,会认为斜线是一种错误。如果遇到这种情况,请立即更换使用订正后的 nputhesis-noslash.bst 格式文件,如果有其他问题,请提交 issue,注明所引用的参考文献的类型以及对应的 bibtex 代码,最好展示出目前的输出结果与目标期望输出结果,方便我们帮助维护改正。
  • Q:我是 Linux/macOS 用户,字体是否兼容?
    • 本模板使用的是 Windows 系统的自带字体(宋体、黑体、楷体、仿宋、Times New Roman、Consolas),Windows 环境下目前能保证字体的指向正确。
    • 本模板目前兼容 Linux 与 macOS 用户。请在编译的时候添加 -shell-escape 选项,以保证模板正确识别操作系统。
    • Linux 用户请检查自己的字体库中是否有上述字体,推荐从 Windows 系统上拷贝一整套字体(宋黑楷仿宋)以方便后续使用。
    • macOS 用户使用系统自带的宋、黑、楷、仿宋字体(华文字体系列),对应的字体名分别是:STSongti-SC-Regular、STHeiti、STKaiti、STFangSong。
  • Q:我是 macOS 用户,为什么我的黑体与别人的不一样?
    • 这是由于 macOS 用户的黑体字体 STHeiti 与 Windows 上黑体字体 SimHei 本质上是两种不同的字体,因此部分汉字的显示效果有差异。目前非 Windows 操作系统的用户并没有取得 Windows 上黑体字体 SimHei 字体的授权,所以需要另外下载或拷贝使用。
    • 在文章送审时,你的评委老师的电脑极有可能是 Windows 的,所以为了避免字体显示问题(如文字很挤、字重不统一等),建议从 Windows 上拷贝一整套字体(宋黑楷仿宋),然后在文档类中添加选项 winfonts=true 以强制使用 Windows 字体。
    • 如果你觉得 Windows 上的字体也很丑不够美观,可以自行更换为其他开源或商用字体。比如开源的思源宋体思源黑体,然后更新对应操作系统的字体配置。
    • 请注意,如果你的文章会被收录或者其他商业用途,建议使用开源字体或默认操作系统字体,以避免不必要的麻烦。
  • Q:我没有等宽字体(默认 Consolas),应该怎么办?
    • 非 Windows 操作系统的用户(包括 macOS 与 Linux 用户)需要安装 Consolas 字体后使用,字体文件存放于 fonts/English-Fonts/ 文件夹中。
    • fonts 文件夹与 Fonts-For-NPU-Thesis-Template 项目保持同步,可通过执行更新命令 git submodule update --init --recursive 来获取最新版本。
    • 如果有其他字体的需求,也可以自行更改 yanputhesis.cls\newcommand\codeFont{Consolas} 为其他字体,例如修改为 \newcommand\codeFont{Source Code Pro} 以使用 Source Code Pro 字体。
  • Q:有没有 Overleaf 版本?
    • 也许可以通过本 repo 在 Overleaf 上建立一个项目,但是可能会遇到字体问题,请再三斟酌。
  • Q:这个编译报错了 balabala,怎么解决?
    • 请优先检索过往 issue 查看是否已有人提及相关解决方案。其次请确认是模板的 bug,我们将及时发布补丁。如果是其他问题,恕我们精力有限不能一一答复,建议善用搜索引擎或 ChatGPT。
  • Q:编译时卡顿了,怎么解决?
    • 对于 Windows 电脑,如果在编译过程中遇到卡在字体缓冲问题,请先关闭当前进程,并用管理员模式打开命令提示符(或终端),键入 fc-cache -f -v 强制刷新字体缓存即可
  • Q:LaTeX 怎么调整公式大小/公式换行/怎么加粗?
    • 抱歉,恕制作者们不解答任何 LaTeX 使用问题,请您自行百度或查阅相关书籍。
  • Q:请问默认的 makefile 提供了哪些功能?
    • 本模板提供了简单的 makefile 文件来控制编译流程,可以编译 dtx 文件从而得到模板类 cls 文件,也可以编译大论文文档 yanputhesis-sample.tex
    • 所有基本流程为关闭当前已打开的输出 pdf 文件并删除,清理缓存文件,编译 tex 文档并打开。
    • 默认选项 make 或者 make main 负责编译编译 dtx 文件从而得到模板类 yanputhesis.cls 文件和样例文件 yanputhesis-sample.tex
    • 提供选项 make sample 负责生成不含参考文献的样例文档 yanputhesis-sample.pdf
    • 提供选项 make samplebib 负责生成含有参考文献的样例文档 yanputhesis-sample.pdf
    • 同时提供了 open[sample], close, clean, wipe[sample] 四组快捷指令,其效果如下:
      • open[sample]:使用 Acrobat 打开输出的 pdf 文件;
      • close:终止 Acrobat 进程从而关闭输出的 pdf 文件(会误伤其他已打开的文件);
      • clean:删除 *.aux 和其他缓存文件;
      • wipe[sample]:删除输出的 pdf 文件;
    • 对于 Linux 玩家而言,可参考上述功能,并在此 makefile 基础上稍作修改即可使用。
  • Q:关于中文标题页和英文标题页排版太靠上的问题
    • 尝试修改yanputhesis.cls中的设置中文标题页, 将
       \fSong \sSanhao \par \vspace{1\baselineskip} % 1 * 21pt * 1.5
      修改为
       \fSong \sSanhao \par \vspace*{2\baselineskip} % 1 * 21pt * 1.5
      加星号强制输出空行, 后续可以自行调节

成品预览

以下命令或环境按照实际论文中出现顺序排序:

  • 封皮页及标题页 \maketitle

  • 中文摘要及关键字 \begin{abstract} ... \begin{keywords} ... \end{keywords} \end{abstract}

  • 英文摘要及关键字 \begin{engabstract} ... \begin{engkeywords} ... \end{engkeywords} \end{engabstract}

  • 参考文献 \bibliography{reference}

  • 附录 \appendix \section{附录} ...

  • 致谢 \begin{acknowledgements} ... \end{acknowledgements}

  • 发表的学术论文和参加科研情况 \begin{accomplishments} ... \end{accomplishments}

  • 原创性声明 \makestatement

    展示 展示
    预览 Coverpage Frontpage_Chs
    说明 封面页(外封面) 中文标题页(题名页/内封面)
    预览 Frontpage_Eng Abstract_Chs
    说明 英文标题页 中文摘要
    预览 Abstract_Eng References
    说明 英文摘要 参考文献
    预览 Appendix Acknowledgements
    说明 附录 致谢
    预览 Accomplishments Statement
    说明 参加科研情况 原创性声明
    预览 Blindreview_On Blindreview_Off
    说明 开启盲评 默认关闭盲评

其他注意事项

  • 格式符说明
    • 字体大小(size)的控制命令统一前缀为 s
    • 字体格式(font)的控制命令统一前缀为 f
  • 开源许可问题
    • 基于 GPLv3-LICENSE
    • 如有帮助,请在自己的文章中引用;如果在此基础上新增/删除/更改,请按照开源许可的要求继续保持开源,且同时继续使用相同开源许可

鸣谢

本模板的实现参考了目前仍在维护的模板,这些模板的贡献者有(按姓氏排序):

  • 西工大玄学办:Congzhuo Fang (@CongzhuoFang), Shangkun Shen (@polossk),Zhihe Wang (@cfrpg),Jiduo Zhang (@kidozh),Lin Zhang (@DrLinZhang), Weijia Zhang (@njzwj);
  • 西北工业大学数学与统计学院:Yiqiang Li (@lyq105),Ying Liu,Jiashu Lu,Zongze Yang (@lrtfm);
  • GitHub 热心网友:@Alex-Beng, @itf0x, Li Kunyao (@likunyao),@neilwth,@wayne17,Wei Wang (@WilmerWang)。

如何参与该项目

您的使用与推广就是对本项目的最大支持!如果您想贡献代码或参与后期维护,我们十分欢迎!

  • 目前模板成型于 2022 年。如果后期有任何格式上的变化,欢迎 fork-modify-pull-request 或者在 issue 中详细说明新旧格式之差异,我们乐意解决模板使用的问题
  • 如果您已经光速修复了 bug,欢迎提交 pull-request 至 public-dev 分支当中,我们会及时将您的代码与更新日志一同合并至 master 分支,并署名鸣谢
  • 如果需要改动,您可能需要使用 zhmakeindex 来维护更新清单,请下载对应操作系统的可执行文件

如何赞助该项目(钞能力催更)

如果本项目对您的顺利毕业有那么一点点的帮助,希望您慷慨解囊。

开个玩笑。玄学办不拒绝您的合法资助,并且会公示您的资助金额与后续用途。目前支持扫码赞助,欢迎有条件的同学、老师请玄学办的小伙伴喝咖啡:)

来点微信扫码 或者来点可乐

打赏记录

截止 2024 年 1 月 11 日,共收到赞赏 19 次,累积收款 217.38 元,感谢各位大佬的资助!因篇幅限制,详细捐献清单请查阅 Sponsorships

时间 平台 金额 昵称 单号 留言备注
2024年1月11日 18:09:46 微信赞赏码 ¥99.96 ******者 10001081012023122217209****0236 很好用,大佬喝茶
2023年12月26日 18:22:34 支付宝扫码 ¥4.88 **舞 20231226220014823714****6101 请玄学办喝快乐水
2023年12月22日 21:05:53 微信赞赏码 ¥9.88 *逖 10001081012023122217209****0236 感谢,支持开源
2023年12月16日 11:30:53 支付宝扫码 ¥4.88 *达 20231216220014663414****6270 请玄学办喝快乐水
2023年12月10日 23:15:26 支付宝扫码 ¥4.88 **华 20231210220014883514****4736
2023年11月30日 21:43:30 支付宝扫码 ¥4.88 *杰 20231130220014028814****2037 大佬喝茶
2023年11月29日 21:24:22 支付宝扫码 ¥4.88 **然 20231129220014260714****6461 感谢
2023年11月16日 19:54:12 支付宝扫码 ¥4.88 **强 20231116220014969114****9830
2023年11月9日 21:16:21 支付宝扫码 ¥4.88 **祥 20231109220014462214****4496
2023年11月6日 16:17:48 支付宝扫码 ¥4.88 *辉 20231106220014813814****2552
... ... ... ... ... ...

BibTeX

@software{NWPUThesisLaTeXTemplate,
    title       = {Yet Another {{\LaTeX}} Template for NPU Thesis},
    author      = {Shangkun Shen and Zhihe Wang and Jiduo Zhang and Weijia Zhang},
    month       = {11},
    year        = {2019},
    publisher   = {Zenodo},
    journal     = {GitHub repository},
    doi         = {10.5281/zenodo.4159248},
    url         = {https://doi.org/10.5281/zenodo.4159248}
}

Copyright

Use this code whatever you want, under the circumstances of acknowledging the GPL license on this page below. Star this repository if you like, and it will be very generous of you!

License

Copyright (c) 2016-2022 NWPU Metaphysics Office https://github.com/NWPUMetaphysicsOffice

This repo is under the license of GNU General Public License v3.0. Check the license for details.

The association NWPU Metaphysics Office is a club-like student group. The members are cfrpg, kidozh, njzwj, polossk, in alphabet order.

彩蛋

  • PhD-Thesis Master-Thesis 分别对应着博士服与硕士服的颜色。

yet-another-latex-template-for-npu-thesis's People

Contributors

cfrpg avatar congzhuofang avatar itf0x avatar kidozh avatar likunyao avatar polossk avatar wayne17 avatar wilmerwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yet-another-latex-template-for-npu-thesis's Issues

[BUG] 中文封面“题目”二字应为一号大小

描述您的问题 (Describe the bug)

中文封面“题目”二字应为一号大小

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):master-6118d50
  2. 操作系统 (OS):Overleaf
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):Overleaf-2019
  4. Tex 编译器 (Tex compiler, eg. XeTeX): XeLaTeX

错误内容 (Error contents)

根据西北工业大学博士研究生学位论文编写规则(试用版),中文封面“题目”二字字号应为26,即一号。

当前版本为二号大小。

[Suggestion]Abstract page header is not correct

In your template:
image
In the Standers:
image

And it will be much more thanks if a brief introduction for phd and master thesis change is provided !

And Thanks for all your works. It's very useful for me. Thanks you!

Best regard!

[Suggestion] Check out a new branch working for Overleaf

在留下您的建议时,辛苦您同步提供如下信息:

  1. 代码版本(Code version)(留空则默认最新):master分支最新版本
  2. 操作系统 (OS):Overleaf
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):2020
  4. Tex 编译器 (Tex compiler, eg. XeTeX): XeLaTex

你的建议是否和一个已知问题有关 (Is your feature request related to a problem? Please describe.)
No

告诉我们你想要的解决方案(Describe the solution you'd like)
Checkout a new branch, for example, whose name is overleaf. Do some necessary changes to make it work for Overleaf. Keep the style same as that produced by a local TeX system on a local machine.

Overleaf is really a good platform widely used by researchers. I believe that a lot of Ph.D. candidates are using it to draft their thesis. The necessary changes should be minimal. For example, in order to use FangSong, you need to set \newcommand\defaultSog{simsun.ttc} with the font file simsun.ttc uploaded to Overleaf. The master branch now is \newcommand\defaultSog{SimSun}. Overleaf does not understand what SimSun is.

告诉我们你想到的其他替代方案(Describe alternatives you've considered)
简介而精准的告诉我们其他替代方案 (A clear and concise description of any alternative solutions or features you've considered.)

Of course, if you choose not to provide such a solution for Overleaf users, they could make their own changes to adapt to Overleaf. That is OK.

I do think Overleaf version is necessary. And it is not hard.

其他信息(Additional context)
添加有关这个建议的其他信息,例如截图(Add any other context or screenshots about the feature request here.)

[BUG]Mac上编译报错,应该是字体原因,不知道怎么解决

编译报错

报错信息:
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:128: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:128: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:128: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:128: Package fontspec Error: The font "" cannot be found. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:129: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:129: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:129: Undefined control sequence. [...ltKai, BoldFont=\defaultHei]{\defaultSog}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:131: Undefined control sequence. [\setmonofont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Package fontspec Error: The font "" cannot be found. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:132: Undefined control sequence. [\setmainfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Package fontspec Error: The font "" cannot be found. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:134: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:135: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:136: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:137: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:138: Undefined control sequence. [\setCJKfamilyfont]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/settings/thesis-setting.tex:140: Undefined control sequence. [\newcommand]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/coverpage.tex:6: Package fontspec Error: The font "" cannot be found. [^^I^^I\fHei]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/coverpage.tex:21: Package fontspec Error: The font "" cannot be found. [^^I^^I\fSong]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/coverpage.tex:65: Package fontspec Error: The font "" cannot be found. [^^I^^I\sSanhao\fKai]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/coverpage.tex:81: Package fontspec Error: The font "" cannot be found. [...R{20XX}\fSong{年}\fTNR{X}\fSong{月}} \hfill}]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Undefined control sequence. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/frontmatter/frontpage_eng.tex:8: Package fontspec Error: The font "" cannot be found. [^^I^^I^^I\sSanhao]
/Users/Desktop/Yet-Another-LaTeX-Template-for-NPU-Thesis/chapters/chapter01.tex:31: Package fontspec Error: The font "" cannot be found. [...$,超高公式会被压缩$\frac{1}{2}=0.5$或者使用\lstinline`]

分析了一下:是字体原因,但是不知道怎么解决。。

[BUG]标题数字部分也应该黑体吧

示例给的是黑体,包括英文部分(数字)。
3.5.1 标题
一级标题:黑体,三号,段前0.5行,段后0行,固定行间距20pt。编辑时,在一级标题前、后各留一空行(宋体,小四号,单倍行距)。
二级标题:黑体,四号,段前0.5行,段后0行,固定行间距20pt。
三级标题:黑体,小四号,段前0.5行,段后0行,固定行间距20pt。

[BUG]如何修改学位

描述您的问题 (Describe the bug)

在tex中修改degree=bcl或mst,生成的pdf仍然是博士学位论文。

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):windows
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):2022
  4. Tex 编译器 (Tex compiler, eg. XeTeX): xelatex

可复现内容 (Reproduceable steps)

修改了.tex初始语句,\documentclass[lang=chs, degree=bcl, blindreview=false, adobe=true]{yanputhesis},生成的pdf仍然是博士学位论文。

** 附加内容 (Other info, bugs and logs)**

可能还需要同步修改yanputhesis.cls的格式内容?

[BUG]硕士论文格式不对

硕士论文格式调不出来,初步认为是因为cls文件里面mst勿敲为了全称master

32-34行应为:
\def\set@type@mst{@NPU@type@phdfalse@npu@type@msttrue@npu@type@bclfalse}
\def\set@type@bcl{@NPU@type@phdfalse@npu@type@mstfalse@npu@type@bcltrue}

感谢作者的模板!

[Suggestion]建议收容所有需要的字体,linux下一般无预装字体

欢迎您对PaddlePaddle提出建议,非常感谢您对PaddlePaddle的贡献!
在留下您的建议时,辛苦您同步提供如下信息:

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):
  4. Tex 编译器 (Tex compiler, eg. XeTeX):

你的建议是否和一个已知问题有关 (Is your feature request related to a problem? Please describe.)
简洁、精准的概括您的问题(A clear and concise description of what the problem is. Ex. I'm always frustrated when [...])

告诉我们你想要的解决方案(Describe the solution you'd like)
简介而精准的告诉我们你想要怎么样 (A clear and concise description of what you want to happen.)

告诉我们你想到的其他替代方案(Describe alternatives you've considered)
简介而精准的告诉我们其他替代方案 (A clear and concise description of any alternative solutions or features you've considered.)

其他信息(Additional context)
添加有关这个建议的其他信息,例如截图(Add any other context or screenshots about the feature request here.)

[BUG] Reference is not correct

In your method:
image

In the Standard:
image
image

Hello developer : I found a few bugs in reference:
Journal(in bibtex:article) and Phd thesis(in bibtex:phdthesis) is very important for fix,but 学位论文thesis\会议论文conference paper\专利pattern\研究报告research paper\专著book requires a location in the reference which is not support in bibtex, which can be avoid as ref the author's paper.

So my only request is fit the journal's reference in standard:

  1. et al should have a comma in the frount.
  2. there have a space
    image
  3. That's all! Thanks!

I give you my reference:

@Article{sajadi20193d,
title={3D printed tubulanes as lightweight hypervelocity impact resistant structures},
author={Sajadi, Seyed Mohammad and Woellner, Cristiano F and Ramesh, Prathyush and Eichmann, Shannon L and Sun, Qiushi and Boul, Peter J and Thaemlitz, Carl J and Rahman, Muhammad M and Baughman, Ray H and Galv{~a}o, Douglas S and others},
journal={Small},
volume={15},
number={52},
pages={1904747},
year={2019},
publisher={Wiley Online Library}
}
@Article{cai2020adaptive,
title={An adaptive bubble method for structural shape and topology optimization},
author={Cai, Shouyu and Zhang, Weihong and Yang, Chen},
journal={Computer Methods in Applied Mechanics and Engineering},
volume={360},
number={52},
pages={112778},
year={2020},
publisher={Elsevier}
}

mac版本字体问题

作者您好:
这个模版是不是没有考虑mac os的兼容问题。我编译过程遇到字体问题。对于字体选择这块我不是很懂,如果我自己想操作的话,是不是需要自己把字体拷贝过来。然后具体改thesis-setting的哪一块,谢谢您!

[BUG] proof使用proof命令时报错

在Mac OS系统下使用Tex Live 2021编译,证明环境无法使用。
错误提示为

Undefined control sequence.
\\proof [#1]->\par \pushQED 

复现代码

\begin{proof}
    证明内容
\end{proof}

如果证明环境这段代码注释掉,则能够正常编译通过。

\renewenvironment{proof}[1][\proofname]{\par  % 证明环境
    \normalfont\topsep{0pt}\partopsep{0pt}\trivlist\item[   %
        \hspace{5\labelsep}\strong #1\@addpunct{:}          %
    ]\ignorespaces}{\popQED\endtrivlist\@endpefalse}        %

如果是需要添加什么包,或者使用命令的使用方式不对,请告知,多谢!

摘要代码不熟悉误报

描述您的问题 (Describe the bug)
英文摘要的空行被编译为大段无意义文字

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):win10
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):2020
  4. Tex 编译器 (Tex compiler, eg. XeTeX):

错误内容 (Error contents)

无报错

可复现内容 (Reproduceable steps)

可参考原来模板和readme.md中的英文摘要的示例,原代码中英文摘要处无实际内容
Snipaste_2022-12-08_13-31-08
然而/blindtext编译出一段无意义文字
Snipaste_2022-12-08_13-27-41

** 附加内容 (Other info, bugs and logs)**

使用\bibliographystyle{nputhesis-noslash}依然无法去掉参考文献中的双斜杠

描述您的问题 (Describe the bug)

简洁、精准的概括您的问题(A clear and concise description of what the bug is.)例如:“在Mac OS系统下使用Tex Live 2019编译失败”

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):
  4. Tex 编译器 (Tex compiler, eg. XeTeX):

错误内容 (Error contents)

如果您能提供错误信息(比如编译器),请在此粘贴 (Provide the error information if you could)

可复现内容 (Reproduceable steps)

请详细描述您的问题,同步贴出报错信息、日志、可复现的代码片段 (Describe your current behavior and code to reproduce the issue)

** 附加内容 (Other info, bugs and logs)**

如果您对于此BUG有何见解或者有一些附加信息,请在此键入(Tell us your hints and thought about the bug)

sublime 上运行不了

运行document.tex 文件会出现 CJKnumb.sty:67: Undefined control sequence. [\CJKaddEncHook] 这个错误,请问怎么解决?
image

[BUG]TexLive 2021下xelatex编译报错" LaTeX Error: Command \CJKglue already defined"

使用最新的1.5.3模板,在win10下使用texlive2021编译时出错。

! LaTeX Error: Command \CJKglue already defined. Or name \end... illegal, see p.192 of the manual.

尝试参考"CJKnumb 不再可用",似乎是xeCJK与CJKnumb产生了冲突。做了以下尝试:

  1. 将settings/thesis-setting设置中文字体的\usepackage{CJKnumb}更换为\RequirePackage{CJKnumb}错误依然存在;
  2. 将\usepackage{CJKnumb}注释后,xelatex可以顺利编译;但不知道CJKnumb的功能是否保留?
  3. 将CJKnumb更换为zhnumber,xelatex可以正常编译;但不知道功能是否正常?

[Suggestion] 关于英文部分的逗号问题及名单问题

  1. Xi’an P. R. China 按照手册,应该没有逗号
  2. 学位论文一般由十一个部分组成,依次为:1.封面;2.中文、英文题名页;3.评阅人和答辩委员会名单;4.中文、英文摘要;5.目录页;6.正文;7.参考文献;8.附录;9.致谢;10.在学期间发表的学术成果和参加科研情况;11.声明。 第三部分没有

插入算法问题,文本复制问题[BUG]

我使用macOS 12.0.1,使用TexPad软件,XeLaTeX,碰到两个问题

  1. 使用\usepackage{algorithm}和\usepackage{algpseudocode}两个包后,\State正常,无法使用while/if/for,示例代码:
    \renewcommand{\algorithmicrequire}{\textbf{Input:}}
    \renewcommand{\algorithmicensure}{\textbf{Output:}}
    \begin{algorithm}[h]
    \caption{Operating process}
    \begin{algorithmic}[1]
    \Require $N_p$.
    \Ensure $\mathcal{H}$.
    \State {Definition of the function}
    \While {not terminated}
    \State {$fitness$}
    \For {Each individual}
    \State {$fitness$}
    \EndFor
    \State {execute}
    \EndWhile
    \Return {$\mathcal{H}$}
    \end{algorithmic}
    \end{algorithm}

报错为
./chapters/chapter04.tex:151: Missing number, treated as zero.

\ALG@b@2@EndFor@0
l.151 \EndFor

  1. 不加伪代码,可正常编译为PDF,但复制PDF中的字出来是乱码,例如复制PDF中“基于”二字,复制结果为“ะӄ”。

补充:参考 https://www.zhihu.com/question/32207411/answer/334313251 后,在coverpage插入了一个全角空格,文中宋体可以正常复制了,但楷体和黑体无论是否加粗都仍旧复制出乱码。
有意思的一点是,coverpage中“学校代码”等几个字可以正常复制。求大佬定位问题!

感谢大佬!

摘要和目录的页码

你好,摘要和目录的页码应该是罗马数字大写,tex文件中是大写Roman,但是生成的pdf文件是小写

[Suggestion]关于section和subsection以及subsubsection的编号没有左对齐的问题

关于section和subsection以及subsubsection的编号没有左对齐的问题。
正常编译之后发现小标题(如:1.2 国内外研究现状,1.2.1 xxxx)没有左对齐。
经过测试,发现cls文件第169行的命令\titleformat{\section}[hang]{\sffamily\fHei\sSihao}{\sffamily\fHei\sSihao\thesection}{0.5em}{}{}被写成了两行,即多了一个回车(subsection和subsubsection同理)。将回车删除之后编译,即可左对齐。

[BUG] 中文姓名在英文版封面显示为方框

描述您的问题 (Describe the bug)

中文姓名在英文版封面显示为方框

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):master分支最新版本6118d50
  2. 操作系统 (OS):overleaf
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):overleaf-TexLive 2019
  4. Tex 编译器 (Tex compiler, eg. XeTeX): XeLaTeX

可复现内容 (Reproduceable steps)

document.tex\authorname使用中文姓名。
frontpage_eng.tex会在作者一栏显示方框。

可能的解决方案 (Possible fix)

Add a new defined command: \newcommand{\authornameeng}{SomeBody} and let frontpage_eng.tex use \authornameeng.

[BUG] 英文封面部分内容没有按要求加粗

描述您的问题 (Describe the bug)

Overleaf下英文封面部分没有加粗。

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):master-6118d50
  2. 操作系统 (OS):Overleaf
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):2019
  4. Tex 编译器 (Tex compiler, eg. XeTeX): XeLaTeX

错误内容 (Error contents)

Overleaf下英文封面部分没有加粗。

可复现内容 (Reproduceable steps)

fontpage_eng.tex中重复定义了\setmainfont{\defaultEngFont}。在Overleaf中,为了使英文可加粗,需要修改thesis-setting.tex\setmainfont{\defaultEngFont}\setmainfont[BoldFont=timesbd.ttf]{\defaultEngFont}以使用上传到Overleaf的粗体罗马英文字体。frontpage_eng.tex中重复定义了\defaultEngFont,故覆盖了全局设定,造成英文封面无法加粗英文。

可能的解决方案:frontpage_eng.tex中注释掉相关部分。

[BUG]CTEX无法运行

win11 使用ctex2.9无法成功编译

报错信息、日志、可复现的代码片段 (Describe your current behavior and code to reproduce the issue)*(Xelatex)
! Undefined control sequence.
l.263 \theorempreskip
{0pt}

[BUG]按照readme说明,编译硕士论文失败

描述您的问题 (Describe the bug)
按照readme说明,将degree=phd改为degree=mst后,编译的pdf仍然为博士论文的版本

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):macOS
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):MacTex
  4. Tex 编译器 (Tex compiler, eg. XeTeX): XeLaTex

** 附加内容 (Other info, bugs and logs)**

在yanputhesis.cls中的31-33行中定义如下
\def\set@type@phd{ @NPU@type@phdtrue@npu@type@mstfalse@npu@type@bclfalse}
\def\set@type@master{ @NPU@type@phdfalse@npu@type@msttrue@npu@type@bclfalse}
\def\set@type@bachelor{@NPU@type@phdfalse@npu@type@mstfalse@npu@type@bcltrue}

所以在tex文件中应该使用degree=master来生成硕士学位论文

[BUG]中文摘要后没有空白页

描述您的问题 (Describe the bug)

简洁、精准的概括您的问题(A clear and concise description of what the bug is.)例如:“在Mac OS系统下使用Tex Live 2019编译失败”

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):
  4. Tex 编译器 (Tex compiler, eg. XeTeX):

错误内容 (Error contents)

如果您能提供错误信息(比如编译器),请在此粘贴 (Provide the error information if you could)

可复现内容 (Reproduceable steps)

请详细描述您的问题,同步贴出报错信息、日志、可复现的代码片段 (Describe your current behavior and code to reproduce the issue)

** 附加内容 (Other info, bugs and logs)**

如果您对于此BUG有何见解或者有一些附加信息,请在此键入(Tell us your hints and thought about the bug)

[Suggestion]上下页边距不满足要求

模板中设置的上下边距为2.54cm,但是打印出来上边距偏大3cm下边距小2cm。
请问有没有遇到这种问题?

windows环境,texstudio,xelatex编译

[BUG] 页眉编号有误?大概

页眉部分编译后会出现章节编号重复。

比方说绪论,编译之后页眉显示“1 1. 绪论”,尝试编辑cls页眉块,失败了T_T

总之就是,前面的章节编号显示两遍,“2 2. 相关知识”。类似这种。

章节数字+空格+章节数字+.+章节标题。

此外不知道是不是我的问题,win10环境,adobe song std字体无法编译,所以在document里面改为adobe=false。因为下载下来的adobe song std字体都是叫做adobe song std light。编译会出现一些符号already defined或者缺少adobe song std。
如果可以的话,希望提供一些指导。

感谢你们的工作,latex比word好用多了!

[BUG] 单页页眉格式问题

*单页页眉编译出来的格式为 1 1. 章节标题

单页页眉编译出来的格式为 1 1. 章节标题。多了一个1. ”

环境与版本信息

  1. 代码版本(Code version)(留空则默认最新):
  2. 操作系统 (OS):win10
  3. Tex Live版本,其他Tex版本也请注明 (Version of Tex Live or other Tex distribution):tex live 2020
  4. Tex 编译器 (Tex compiler, eg. XeTeX): xelatex

单页页眉编译出来的格式为“1 1. 章节标题”。多了一个1. 但是你们的原版pdf是没有这个1. 的,请问是什么问题啊。

符号表的问题

您好!我看您里面的sample文件里面有符号表,但是我用latex编译后,编译后的pdf就没有符号表。

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.