Giter Site home page Giter Site logo

thenetadmin / zjuthesis Goto Github PK

View Code? Open in Web Editor NEW
2.4K 2.4K 576.0 1.41 MB

Zhejiang University Graduation Thesis LaTeX Template

Home Page: https://thenetadmin.github.io/zjuthesis

License: MIT License

TeX 86.30% Shell 9.91% Python 2.22% Dockerfile 0.42% PowerShell 0.82% Perl 0.29% Makefile 0.04%
latex latex-template latex-thesis-template overleaf thesis-template xelatex zhejiang-university zjuthesis

zjuthesis's Introduction

浙江大学学位论文 LaTeX 模板

ZJUTHESIS GitHub release GitHub All Releases Commit Since Latest Release GithubAction GitHub Discussion

简介

本项目为浙江大学学位论文的 LaTeX 模板,包含本科生、硕士生与博士生模板,以及英文硕博士模板。

This is a LaTeX template for Zhejiang University graduation thesis/design. It provides undergraduate and graduate (master and doctor) templates. It also provides an English template for graduate students. See English template user manual for more details.

CC98 校内讨论贴

GitHub 讨论版

使用

zjuthesis 模板有三种使用方式,Overleaf,本地编译,或者 Container 编译:

  • Overleaf 是一个线上 LaTeX 编辑器,可以在不安装任何工具的情况下编写 LaTeX 文档,同时也可以和其他人共享文档,共同编辑。
  • 本地编译比 Overleaf 更快,而且本地编译可以使用 Git 来记录版本。推荐有能力的同学设置本地编译环境,并推荐使用 Visual Studio Code 配合 LaTeX workshop 插件 (vscode 使用方式见FAQ)。
  • Container 编译是使用 GitHub 提供的 Codespace 搭配 Container 来编译,这个环境提供了浏览器内的 VS Code 界面以及 TeX Live 的编译环境。这种方式适合熟悉 Container 与 GitHub Codespace 相关用法的同学使用。

Overleaf

  1. 下载模板代码 中的 zjuthesis-v*.*.*-overleaf.zip 文件
  2. 在 Overleaf 中上传这个 .zip 压缩文件以创建一个新 Overleaf 项目
  3. 在 Overleaf 界面左上角点击 "Menu"
    • 选择 "Compiler" 为 "XeLaTeX"
    • 选择 "TeX Live version" 为 "2019" 或者更新的版本
  4. 参照 Overleaf 项目中 fonts/README.md 的说明下载所需字体,并上传到 fonts 文件夹中
  5. 使用 Overleaf 编译
    • 选择专业模板与毕业学位的方式参见下文 "本地编译"

本地编译

  1. 安装 TeXLive 工具包,编译需要 XeTeX 引擎。安装过程可以参考浙江大学镜像站提供的文档,以便在校内网下更快下载。

  2. 下载模板代码, 每个专业模板都有预览 pdf 文件,可以单独下载查看。 模板代码请下载 zjuthesis-v*.*.*.zip 文件 (如果你在用 Clone 或者 Fork 得到的代码,请切换到最新的 release tag,避免 master 分支上的不稳定更新破环你的论文的样式)

  3. zjuthesis.tex\documentclass[]{zjuthesis} 部分填写个人信息,其中以下信息用于控制文档的生成:

    • Degreeundergraduate 时,编译本科生论文:
    Field Option 1 Option 2 Option 3
    Type thesis: 论文类 design: 设计类
    Period proposal: 开题报告 final: 最终论文/设计(含开题报告) paper: 最终论文/报告(无开题报告)
    BlindReview true: 生成盲审用 pdf(隐藏个人信息) false: 生成提交用 pdf
    MajorFormat general: 默认模板 config/format/major/ 下目录名相同
    • Degreegraduate 时,编译硕士生/博士生论文:
    Field Option 1 Option 2
    Type thesis: 学术论文 design: 专业学术论文
    BlindReview true: 生成盲审用 pdf(隐藏个人信息) false: 生成提交用 pdf
    MajorFormat general: 默认模板 config/format/major/ 下目录名相同
    GradLevel master: 硕士 doctor: 博士
    • 其他设置
    Field Option 1 Option 2
    PrintFilePath true: 在每页侧边打印该页对应 TeX 文件路径 false: 不打印此输出
    TwoSide true: 章节末的偶数页留白,保证下章节的标题位于奇数页 false: 取消偶数页留白
  4. body 目录下编写内容

  5. pages 目录下填写必要的内容,如审核评语等

  6. figure 目录下保存图片,在 body/ref.bib 内插入文献条目

  7. 在根目录下运行命令 latexmk(或者 latexmk -xelatex -outdir=out zjuthesis)即可使用 XeTeX 编译 pdf 文件到 out 目录(该目录不会被记录版本)。请务必使用此 latexmk 命令进行编译(除非你已经了解 LaTeX 的工作机制),否则你可能遇到参考文献无法显示等问题

  8. 如需使用 LuaTeX 编译,可运行命令 latexmk -pdflua -outdir=out

