bdebye / thesisuestc Goto Github PK
View Code? Open in Web Editor NEWThesisUESTC-电子科技大学毕业论文模板
Home Page: https://bdebye.github.io/thesisuestc/
ThesisUESTC-电子科技大学毕业论文模板
Home Page: https://bdebye.github.io/thesisuestc/
首先,较好的 LaTeX 编辑器(如 TeXstudio)、通用编辑器的 LaTeX 插件(如 vscode 的 latex-workshop 插件)都能自动探测主文档,以实现「当前活动窗口为子文档时,点击编译按钮,仍然是对主文档进行编译」的功能。
其次,模板目前在子文档中使用 standalone
文档类,这无法让子文档单独可编译,还会对编辑器的主文档自动探测功能造成干扰。standalone
文档类是为了单独编译图片而设计的,如果想让子文档单独编译且输出样式与编译主文档得到的一致,子文档也应当使用 thesis-uestc 文档类。
然后,基础的 \input
和 \include
命令,对编写学位论文已经足够,国内的几个学位论文模板项目(如清华的 thuthesis,山东大学的 sduthesis和准备中的中文学位论文 LaTeX 模板基础框架),都是使用的这种机制。
最后,综合考虑
个人建议
standalone
宏包的依赖\documentclass{...}
,preamble 和document
环境,仅保留「正文」部分所有的章节都在一个文档中,不适合写硕博论文,应该用文件输入的形式,把各章节分开,这样管理起来更方便。参考文献也不能这样管理,应该用texbib文件管理。
论文当中使用了;在公式中插入适当间隔,但是报错
“Undefined control sequence. ^^I ;”
使用\bm加粗希腊字母时,无效,但不报错。而且希腊字母的字体明显和其他模板(如IEEE,Elsevier)的不一样。
在公式中使用\hat,^不会再大写字母的正顶上
\mathbf{}加粗并不是数学粗体,而是数学式里头的“一般文字”的粗体,使用后公式由斜体变回正体。
然而用bm包、amsmath包试过都没有效果。
前面已有issue#26提到,作者说可能是与模板使用的mathspec包冲突。那大家在论文写作中是怎么解决的?
另请问作者,如果要换mathspec包该怎么操作!
谢谢!
在子文档chapter/c2.tex
中使用todonotes
先 usepackage 然后写一个todo 发现编译报错:undefined control sequence \todo
把usepackage{todonotes}写到主文档main.tex中就可以了。
查看standalone文档,有如下描述:
The package standalone can be used in the main document to skip all extra
preambles in included files. The main file must load all packages and settings
required by the sub-files.
根据上面的描述,standalone默认会跳过子文件中的所有preambles,所以需要些在main file中。
是否考虑去掉standalone或者修改readme说明一下,chapter/c*.tex文件中的注释会误导用户以为可以直接在这里引入新包。
发现目标中不能直接添加程序代码,不知道能不能添加相关的支持
我使用刚clone的模板进行编译。
原模板中没有加入\thesisglossarylist
命令(缩略语和符号表),采用latexmk即可正常编译。
我在主文件中加入了\thesisglossarylist
命令后,latexmk无法正常编译,提示。
随后,我尝试了手动编译,发现手动编译方式可以通过。
对比两种编译结果,我发现问题在于latexmk编译过程中没有生成gls
,bbl
等辅助文件,在编译日志里面也有相关提示
Latexmk: Missing input file: 'main.gls' from line
'No file main.gls.'
Latexmk: Non-existent bbl file 'main.bbl'
No file main.bbl.
Latexmk: Non-existent bbl file 'accomplish.bbl'
No file main.bbl.
我推测这应该是latexmk的配置文件造成的问题(根据对比应该是bibtex main.aux
、bibtex accomplish.aux
以及makeglossaries main
没有执行),从随后的日志中也可以看到跟配置文件相关的信息:
Latexmk: applying rule 'cusdep glo gls main'...
Rule 'cusdep glo gls main': File changes, etc:
Non-existent destination files:
'main.gls'
Run number 1 of rule 'cusdep glo gls main'
For rule 'cusdep glo gls main', running '&do_cusdep( run_makeglossaries )' ...
makeglossaries version 4.41 (2018-07-23)
Auxiliary file ''main'.aux' doesn't exist. Have you run LaTeX?
Rule 'cusdep glo gls main', function 'run_makeglossaries'
failed with return code = 512
Latexmk: Summary of warnings from last run of (pdf)latex:
Latex failed to resolve 6 reference(s)
Latex failed to resolve 16 citation(s)
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
cusdep glo gls main: Command for 'cusdep glo gls main' gave return code 512
由于本人不懂latexmk如何配置,希望作者@x-magus 有空可以检查一下此问题。
由于不支持tex文件上传,我把主文件后缀名改为txt(main.txt),其中添加了两条缩略语,以及\thesisglossarylist
,其他文件没有改动。
请问如何添加图表目录?
私下做了一些了解,发现大家渐渐都有意愿去使用latex撰写论文
word 是痛苦的,用过的都知道
但很多同学不会,因为latex学习成本确实有一些,门槛也偏高,大家有诸多担心
latex 是痛并快乐着,但或许可以少些痛
但实际上,每年都是应届生使用,而后很多经验就消弭于无形了,之后的同学又要重新采坑,并充满敬畏;
因而建议,邀请各位使用者参与共建,
毕业后,大家都将从事工作,或许少有时间、精力 或 能力投入其中,但每个人必然在期间有所积累和收获,不妨在论文工作结束投注一些时间来总结一番。
Critical xeCJK error: "l3-too-old" Support package expl3' too old. Please update an up to date version of the bundles
l3kernel' and `l3packages' using your TeX package manager or from CTAN. Loading xeCJK will abort! For immediate help type H .
我时小白用户,只会直接套用模板,请问这个应该怎么解决呢
请问下插入代码有例子吗?学校对插入的代码的格式有什么要求吗?
王同学,你好!
非常好的工作!为科大的同学提供了很大的方便!
我有两个小问题,由于我对 LaTeX 并不熟悉,所以可能问题有些肤浅。
我看封面以及内页都是硕士学位论文的模板,不知能否有博士学位论文的模板?或者可以在哪里进行更改?
平时我习惯用 Markdown 写作,然后用 Pandoc 以及 Xelatex 包转为 PDF。类似于这一流程.
一般用如下命令:
pandoc -V geometry:margin=1in --filter pandoc-fignos --filter=pandoc-citeproc --bibliography=Untitled.bib --csl=cerebral-cortex.csl BodyText.md -o BodyText.pdf --latex-engine=xelatex
这样参考文献,图片都会转得很妥当。
那么我想使用你的模板转为科大学位论文格式的 PDF的话(只考虑正文部分,其他部分的内容应该很好手动调整),能否用 Markdown 写作,再转为 Tex,随后加入你的模板转为 PDF(我未测试成功)? 还是把上述语句的--csl=cerebral-cortex.csl 直接换成 --csl=thesis-uestc.cls , 一步转换即可?
希望能得到你的答复,或者能给个合适的 Markdown 转 UESTC Thesis 的方案。
非常感谢!
Jinnan
学长你好,因为学长这个模版可能是针对于研究生论文格式优化的,对本科的毕业论文支持上可能存在一些bug,现提出望得到解答。
感谢学长制作的latex模版方便了广大成电人,希望学长可以完善项目,谢谢!
对瞬变电磁非常感兴趣。
想深入阅读这篇硕士论文。
TeXstudio的build设置如下
主文件代码为
%!TEX options = --shell-escape
\documentclass[doctor]{thesis-uestc}
\title{时域积分方程时间步进算法及其快速算法}
\author{王稳}
\advisor{赖生建\chinesespace 副教授}
\school{物理电子学院}
\major{无线电物理}
\studentid{201421040223}
\usepackage{econometrics,amsmath,bm}
\usepackage{glossaries}
\def \diag {\operatorname{diag}}
\def \blkdiag {\operatorname{blkdiag}}
\def \cov {\operatorname{cov}}
\begin{document}
\makecover
% this is a thesis template with mutiple files: the chapters and the misc in standalone mode
% to avoid too many files in current folder, template add extra direcotry: chapter and misc
% please do not change the sequence of each one except the chapters themselves.
% by FengYouzheng.
% abstract
\include{misc/chinese_abstract}
\include{misc/english_abstract}
% table of contents
\thesisfigurelist
\thesistablelist
\thesisglossarylist
% thesis contents
\include{chapter/ch1}
\include{chapter/ch6}
% misc
\include{misc/acknowledgement}
%\thesisloadbibliography[nocite]{reference}
%
% Uncomment following codes to load bibliography database with native
% \bibliography command.
%
%\nocite{*}
\bibliographystyle{thesis-uestc}
\bibliography{IEEEfull,mybibfile}
% comment while no need
\include{misc/appendix}
\thesisloadachievement{publications_author.bib}
\end{document}
缩略词列表定义在ch1.tex中
%% 缩略词表
\newacronym[description=到达时间]{TOA}{TOA}{Time of Arrival}
\newacronym[description=到达时间差]{TDOA}{TDOA}{Time Difference of Arrival}
\newacronym[description=到达角度]{AOA}{AOA}{Angle of Arrival}
\newacronym[description=波达方向]{DOA}{DOA}{Direction of Arrival}
\newacronym[description=克拉美罗下界]{CRLB}{CRLB}{Cram'{e}r Rao Lower Bound}
\newacronym[description=均匀线阵]{ULA}{ULA}{Uniform Linear Array}
\newacronym[description=最大似然估计]{MLE}{MLE}{Maximum Likelihood Estimator}
\newacronym[description=多重信号分类]{MUSIC}{MUSIC}{MUltiple SIgnal Classification}
\newacronym[description=最小方差无畸变响应]{MVDR}{MVDR}{Minimum Variance Distortionless Response}
\newacronym[description=均方根误差]{RMSE}{RMSE}{Root Mean Square Error}
\newacronym[description=基于旋转不变技术的信号参数估计]{ESPRIT}{ESPRIT}{Estimation of Signal Parameters by Rotational Invariance Techniques}
编译结果缩略词为空白,但文中\gls引用缩略词正常。
编译时输出消息如下
Process started: latexmk.exe -pdf -silent -synctex=1 "main_multifile"
Latexmk: Run number 1 of rule 'bibtex main_multifile'
Latexmk: Run number 1 of rule 'pdflatex'
Latexmk: Summary of warnings: Latex failed to resolve 4 reference(s)
Latexmk: Run number 2 of rule 'bibtex main_multifile'
Latexmk: Run number 2 of rule 'pdflatex'
Latexmk: Summary of warnings: Latex failed to resolve 4 reference(s)
Latexmk: Run number 3 of rule 'bibtex main_multifile'
Latexmk: Run number 3 of rule 'pdflatex'
Latexmk: Summary of warnings: Latex failed to resolve 4 reference(s)
Latexmk: Run number 4 of rule 'bibtex main_multifile'
Latexmk: Run number 4 of rule 'pdflatex'
Latexmk: Summary of warnings: Latex failed to resolve 4 reference(s)
Latexmk: Run number 5 of rule 'bibtex main_multifile'
Latexmk: Run number 5 of rule 'pdflatex'
Latexmk: Summary of warnings: Latex failed to resolve 4 reference(s)
Latexmk: Maximum runs of bibtex main_multifile reached without getting stable files
Latexmk: Did not finish processing file 'main_multifile': 'bibtex main_multifile' needed too many passes Latexmk: Use the -f option to force complete processing, unless error was exceeding maximum runs of latex/pdflatex.
...s\Dr. Sun\Documents\texlive\2017\bin\win32\runscript.tlu:708: command failed with exit code 12: perl.exe "c:\Users\Dr. Sun\Documents\texlive\2017\texmf-dist\scripts\latexmk\latexmk.pl" -pdf -silent -synctex=1 main_multifile
Process exited with error(s)
readme里面没有详细介绍,只是说可以在附录中写section 或 chapter,
应该是附录中没有编号才对吧?只有附录A 附录B
还有个问题就是,如果我想写两个附录怎么弄那?table是浮动的格式,附录B的内容会跑到附录A的table的前面,这样好像不太对。应该是附录A全部完了之后才有附录B的内容。
能否麻烦给一个具体的使用示例那?或者丰富下readme之类的,谢谢
我的.bib文件中有大量文献条目,这些都是平时写论文的时候积攒起来的。因为套用IEEE或者Elsevier的模板的话,最后的引用文献只会显示我在文中引用过的文献,所以没有问题,但是在使用这个论文模板的时候,后面参考文献会把.bib文件中所有的条目都呈现在最后的参考文献中。
请问是否可以调整设置,像IEEEtran或者Elsevier的模板那样,让那些只有被我在文中引用过的文献按照引用顺序在参考文献中显示出来,而其他没有引用的文献则不显示?
针对digit,如果author={},
输出的参考文献前部会强制添加 .
,如 [1] . digit [type]
。
但实际上,此时自然的输出形式因为 [1] digit [type]
。
学长您好,请问学长在运行这个模板的时候,在win10下用texlive2018运行的时候,有没有什么额外的配置需要提前准备呢,因为我直接xelatex运行的时候,一直在报错,第一个错误就是zhnumber.sty文件找不到。。。。 麻烦学长了
能不能添加缩略词索引?怎么在cls中修改?谢谢!
模板很棒,用起来也很方便。
有这样一个小问题,main.tex里面导入参考文献用的 \thesisloadbibliography 命令,无法在texstudio中的文档结构视图中显示出参考文件项目,感觉这样在添加引用的时候不太方便。
请问怎样做可以解决这个问题呢?
图片引用,貌似pdf的话,引用是可用的。但是png的话,就会是??。这个是必须把图片全部转换为pdf吗?但是转换的pdf有白边。。
例如:
author={张三 and 李四 and 王五 and 赵六},
[1] 张三, 李四, 王五, et al. 题目[J]. 期刊, 年份, 卷号(期号): 页数
参考:Is it really bad to use \makeatletter and \makeatother in a package or class file?
如上述资料所述:@
在cls
文件和sty
文件中均默认为字符类型(catcode=11
),我也在cls文件中定义了以下命令进行测试,
\newcommand{\getcatcodeat}{\the\catcode`@}% @ in class is 11
\edef\catcodeat{\the\catcode`@}
第一个命令在正文中执行时,返回的是正文中@的类型;第二个命令是获取了在cls文件中@的类型。
因此根据上述资料建议,不必使用\makeatletter
和\makeatother
(尤其是\makeatother
会改变@在cls
文件中的类型)。
但是我不太清楚在命令的内容部分是否需要执行以上命令。我猜测是需要的,命令的定义应该是在调用的时候才执行的,而不是在cls
文件中定义时执行的。以下给出cls
文件中的几处可能的改动:
1. 环境开始
\makeatletter
\AtBeginEnvironment{table}{
\def\@floatboxreset{\centering}
}
\makeatother
改为
\AtBeginEnvironment{table}{
\makeatletter
\def\@floatboxreset{\centering}
\makeatother
}
2. 命令名称
\makeatletter
\renewcommand{\@biblabel}[1]{[#1]\hfill}
\makeatother
改为
\renewcommand{\@biblabel}[1]{[#1]\hfill}
3. 环境定义
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\pushQED{\qed}
\normalfont
\topsep0pt \partopsep0pt
\trivlist
\item[\hskip5\labelsep
\heiti
#1\@addpunct{:}]\ignorespaces
}{
\popQED\endtrivlist\@endpefalse
}
\makeatother
改为
\renewenvironment{proof}[1][\proofname]{
\par
\pushQED{\qed}
\normalfont
\topsep0pt \partopsep0pt
\trivlist
\makeatletter
\item[\hskip5\labelsep
\heiti
#1\@addpunct{:}]\ignorespaces
\makeatother
}{
\makeatletter
\popQED\endtrivlist\@endpefalse
\makeatother
}
不知以上改动是否合适?
在加入枚举时,不能自动空开两个中文字符的间隔
subfig 宏包和 subfigure 宏包冲突。后者已过时,不建议使用。
想使用subfloat宏包时,需要subfig宏包,学校时富军学长的模板未提供该包,手动填加后与自带的subfigure冲突。详见讨论http://bbs.ctex.org/forum.php?mod=viewthread&tid=150385&page=2#pid539801
我看你这个模板也是subfigure宏包,是否可解决一下这种冲突呢?
模板的公式段前段后距离较大,学校论文要求段前段后距离均为6磅
目录有“第一章 xxx"但是正文里没有编号显示,求助!
审稿发现算法呈现有些“简陋”,讨论和实验后发现是因为样式无效。
首先确定编译上没有问题,但是由于cls重新申明了algorithm环境,
\DeclareFloatingEnvironment{algorithm}
导致algorithm2e的许多样式设定都不能实际生效(推测有冲突或覆盖)(如boxed,ruled)。
算法的呈现方式非常多样(建议意义明确,且呈现相对美观),在规范上,对算法的呈现也没有严格限制,
因而建议支持使用algorithm2e的丰富设定。
模板中使用了citing用于上标引用(相应地,cite为常规引用),对应代码为
\newcommand{\citing}[1]{\textsuperscript{\cite{#1}}}
在一些模板(包括老模板中)使用了citeup,对应代码为
\newcommand{\citeup}[1]{\textsuperscript{\cite{#1}}}
是否考虑 添加 citeup?就当初的使用来说,citeup确实更加直观(上标 up)。
Not issue.
As you see: https://github.com/shifujun/UESTCthesis.
Thanks.
若不指定则会报错:
`volume' is a missing field, not a string, for entry xxx
但是似乎不是所有期刊都有volume
如题,更具学校研究生的模板(http://gr.uestc.edu.cn/xiazai/114/3917),好像缺少这两页,希望大佬能够完善。
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.