Coder Social home page Coder Social logo

thenetadmin / zjuthesis Goto Github PK

View Code? Open in Web Editor NEW
2.5K 15.0 597.0 1.42 MB

Zhejiang University Graduation Thesis LaTeX Template

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

License: MIT License

TeX 86.49% Shell 9.77% Python 2.19% Dockerfile 0.41% PowerShell 0.81% Perl 0.28% Makefile 0.04%
latex zjuthesis latex-template latex-thesis-template zhejiang-university xelatex thesis-template overleaf

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

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.

texlive2018编译问题

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

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

可以解决。

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

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

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

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

  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.

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

[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,而不是只有数字?

谢谢您!

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

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

关于 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

关于查重

很多使用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。

如何切换使用\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.

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

矩阵输入

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

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

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

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

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

[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,目前没有遇到其他兼容问题。

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了……

求助呀~

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

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

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

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

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

环境

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

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

参考文献编译错误

image

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

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}

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

参考文献列表的问题

遇到的问题
文献综述和开题报告公用一个参考文献列表,如果希望这两个列表不一样该如何修改(比如文献综述引用了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.

引用时取消上标

遇到的问题

复制自#32 @Garrybest

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

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

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

重现步骤

截图

环境

其他信息

其他你认为有帮助的信息

完善文档

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

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

用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

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

! 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}

没找到哪里嵌套了

请求更新CS模板

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

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

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

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

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

  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.

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

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

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

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

如果无法编译,请额外附上 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

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

数学公式编号问题

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}

参考文献中出现“[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.

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

修改页眉文字字体

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

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

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

  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]

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

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

Texlive 2019编译不出Bibliography

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

请问如何插入子图?

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

遇到的问题
您好!我希望能够插入子图,例如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

英语标题如何换行

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

分享一个可用的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默认保存即重新编译。

目录的格式问题

遇到的问题
光电学院本科生毕业设计开题报告和论文的模板中,一级标题为黑体小四,其余字体为仿宋小四(具体可见图片),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中可以更改

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

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

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

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

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

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.