注意

  • 每年的三月底四月初会有 TeXLive 的版本升级,届时本模板会根据 TeXLive 的更新做出一定的修改,请在提交最终论文前查看并应用本模板的更新。
  • 如果你使用 Mac OS 10.15 及以上版本,并且 TexLive 中的 ctex 包版本低于 2.5,会产生宋体字体判断问题,导致编译得到的 pdf 中字体出现误差。要解决这个问题,可以将 ctex 包升级到 2.5 以上,或者临时在 ctex 包的选项中加入 fontset=macnew,详见 issue 79
  • 本模板已经兼容 TeXLive 2021。TeXLive 2018 以及之前的版本复制伪粗体文字会产生乱码,建议使用本地 TeXLive 的同学使用最新版 TeXLive。
  • 计算机专业的部分页面与学校通用格式不同,如果你是计算机专业的同学,请使用计算机专业的模板。

使用容器编译

本模板提供了一套配置文件,用以支持在容器中安装TeX Live,项目使用的字体,以及VS Code上的LaTeX Workshop插件,配合GitHub Codespaces可以做到开箱即用。感谢 FUTURETECH6 同学贡献的代码

GitHub Codespace使用方法:

  1. 创建个人的项目(直接fork,或自行clone并修改remote)
  2. 在个人的项目主页点击"Code"
  3. 点击"Codespaces"
  4. 点击"New codespace"
  5. 等待容器构建(这一过程约要10分钟,因为要在标准Ubuntu的镜像中安装TeX Live)
  6. 构建完成后,可以选择在VS Code(需要GitHub Codespaces插件)中或在浏览器中打开,然后按照在本地的使用方式使用

注意

  • 这一功能的初衷是为了方便性能较弱的设备(例如低功耗笔记本电脑)也能利用免费的云运算资源较快地完成编译,因此不建议在本地性能较强的机器上使用(请改用"本地编译")。

字数统计

本模板提供了一个脚本用于统计正文字数,请在根目录下使用 latexmk 编译一遍模板,然后执行脚本 script/utils/word_count.sh。 此脚本调用了 texcount 工具,该工具是 TeX Live 的一部分,不需要额外安装。

Slides 模板

作者用于毕业答辩的一个 Slides 模板 (Microsoft PowerPoint 模板)

HGGshiwo 同学于 2021 年开发了基于 Beamer 的 Slides 模板,有兴趣的同学可以参考如下几个 repo

参考文档

常见问题与解决方案请参考FAQ,模板使用请参考使用手册,模板修改与二次开发请参考开发手册

本模板所使用的各专业规范文件请参考 zjuthesis-std

贡献

对本项目最好的贡献方式是在 GitHub Issue 里提交你发现的 BUG,或者贡献 Pull Request。 如果你不熟悉 GitHub 的运作方式,也可以通过邮件联系我,联系方式位于 zjuthesis.tex 顶部。

本项目提供了 LaTeX 模板,但并不负责教会用户使用各种 LaTeX 工具与环境。 与工具和环境有关的问题(例如 TeXStudio 如何处理参考文献)请先自行上网搜索解决方案。 在本项目的 GitHub Issue 里也已经有很多相关内容可供查阅。 当以上尝试均失败后,可到本项目的 GitHub Discussion 板块进行讨论。

本项目的 Issue 板块只处理使用命令行 latexmk 命令编译后产生的问题,不处理使用其他工具(如 TeXStudio)产生的问题。

