whutug / whu-thesis Goto Github PK
View Code? Open in Web Editor NEW:memo: 武汉大学毕业论文 LaTeX 模版 2024
License: MIT License
:memo: 武汉大学毕业论文 LaTeX 模版 2024
License: MIT License
由于 whutug 的成员都已经/即将毕业,后续如果新的需求,可能不会有较快的反馈。因此寻找仍在学校中,对 LaTeX 比较熟悉或者感兴趣维护代码的同学,成为新的维护者。
现在也基本没什么开发方向了,可能中期计划是重写 README,远期计划是与校方联系,得到校方格式上的意见与指导,再远一点的就是学 fduthesis 用 xtemplate 重构封面(逃)
欢迎有兴趣的同学在底下留言
To draw a flow chart or sequence chart , the source code provided by overleaf is always contained with some lines like \usetikzlibrary{arrows}
. But no matter where I put the code , the editor cannot parse it correctly and usually ignores it.
Any idea ? or just recommend a jpg for simpilicity?
I am writing in overleaf on firefox.
参考文献可太秀了
现在的 whu-thesis 的示例与说明文档是在一起放在 main.tex 中的,我准备将说明文档单独拆出来。
在网上看到有反馈说LaTeX生成的PDF查重的时候会出现问题(e.g. 参考文献不能识别、公式可能会乱码),大家之前是否有经验。
感谢你分享的模板。
环境:latex2019, vscode
你的模板能编译成功。修改主要内容之后,使用recipe: xelatex->bibtex->xelatex*2编译不成功,提示Reference `fig:model' on page 3 undefined.,即\ref和\label不匹配,并且所有reference都undefined。我确信,fig:model我定义过。并且所有reference都在bib文件中。
我尝试换recipe,先使用xelatex->bibtex->xelatex2编译失败后,再xelatex2就成功了,不明白为什么?
我添加以下宏包:
\usepackage{caption}
\usepackage{ulem}
\usepackage{textcomp}
\usepackage{tipa}
\usepackage{dsfont}
\usepackage{bm}
\usepackage{mathrsfs}
\usepackage{multirow}
并修改 \bibliography{ref/refs} 为 \bibliography{main}
win10,sublime text3+latextools+Texlive2020。
没有任何修改,下载了zip后就用Xelatex编译了WHU-thesis-demo,但出现以下问题:
Errors:
D:\whu-thesis-master\whu-thesis.cls:103: Undefined control sequence. [\tl_if_eq:NnT]
D:\whu-thesis-master\whu-thesis.cls:103: LaTeX Error: Missing \begin{document}. [\tl_if_eq:NnT \g__whu_option_type_tl]
D:\whu-thesis-master\whu-thesis.cls:110: Undefined control sequence. [\tl_if_eq:NnT]
D:\whu-thesis-master\whu-thesis.cls:141: Undefined control sequence. [\tl_if_eq:NnTF]
D:\whu-thesis-master\whu-thesis.cls:141: LaTeX Error: Missing \begin{document}. [\tl_if_eq:NnTF \g__whu_option_type_tl]
d:\Program Files\texlive\2020\texmf-dist\tex\xelatex\xecjk\xeCJK.sty:656: TeX capacity exceeded, sorry [save size=80000]. [\xeCJKResetCharClass]
请问是什么原因?该如何解决呢?
我找到了博士与硕士论文的印制规范了
https://info.whu.edu.cn/info/2056/151891.htm
https://info.whu.edu.cn/info/2056/151893.htm
准备加进 whu-thesis 中,但似乎他们的参考文献规范与本科不太一样……
请问,我想设置目录中三级标题缩进,应该如何设置?虽然规范中没有要求,但是师兄师姐word版本有缩进,为了统一想弄成一样的。
TeX 发行版
whu-thesis 版本
0.6c
前面有人提到使用本地编译在查重时会存在问题,用overleaf可以。overleaf使用的编译器是XeLaTex,TeX Live 2020,最终编译得到的pdf中逗号显示结果与提供的demo很不同,明显不是宋体,怀疑是半角与全角的区别,没找到解决方案。
图片链接:https://github.com/XZZong/latex/blob/main/overleaf.jpg
操作系统
TeX 发行版
whu-thesis 版本
v0.6c
使用 oneside
文档选项,编译时会出现多条警告 "\fancyhead's `E' option without twoside option is useless."
略
修改第 260 行,在有 oneside
选项时不提供 E
应该就行了。
Lines 259 to 261 in b706a3e
操作系统
TeX 发行版
本地编译,楷体报错 出现报错 “Can't find the font 'Kaiti'”
\documentclass{whu-thesis}
\begin{document}
Hello, \LaTex!
\end{document}
(用 XeLaTeX 编译后)输出
! Undefined control sequence.
l.3 Hello, \LaTex
!
?
将whu-thesis.cls 第565行改为 将 STKaiti ~ SC ~ Regular 改为 STKaiti 问题解决
想请问一下,在overleaf上编译,一些偏僻的汉字不能显示怎么解决?
5月19日 ctan 发布了新版的 siunitx 宏包,需要修改 whu-thesis.cls
文件的相关代码进行适配。
操作系统
TeX 发行版
\rightarrow(右箭头),\prime(角分符号)在标题和摘要中会分别显示为感叹号和0。两边的字体似乎都不是Times New Roman。
下载v0.6b版本,在whu-thesis-demo中仅修改titile为:
title = {$ \psi (2S) \rightarrow \omega \eta^{\prime} $},
在pages\abstract.tex中增加一行:
$$ \psi (2S) \rightarrow \omega \eta^{\prime} $$
用 LuaLaTeX 编译后输出:
标题:
摘要:
本地编译和Overleaf编译结果相同。
在正文中可以正常显示前述两个符号,字体为Times New Roman:
使用2020年12月31日下载的旧版本编译,可以在标题和摘要中正常显示前述两个符号,字体为Times New Roman,不过prime符号似乎离字母有点远:
I am not very familiar with latex. When I use overleaf to compile this project(with latex2020), there is no error in whuthesis.cls.
But when I compile this project locally with latex2020(from tuna, 2020.4), it generates such error:
! Undefined control sequence.
l.114 \tl_if_eq:NnTF
\l__whu_class_tl { opening }
I really need your help, thx a lot!
如题
在不改变作者,文献名等顺序的情况下,怎么自定义按原来bibtex的大小写格式?例如我只想要人名首字母大写,文献名就按照bibtex里的大小写格式
\tl_if_eq:NnTF -----> \tl_if_eq:nnTF
texlive2019
操作系统
TeX 发行版
使用demo给出的公式代码
\begin{equation}
\vb*{A} =
\begin{bmatrix}
1 & 2 & 3 & 4 \\
11 & 22 & 33 & 44 \\
\end{bmatrix} \times
\begin{bmatrix}
22 & 24 \\
32 & 34 \\
42 & 44 \\
52 & 54 \\
\end{bmatrix}
\end{equation}
(用 XeLaTeX 编译后)输出
Extended mathchar used as mathchar (14799924).
<to be read again>
\relax
l.9 \vb*{A}
=
A mathchar number must be between 0 and "7FFF.
I changed this one to zero.
Missing character: There is no ^^@ in font [XITSMath-Bold.otf]/OT:script=math;language=dflt;!
) [11]
\openout2 = `pages/chapter4.aux'.
似乎是\vb*出现了问题?
操作系统
TeX 发行版
在 e0953c7 中初步写了 biblatex 支持,但在指定 style/bib-backend=biblatex
后报错,似乎是与 hyperref 的兼容问题,但我把 hyperref 注释掉问题都仍然存在…
\documentclass[type=opening]{whu-thesis}
\whusetup{
style={
bib-backend=biblatex
}
}
\begin{document}
foo
\end{document}
表格标题不是黑体
虽然 WHU 从来没有给出过官方的 LaTeX 模板,但部分学院(比如物院)是推荐使用 LaTeX 写毕业论文的(却让学生自己网上找模板)
也许 WHUTUG 可以寻求与武大本科生院/研究生院合作,使该模板得到官方承认,俗称「扶正」?
只有当类型为doctor时会添加achievement,当选则类型为master时不会。
请问怎么添加硕士旗舰研究成果
如何使得中文引用中的 ‘et al.’ 使用 ‘等’。
操作系统
TeX 发行版
whu-thesis 版本
v0.6c(commit: e8bb700)
想要实现目录中三级标题缩进。
在导言区尝试过添加如下语句:
\renewcommand\cftsubsecindent{4em}
(在 VSCode 中用 XeLaTeX 编译后)输出报错
Command undefined.
Missing control sequence inserted.
<inserted text>
Missing \begin{document}.
看起来像是 \renewcommand
尚未定义的报错……
This issue contains necessary assets
示例中的数学字体并不是 Times,而是默认的 Latin Modern。
可以使用 unicode-math
包改变数学字体,使用 TeX Gyre 系列的 TeX Gyre Termes、XITS 或 STIX 等 Times 风格数学字体(需要自行安装):
\usepackage{unicode-math}
\setmathfont{TeX Gyre Termes Math} % 数学字体名
或者在 amsmath
包后面使用 txfonts
或 txfontsb
包,并将
\setmainfont{Times New Roman}
\setsansfont{Times New Roman}
\setmonofont{Times New Roman}
移至
\RequirePackage{amsmath, amssymb}
两者几乎无差别。
学校文件要求,标题为楷书一号,但使用模板生成pdf后转为word好像是楷书2号。
操作系统
TeX 发行版
whu-thesis 版本
v0.6
我想2x2显示4张图片,但是排列后发现caption无法正常显示
然而,当我使用同样代码,应用在其他四张图片时,一切又正常显示了。
\documentclass[type=bachelor,oneside]{whu-thesis}
\whusetup
{
info =
{
title = {XXX},
student-number = {XXX},
school = {XXX},
author = {XXX},
% subject = {XXX},
major = {XXX},
advisor = {XX , XX},
% direction = {研究方向},
% date = {2021/4},
keywords = {XXX},
keywords* = {XXX},
},
style =
{
graphics-path = {{figures/}{data/}},
% list-of-figures,
% list-of-tables,
},
element =
{
% innovation = {pages/innovation},
abstract = {pages/abstract},
abstract* = {pages/enabstract},
bibliography = {ref/ref},
achievements = {pages/achievements},
thanks = {pages/thanks},
% appendix = {pages/appendix}
}
}
\renewcommand\cftsubsecindent{4em}
\begin{document}
%%----------- 主体部分 ----------- %%
% \include{pages/chapter1}
% \include{pages/chapter2}
% \include{pages/chapter3}
% \include{pages/chapter4}
\begin{figure}[htb]
\centering
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{match_result_a.png}
\caption{视频第2帧}
\label{fig:match_result_a}
\end{subfigure}\
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{match_result_b.png}
\caption{视频第8帧}
\label{fig:match_result_b}
\end{subfigure}
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{match_result_c.png}
\caption{视频第14帧}
\label{fig:match_result_c}
\end{subfigure}\
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{match_result_d.png}
\caption{视频第18帧}
\label{fig:match_result_d}
\end{subfigure}
\caption{视频线段跟踪效果图1}
\label{fig:match_result}
\end{figure}
\begin{figure}[htb]
\centering
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{tracking_demo1_a.png}
\caption{视频第2帧}
\label{fig:tracking_demo1_a}
\end{subfigure}\
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{tracking_demo1_b.png}
\caption{视频第8帧}
\label{fig:tracking_demo1_b}
\end{subfigure}
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{tracking_demo1_c.png}
\caption{视频第14帧}
\label{fig:tracking_demo1_c}
\end{subfigure}\
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\linewidth]{tracking_demo1_d.png}
\caption{视频第18帧}
\label{fig:tracking_demo1_d}
\end{subfigure}
\caption{视频线段跟踪效果图1}
\label{fig:tracking_demo1}
\end{figure}
\end{document}
如题,应该是个大工程,特别是后者……
操作系统
TeX 发行版
whu-thesis 版本
0.6c
我对 Tex 不是很熟悉,请问接下来应该怎么排查呀?希望能尽快得到答复,十分感谢!
操作系统
TeX 发行版
whu-thesis 版本
<v0.6>
我选用的是本科生模板,想在论文里展示之前发表的成果,但是似乎achievements只能在博士论文里使用?如何修改呢?
element =
{
% innovation = {pages/innovation},
abstract = {mypages/abstract},
abstract* = {mypages/enabstract},
bibliography = {ref/myrefs},
achievements = {mypages/achievements},
thanks = {mypages/thanks}
% appendix = {pages/appendix}
}
操作系统
TeX 发行版
whu-thesis 版本
您好:
感谢您提供的whu-thesis模板,给我的毕设帮助很大。
我希望能在图片的caption里面加入citation,但是直接使用\cite{} 无法通过编译。在google上查过有人添加\protect 但是也不能解决。
添加\protect 后 result.tex 报错 Citation `ZhouMa-125' on page 13 undefined.
在whu-thesis.tex(就那个主要的文件里) 报Missing } inserted.
在whu-thesis.lof 里报Extra }, or forgotten \endgroup. ...orespaces \cite {ZhouMa-125}\relax }
而我在refs.bib 里确实添加了这个文献,在\caption 外使用也没有问题。
\begin{figure}
\centering
\includegraphics[width=\textwidth]{figures/fig1.jpg}
\caption{\protect\cite{ZhouMa-125}}
\label{fig:fig1}
\end{figure}
麻烦您看看是哪里的问题,非常感谢!
由于每个人编译示例文档的结果都不太一样,希望引入持续集成测试来给出一个相对官方的预览版本。目前我找到的CI只支持linux+最新的texlive,直接用github actions实现,但是似乎linux上面没有times new roman这个字体来着,所以编译阶段都会报错。我写好的CI文件可以见这里,希望有大佬能搞定linux上面的times new roman的字体安装,方便预览工作。
CI编译错误信息:
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman/BI', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman/B', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman/I', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
kpathsea:make_tex: Invalid filename `Times New Roman', contains ' '
(/opt/texlive/texdir/texmf-dist/tex/latex/txfonts/txfonts.sty)
./WHUBachelor.cls:133: Package fontspec Error: The font "Times New Roman" canno
t be found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.