开源许可

本项目代码基于 MIT 协议开源

学校标志与学校文件的版权归浙江大学所有

zjuthesis's People

Contributors

97littleleaf11 avatar asudy avatar azdet avatar civp avatar endless-hu avatar fomalhauthmj avatar futuretech6 avatar gcs-zhn avatar guan-t7 avatar haochengxia avatar jovi-wong avatar marmotatzju avatar meetwq avatar megrxu avatar my0sotis avatar nonohh avatar ohgagagaga avatar pinkr1ver avatar ralxyz avatar shuenhoy avatar thenetadmin avatar urenko avatar xfz329 avatar ya654 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zjuthesis's Issues

Table中的字体不能加粗

遇到的问题
请问一下Table中的字体为什么不能加粗,试了\bfseries,\textbf{}都没有效果?
(正文中可以正常加黑。)

如何重现你遇到的问题:
比如在原模版中的这个表格中,我想加粗“第一列”,“第二列”这两个。两种方法都不work。

\begin{table}[htbp]
\caption{\label{tab:sample}自动调节列宽的表格}
\begin{tabularx}{\linewidth}{c|X<{\centering}}
\hline
\textbf{第一列} & {\bfseries 第二列} \ \hline
xxx & xxx \ \hline
xxx & xxx \ \hline
xxx & xxx \ \hline
\end{tabularx}
\end{table}

不知道是我哪里操作有问题吗?还是我需要去哪里配置一下。求教。

English template

This template is made for Chinese users only, but if anyone is interested in the English template, we can discuss the details here:

  1. What is the Zhejiang University English Thesis requirement?
  2. Is there an official English template (word version or requirement doc)?
  3. Anything you think important.

I may make this English version later.

引用时取消上标

遇到的问题

复制自#32 @Garrybest

参考文献有时不需要上标。

文献[8]应用模糊 数学理论提出了检测不良数据的聚类方法。

使用命令\cite{refxx}只能让参考文献在语句中上标,该如何解决有时不需要上标的问题呢?

重现步骤

截图

环境

其他信息

其他你认为有帮助的信息

用sublime编译运行的时候,发现失败,但是用控制台可以

遇到的问题
用sublime text3无法编译运行

重现步骤
sublime text3,用xelatex编译,无法编译
zjuthesis.log

无修改

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

  • 重现步骤的截图

  • 输出结果的截图
    详细输出在log文件中
    image

  • 如果方便的话,也请附上其他有帮助的截图
    环境

  • zjuthesis版本:4.2.1

  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息

\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = undergraduate,
    Type        = thesis,
    Period      = final,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: windows
  • Tex套件: Texlive
  • Tex套件版本: 2019
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 63.1; using 63.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.9.1; using 2.9.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.3.1; using 2.3.1
Compiled with libpng version 1.6.36; using 1.6.36
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.1; using 2.13.1

其他信息
其他你认为有帮助的信息

[BUG]图目录,表目录超链接无效

遇到的问题
图目录和表目录超链接无效,点击导航栏“图目录”和“表目录”,页面停留在abstract那一页,不会跳转。

image

重现步骤
下载Github原模版,zjuthesis.tex中是如下配置:
'''
\documentclass[
StudentName = 姓名,
StudentID = 学号,
AdvisorName = 指导教师,
Grade = 2014, % only the year, no '级'
Major = 专业,
Department = 学院,
Title = 毕业论文/设计题目,
SubmitDate = 递交日期,
MajorFormat = general,
Degree = graduate, % 'undergraduate' or 'graduate'
Type = thesis, % 'thesis' or 'design'
Period = final, % 'proposal' or 'final'
BlindReview = false, % 'false' or 'true'
Language = chinese, % 'chinese' or 'english'
% Below only for 'graduate'
GradLevel = master, % 'master' or 'doctor'
Topic = 研究方向,
ColaboratorName = 合作导师,
TitleEng = {{Graduation Thesis Title}}
]{./config/zjuthesis}
'''

同样,刚才试了一下,在GitHub上提供的zjuthesis-graduate-general-doctor-thesis-final-english.pdf文档,也有类似的问题,点那个表目录的时候,跳转到了Custom Page页面,而不是List of Tables页面:
image

不知道是什么原因,求更新和解答。 @TheNetAdmin

关于目录

请问

  1. 目录怎么做到有深度呀,为什么调节tocdepth没有效果?
  2. listoffigures 和 listoftables前面怎么设置才能以这样的方式: 图 1-1,而不是只有数字?

谢谢您!

完善文档

之前的 FAQ 都放在了 README 里,现在要逐渐迁移到 docs 目录下,有两个好处:

  1. 可以直接转换为 GitHub Page ,方便从网页查阅
  2. 文档本身为 Markdown ,可以随代码分发,方便本地阅读

[BUG]表格自动编号问题

遇到的问题
使用\autoref对表格进行自动编号,但是发现编译出来的编号不符合预期。

重现步骤
如何重现你遇到的问题:

  1. 修改了哪里
    修改了zjuthesis.tex中的Degree,在context.tex中添加了三个章节与表格。
  2. 使用什么命令编译
    latexmk
  3. 产生了什么错误/输出结果哪里不对
    我认为chapter1中的表格应该是表1.1;chapter2中的表格应该是表2.1;chapter3中的表格应该是表3.1。但是,这些生成的表格都叫表0.1。
    4.修改过的文件/工程
    zjuthesis.zip
    生成的pdf
    zjuthesis.pdf

批注 2019-11-04 194241

环境

  • zjuthesis版本: [v4.2.1]
  • zjuthesis基础设置
\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = graduate,
    Type        = thesis,
    Period      = final,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: [Windows10]
  • Tex套件: [Texlive]
  • Tex套件版本: [2019]
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 63.1; using 63.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.9.1; using 2.9.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.3.1; using 2.3.1
Compiled with libpng version 1.6.36; using 1.6.36
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.1; using 2.13.1

\hbar无法正常显示

用本模板编译出来的\hbar如下图:
image
同一台电脑上,简单写一个文档编译结果如下:
image

使用本模板时,具体是将zjuthesis.tex中设置为中文,专业为physics,其余用直接下载的模板中的命令,直接运行模板中的latexmk编译,即可发现这一问题

[BUG] macOS 未提供字体 FangSong,建议改为 STFangsong

目前,模板的三个 fonts.tex 文件中都包含 \setmainfont{FangSong}。但 macOS 未提供字体 FangSong,而是提供了 STFangsong

以下提供两种兼容实现,差异在于判断条件的选取。

背景信息:在用户未手动指定 fontset=... 时,ctex 文档类会执行 \ctex_load_fontset: 判断操作系统并自动载入对应的字体设置文件。

  • 首先,执行 \ctex_detected_platform: 自动判断操作系统,并把结果(windowsmacfandol)写入 \g__ctex_fontset_tl
  • 然后,执行 \ctex_file_input:n { ctex-fontset- \g__ctex_fontset_tl .def } 载入对应的字体设置文件。

第一种兼容实现:判断 \g__ctex_fontset_tl 的内容,使用了 latex3 的函数

\ExplSyntaxOn
\cs_generate_variant:Nn \tl_if_eq:nnTF {Vn}

\tl_if_eq:VnTF \g__ctex_fontset_tl {mac}
  { \setCJKmainfont{STFangsong} } % macOS
  { \setCJKmainfont{FangSong} }   % Windows
\ExplSyntaxOff

第二种兼容实现:判断文件 ctex-fontset-mac.def 文件是否被载入,使用了 latex2e kernel 的内部宏 \@ifl@aded

\makeatletter
\@ifl@aded{def}{ctex-fontset-mac}
  {\setCJKmainfont{STFangsong}} % macOS
  {\setCJKmainfont{FangSong}}   % Windows
\makeatother

补充

  • 两种实现功能相同,第一种也许会健壮一点点(指,不容易因为 ctex 的更新而变化)
  • macOS 下用 xelatex 编译 zjuthesis.tex,目前没有遇到其他兼容问题。

Texlive 2019编译不出Bibliography

在升级TexLive到最新版本后,确实能成功解决伪粗体乱码的问题,但编译提示Bibliography为空,参考文献却无法正常编译和显示

目录的格式问题

遇到的问题
光电学院本科生毕业设计开题报告和论文的模板中,一级标题为黑体小四,其余字体为仿宋小四(具体可见图片),latex编译的模板结果均为仿宋小四,请问这个该怎么改动

截图

模板截图:
模板
Latex截图:
latex结果

环境

  • zjuthesis版本: [4.2.1]

  • OS: [windows]

  • Tex套件: [Texlive]

  • Tex套件版本: [2019]

  • XeLaTex版本: (请附上xelatex --version命令的所有输出)

XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 63.1; using 63.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.9.1; using 2.9.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.3.1; using 2.3.1
Compiled with libpng version 1.6.36; using 1.6.36
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.1; using 2.13.1

其他信息
已自己发现解决方案,在layout.tex中可以更改

关于查重

很多使用LaTeX模板的同学都碰到了查重的问题,这里简要总结一下,希望能帮到各位

已知的查重问题有这几种

1. pdf文字复制问题

有些查重系统会将pdf中的文字直接复制出来,然后作为plain text查重。

而TexLive 2018及以前的版本中,XeTeX的伪粗体会导致复制乱码,即复制pdf中的粗体文字会产生plain text乱码。

这种情况下查重系统无法识别关键字,比如‘参考文献’,从而错误地查重了‘参考文献’的内容,进而导致极高的重复率。(相关讨论见thuthesis

解决方法很简单,升级到TexLive 2019似乎就可以了。如果你坚持要使用2018及以前的版本,请去掉伪粗体设置,并手动指定粗体字体,详情见README的FAQ

2. 查重系统无法正确识别编码

XeTeX编译的pdf默认使用utf-8编码,但如果强行按照GBK编码读取,会产生大量乱码,以及重复字符,比如大量的‘路’字。

此时与其他同为utf-8的pdf比对的时候,系统会误认这些的‘路’字是抄袭,从而导致极高的正文重复率

科大的LaTeX模板在2019年碰到过查重率高的问题,我和一位同学讨论后认为是查重系统编码问题。

当然这个是查重系统本身的问题,LaTeX模板不背锅……

3. 字体嵌入的问题

这个问题多见于MacOS与Linux下编译得到的pdf,请各位同学注意。

如果你的pdf没有正确嵌入字体,会导致有些阅读器打开后看不到正文(并非所有阅读器都会出错,建议使用多种阅读器打开pdf,看是否有问题)。

解决方法也很简单,用可以看到正文的阅读器打开->打印成pdf。这样阅读器会帮你嵌入字体,我建议所有使用LaTeX模板的同学,在发送或上传pdf之前都这样操作一下。

[2019年注] 目前尚不清楚这个是否真的影响查重,但2019年有同学反映因为字体没有嵌入,一审开题报告的时候产生了很多麻烦,所以建议大家重视这个问题。

根据 #168 这样操作会导致 pdf 内的字符在查重时变成乱码,导致几乎为 0 的重复度。如出现这种情况,可使用原始 pdf 查重,而不是使用 pdf 软件转换过的文件。

我发现用TravisCI编译得到的样例pdf文件(比如这里的样例文件)就有类似的问题,大家可以尝试将其打印为pdf,并查看文件大小的变化。我操作后,pdf大小从400KB变成了1.1MB。

! Package biblatex Error: Nested 'refsection' environment.

编译选项Period=proposal的时候可以编译成功,Period = final的时候会报错:

(./content/proposal/proposal/proposal.tex
! Package biblatex Error: Nested 'refsection' environment.
See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...
l.2 \begin{refsection}

没找到哪里嵌套了

参考文献列表的问题

遇到的问题
文献综述和开题报告公用一个参考文献列表,如果希望这两个列表不一样该如何修改(比如文献综述引用了10篇文献,开题报告引用了20篇文献,这两个的参考文献列表应该是不一样的)

image

环境

  • zjuthesis版本: [e.g. 4.2.1]
  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息
\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = undergraduate,
    Type        = thesis,
    Period      = proposal,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: [MacOS]
  • Tex套件: [Texlive]
  • Tex套件版本: [e.g. 2018]
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.99999 (TeX Live 2018)
kpathsea version 6.3.0
Copyright 2018 SIL International, Jonathan Kew and Khaled Hosny.

package biblatex error :style' gb7714 - 2015' not found

image

如图,我和室友(Windows和mac系统下)都出现了该问题,报错后pdf文件可以出来,但是参考文献没法显示,cite全部报错,请问有什么解决思路吗?
尝试按照【A biblatex implementation of the GB/T7714-2015 bibliography style|为什么我之前使用样式style=caspervector进行编译没有问题,换成style=gb7714-2015后,编译就出现错误?】上解决方案在文件夹下放那四个文件,结果gb7714-2015.bbx报了很多错,document都无法begin了……

求助呀~

目录与光电模板格式不一致

遇到的问题
光电学院本科生毕业设计的开题报告的模板中的目录格式与模板格式不一致
重现步骤
正常编译运行

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图
光电模板:
opt
latex结果:
latex

环境

  • zjuthesis版本: [4.2.2]
  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息
\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = undergraduate,
    Type        = thesis,
    Period      = final,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: [Windows]
  • Tex套件: [Texlive]
  • Tex套件版本: [2019]
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 63.1; using 63.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.9.1; using 2.9.1
Compiled with Graphite2 version 1.3.13; using 1.3.13
Compiled with HarfBuzz version 2.3.1; using 2.3.1
Compiled with libpng version 1.6.36; using 1.6.36
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.1; using 2.13.1

其他信息
其他你认为有帮助的信息

能否使得引用加上方括号?

我们专业要求文献引用的数字两边要加上方括号。例如[1]、[2,4,5]这样子(都是上标)。我试了把config/package.tex里面的biblatex的citestyle改成numeric后有方括号,但这样就不是上标了;而默认的gb7714-2015是上标,但是没有方括号。请问是否有解决方法?

参考文献跨页两端无法对齐

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
参考文献奇数页和偶数页的两边间距不一样

重现步骤
如何重现你遇到的问题:

  1. 修改了哪里:未修改参考文献部分
  2. 使用什么命令编译:F8 F6 F6编译
  3. 未对齐

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图

image

  • 输出结果的截图
  • 如果方便的话,也请附上其他有帮助的截图
    image

环境

  • zjuthesis版本: [e.g. v3.0.0 或 3c8a471(commit id)]
  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息
\documentclass[
    StudentName = xx,
    StudentID   = xx,
    AdvisorName = xx,
    Grade       = xx,            % only the year, no '级'
    Major       = xx,
    Department  = xx,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = graduate,   % 'undergraduate' or 'graduate'
    Type        = thesis,          % 'thesis'   or 'design' or 'equal'(only for graduate)
    Period      = final,           % 'proposal' or 'final'
    BlindReview = false,           % 'false'    or 'true'
    % Below only for 'graduate'
    Topic           = xx, 
    ColaboratorName = xx
]{config/zjuthesis}
  • OS: win10
  • Tex套件: Texlive
  • Tex套件版本: 2019
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.

其他信息
其他你认为有帮助的信息

矩阵输入

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
在conttent.tex输入矩阵后,编译会有问题。

Misplaced alignment tab character &.
\begin{pmatrix} a&

重现步骤
conttent.tex的内容很少,如下:

\chapter{绪论}
\begin{equation}
\begin{pmatrix} a&b1\\c&d \end{pmatrix}
\end{equation}

修改页眉文字字体

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
请简要描述你遇到的问题

重现步骤
如何重现你遇到的问题:

  1. 修改了哪里
  2. 使用什么命令编译
  3. 产生了什么错误/输出结果哪里不对

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图

  • 重现步骤的截图
  • 输出结果的截图
  • 如果方便的话,也请附上其他有帮助的截图

环境

项目 内容
操作系统 [e.g. Linux/Windows/MacOS]
Tex套件 [e.g. Texlive/Miktex]
Tex套件版本 [e.g. 2019]
zjuthesis.log [使用命令行编译一遍,然后将 out/zjuthesis.log 附在此issue]

其他信息
其他你认为有帮助的信息

请问如何修改页眉的字体为宋体?

请问如何修改目录的字体?已编译通过

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
请简要描述你遇到的问题

重现步骤
如何重现你遇到的问题:

  1. 修改了哪里
  2. 使用什么命令编译
  3. 产生了什么错误/输出结果哪里不对

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图

  • 重现步骤的截图
  • 输出结果的截图
  • 如果方便的话,也请附上其他有帮助的截图

环境

  • zjuthesis版本: [e.g. v3.0.0 或 3c8a471(commit id)]
  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息
\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = undergraduate,
    Type        = thesis,
    Period      = final,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: [e.g. Linux/Windows/MacOS]
  • Tex套件: [e.g. Texlive/Miktex]
  • Tex套件版本: [e.g. 2019]
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.

其他信息
其他你认为有帮助的信息

分享一个可用的vscode配置

不知道应不应该开在issue里面。vscode写latex的体验还是可以的。
先在vscode里面安装LaTex Workshop, 然后在.vscode/settings.json里面添加下面的配置文件

{
    "latex-workshop.latex.recipe.default":"lastUsed",
    "latex-workshop.latex.outDir":"out",
    "latex-workshop.latex.recipes":[
        {
            "name": "xelatex",
            "tools": [
                "xelatex"
            ]
        },
        {
            "name": "bibxe",
            "tools": [
              "xelatex",
              "biber",
              "xelatex",
              "xelatex"
            ]
          }
    ],
    "latex-workshop.latex.tools":[
        {
            "name": "xelatex", 
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-output-directory=%OUTDIR%",
                "%DOC%"
            ],
            "env": {}
        },
        {
            "name": "biber",
            "command": "biber",
            "args": [
              "%OUTDIR%/%DOCFILE%"
            ],
            "env": {}
          }
    ]
}

然后可以用Build With Recipe命令来Build整个项目。bibxe命令是完整编译,涉及到添加参考文献或者第一次编译的时候要用到这个toolchain,其他时候可以只用xelatex加速编译。Latex Workshop默认保存即重新编译。

[讨论] 硕士/博士论文模板中的问题

当前的硕士/博士模板还存在一些问题,一些同学通过邮件联系到我,提出了一些建议,现在总结在这里。

如果大家有其他建议,也可以在这个issue里评论,我近期会统一修复。

请问如何插入子图?

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
您好!我希望能够插入子图,例如1.1(a),1.1(b)这样
现在我用
\begin{figure}[htbp]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\linewidth]{review/Venn.png}
\caption{\label{aa} this is aa}
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=\linewidth]{review/Venn.png}
\caption{\label{bb}this is a caption}
\end{minipage}%
\caption{ pics}
\end{figure}
这样插入图片的话显示的是1.1和1.2
我用subfigure显示我未定义,是不是应该加入\newcommand\subfigure什么的?应该在在哪加怎么加?
能否帮助我一下,谢谢!!
重现步骤
如何重现你遇到的问题:

  1. 修改了哪里
  2. 使用什么命令编译
  3. 产生了什么错误/输出结果哪里不对

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图
image

请求更新CS模板

楼主您好,能否再更新一下CS的格式,计算机学院要求章的标题格式是带汉字的,而且居中的
image
我们现在编译出来是这样的
image
不知这个应该如何改?(网上找到了一些解决方案。但不是很放心)

数学公式编号问题

config/package.tex下没有对数学公式以及相应编号的环境。可以增加以下语句解决:

\usepackage{amsmath}
\renewcommand{\thesection}{%
  \ifnum\c@chapter<1 \@arabic\c@section
  \else \thechapter.\@arabic\c@section
  \fi
}
\numberwithin{equation}{section}% reset equation counter for sections
\numberwithin{equation}{subsection}
% Omit `.0` in equation numbers for non-existent subsections.
\renewcommand*{\theequation}{%
  \ifnum\value{subsection}=0 %
    \thesection
  \else
    \thesubsection
  \fi
  .\arabic{equation}%
}

这样采用以下带编号的数学公式环境时可以自动生成(section.subsection)的编号

\begin{equation}
\end{equation}

如何切换使用\supercite 和 \cite ?

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
我使用\cite的时候参考文献是用上标的形式引用的,请问如何切换使用上标和正常的 [2]
学校的毕业论文格式要求中是这样说的
image

我在网上自己查找过方法,但是我看到的都是如何把正常的[2]改为上标的[2],
例如
\newcommand[2][]\supercite{%
\textsuperscript{\cite[#1]{#2}}}
但是我现在只用普通的\cite就是上标形式的
请问怎么修改?

重现步骤
如何重现你遇到的问题:

  1. 修改了哪里
  2. 使用什么命令编译
  3. 产生了什么错误/输出结果哪里不对

请附上修改过的文件/工程

如果无法编译,请额外附上 log 文件,位于 out/zjuthesis.log

截图

  • 重现步骤的截图
  • 输出结果的截图
  • 如果方便的话,也请附上其他有帮助的截图

环境

  • zjuthesis版本: v5.0.0-rc2
  • zjuthesis基础设置 请将如下代码替换为你的\documentclass代码,注意隐藏个人信息
\documentclass[
    StudentName = 姓名,
    StudentID   = 学号,
    AdvisorName = 指导教师,
    Grade       = 2014,
    Major       = 专业,
    Department  = 学院,
    Title       = 毕业论文/设计题目,
    SubmitDate  = 递交日期,
    MajorFormat = general,
    Degree      = undergraduate,
    Type        = thesis,
    Period      = final,
    BlindReview = false,
    Topic           = 研究方向,
    ColaboratorName = 合作导师
]{config/zjuthesis}
  • OS: [e.g. Linux/Windows/MacOS]
  • Tex套件: [e.g. Texlive/Miktex]
  • Tex套件版本: [e.g. 2019]
  • XeLaTex版本: (请附上xelatex --version命令的所有输出)
XeTeX 3.14159265-2.6-0.999991 (TeX Live 2019)
kpathsea version 6.3.1
Copyright 2019 SIL International, Jonathan Kew and Khaled Hosny.

其他信息
其他你认为有帮助的信息

英语标题如何换行

windows10系统,tex2019环境,graduate模式,编辑完zjuthesis后直接cmd运行latexmk,尝试了插入\, 增加{}等多种方案,均失败

texlive2018编译问题

用texlive2018编译会在使用包\usepackage{chngcntr}时报错,似乎是因为本身的版本问题。在该语句前加

\let\counterwithout\relax
\let\counterwithin\relax

可以解决。

参考文献中出现“[S.l. : s.n.]”

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
自动生成的参考文献中出现很多“[S.l. : s.n.]”
比如:BAILER C, FINCKH M, LENSCH H P. Scale robust multi view stereo[C]//European
Conference on Computer Vision. [S.l. : s.n.], 2012: 398-411.

请问这个问题可以怎么解决

参考文献的字体字号与要求不一致

请务必按照这个模板报告问题,否则我很难帮助你找到问题。

遇到的问题
模板中的参考文献的字体字号和实际要求不一致,模板采用的是正文的字体字号字间距,但是实际要求不是

截图
latex模板结果:字体为仿宋,字号也不是要求字号,行距也不对
latex

实际要求:字体宋体5号,单倍行距
aim

环境

项目 内容
操作系统 windows
Tex套件 [Texlive
Tex套件版本 2019
zjuthesis.log

其他信息
其他你认为有帮助的信息
正常编译运行

[BUG] 插图和附表的序号问题(符号序号未知是否存在此问题)

遇到的问题
插图和附表的序号是分章独立的,例如第二章第一节的第一张图片的序号是1.1,第三章第一节的第一张图片的序号也是1.1,附表的序号也出现相同的状况。那么在插图清单和附表清单中,序号就有重复。是否第二章第一节的第一张图片的序号定义为2.1.1,第三章第一节的第一张图片的序号定义为3.1.1 会更好?

参考文献编译错误

image

您好,感谢您的工作。我在编译参考文献的时候,使用\cite命令无法编译得到数字[1] [2] [3]之类的,用的是windows的texlive2019和tex studio客户端,直接用编译按钮编译,bib编译器已经选择为biber。

关于 latexmk 失败与在 vscode 下的使用问题

非常漂亮的工作!
我在使用时出现了一些问题:

  • 按照 README 中说的,直接在根目录运行 latexmk -xelatex -outdir=out zjutheis 提示 could not find file [zjuthesis] , 如图:
    image
  • 我注意到你的 .gitignore 里有关于 vscode 的条目,请问你是在用 vscode 与 latex-workshop 在写作吗?如果是的话,能分享一下 recipe 吗(如果第一个问题没有得以解决)?
$ xelatex --version
XeTeX 3.14159265-2.6-0.99998 (TeX Live 2017)
kpathsea version 6.2.3

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.