Giter Club home page Giter Club logo

ustcthesis's Introduction

模板持续更新,请及时到如下网址进行更新!
项目网址:
   https://github.com/ywgATustcbbs?tab=repositories
备份网址:
   https://gitlab.lug.ustc.edu.cn/ywg/ustcthesis

新手请仔细阅读《第一次接触LaTeX?读我》

请安装texlive2013或更新的texlive发行版,目前已知CTeX套装和本模板存在一定的兼容问题。CTeX套装最后更新是在2012年,并且之后并入texlive发行,不在单独发布!

开始撰写论文之前请仔细阅读main.pdf和main.tex以及chapter下的各章节,其中有许多基础代码示例可供参考

关于模板更详细的情况请查看main.pdf
pdf文件中没有代码示例的,可以参考main.tex、各章节源文件以及其注释

ustcthesis's People

Contributors

seisman avatar wzhd avatar ywgatustcbbs avatar zepinglee 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

ustcthesis's Issues

Move to Git or Hg?

Googlecode has supported Git and Hg. Would mind moving to one of them? They are 
DVCS thus other people could easily contribute to this project.

Original issue reported on code.google.com by xuhdev on 1 May 2012 at 3:08

书脊没有编译出来

我编译了一下发现没有书脊内容,看了下貌似您提供的main.pdf 也没有书脊,不知道是我编译错了还有模板有个小bug呢?

页码居中?

关于页码位置,《规范》中有两种互相矛盾的说法。

在2.6.2.3节

页码从绪论开始按阿拉伯数字(1,2,3……)连续编排,此前的部分(中英文摘要、目录等)用大写罗马数    
字(I,II,III…)单独编排,页码位置居于页脚居中。封面、扉页、创新性声明等不编页码。

在3.1节

 页码 宋体10.5磅页面下脚右端

囧rz...

目前模板中页码位于页脚的单侧,《规范》的示例中页码位于中间。

排版问题(标题,图,code)

USTC_Thesis_Bachelor_20120511版
Ctex最新版,win7x64sp1en
BBS上没人回答我的问题。。。

1 
连续的几个subsubsection并且subsubsection之间没有正文内容时,到
本页面底部会导 
致内容超出页面 

2 
图的问题,貌似tex插图一直是个大问题 
有张图,设置为[ht],但是由于图稍大,导致该页没放下,自�
��移到下一页top,但是, 
下一页的一小段文字已到了本页。 
问题1:怎么样强制确定图文顺序,即不让下一页的文字移到�
��一页 
问题2:由于移到上一页的段落较短,导致占不满该页的空白�
��使得这段与图片前(指代 
码前)一段中间留有部分空白,非常不美观。 

3 
关于code environment的问题 
由于插入的code较长,导致code不能完全显示,即一部分code超��
�页面。是不是因为 
box不能跨页的问题导致的? 

Original issue reported on code.google.com by [email protected] on 16 May 2012 at 8:23

Makefile的问题

用vim+latex suite 时碰到设置主文件后不能编译的情况.

由于不熟悉makefile, 估计原因是:
在设置主文件的情况下(main.tex.latexmainmain.tex的主文件), latex suite的compiler.vim会自动寻找main.tex同目录下的makefile并用他来编译文件main.tex. 而你给的Makefile是不是只是生产这个项目的?

为了避免混淆, 建议改进. (我重命名Makefile->Makefile.bak``即可用\ll正常编译).

Linux Mint 18下使用TexMaker编译成功的修改方法

将软件源选择成中科大的。

  1. sudo apt-get install texlive-full

  2. 安装 texmaker

  3. 下载本项目并解压

  4. 打开ustcxtra.cls

    setmainfont{Times New Roman}
    setmonofont[BoldFont={Courier New Bold}]{Courier New}
    setsansfont[BoldFont={Arial:style=Bold}]{Arial}
    修改成
    \setmainfont{Latin Modern Roman}
    \setmonofont[BoldFont={Courier}]{Courier}
    \setsansfont[BoldFont={DejaVu Sans:style=Bold}]{DejaVu Sans}

  5. 打开main.tex

    % 附录,没有请注释掉
    \begin{appendix}
    \include{chapter/chap-req}
    \end{appendix}
    修改成
    % 附录,没有请注释掉
    %\begin{appendix}
    \include{chapter/chap-req}
    % \end{appendix}

  6. 使用xelatex编译通过。

表格、插图、算法索引错误

http://bbs.ustc.edu.cn/cgi/bbstcon?board=TeX&file=M.1430317627.A

发信人: pineli (追光), 信区: TeX 
标  题: 【请教】本科毕业论文生成目录的一个小问题 
发信站: 瀚海星云 (2015年04月29日22:27:07 星期三), 站内信件 WWWPOST 

发现一个小问题,使用ywg师兄提供的本科毕业论文模板生成的目录中,在表格索引、插 
图索引、算法索引三个位置处用鼠标点击不能链接到正确的页码,比如点击“表格索引 
”停留在“目录页”、点击“插图索引”跳到“表格索引”页,点击“算法索引”跳到 
“插图索引”页……已经编译过N次,查了好久资料完全没有头绪解决,求高手帮忙解决 
~ 

多谢! 

模板重构

现在的模板存在若干问题:

  1. 模板基于ctex 1.x,而texlive 2015中ctex已经更新到2.x,虽然理论上2.x是兼容1.x的,但实际上现有模板在texlive 2015下无法编译通过,看了一下想要把错误找到看上去不容易;考虑到新用户基本都会安装最新版的texlive,所以模板应至少保证在最新版的texlive下可以编译通过;
  2. 源码格式不规范,没有缩进,导致阅读困难;
  3. 源码顺序混乱,没有条理,对同一个东西的设置可能出现在多个地方;
  4. 部分源码功能不清晰,感觉是从哪里直接复制粘贴过来的,而且似乎是很久之前的解决方案。这部分代码可能是不需要的;
  5. 就目前来说,向后兼容没有意义。同一个人,最多也就本科毕业、硕士毕业、博士毕业会用到这个模板,所以两次使用模板的间隔会有3年以上,向后兼容的意义不大,而且latex宏包的发展很迅速,为了向后兼容而增加大量代码没有太多意义,而且可能会造成后人维护上的困难;
  6. 定义了太多新命令或环境,比如自定义了字号、字体名等。对于已经熟悉LaTeX的用户来说,他们更愿意使用ctex提供的相应命令,模板提供的新命令可能会让这群人困惑;对于不熟悉LaTeX的用户来说,可能会让他们误以为这些命令是LaTeX的命令;
  7. 有些选项不是那么必要,比如oldfont选项,用latex的模板就是为了不必关心格式,使用windowsfont, adobefont以及macfont就足够了,oldfont目前看来没有必要;
  8. 关于自定义字号的问题,在前一个issue中也提到了。我了解了一下,自定义字号是因为排版和计算机行业的某些定义不同。ctex都没有管这种细节,我觉得我们的模板也不应该管这些细节;至少暂时不需要;
  9. 格式没有完全按照规范来。的确学校的规范中有很多自相矛盾或者不合理的地方,但毕竟是学校的规范,所以模板应尽可能完全遵循学校的论文规范。在遵循学校规范的基础上,可以适当加上其他选项以得到更多自定义的效果;
  10. 本科论文规范。目前的模板基本上遵循了硕博论文规范,但是几乎不符合本科论文规范。这个事情比较头疼,因为两个规范差别还是有些大的。

所以,应该对模板进行重构,从现在到明年三月,大半年的时间,做出一个正式版应该是足够的了:

  1. 基于ctex2.x;
  2. 默认的配置尽可能完全遵循学校规范;
  3. 不再兼容之前的模板,重新设计选项;
  4. 发布正式版;

目前,我完成了模块的部分重构:

  1. 硕博论文的整体结构以及具体格式已经完成,但行间距的定义让我比较困惑,所以行间距还需要确定;
  2. 目前使用了尽可能少的宏包,但已经可以满足一般文档的书写了,至于其他图片、表格、算法等宏包,可以后续再添加;
  3. 本科论文可以编译通过,但格式基本还是硕博论文的格式,主要是本科论文和硕博论文的规范差异比较大,很多部分得写两份;
  4. 正文部分,我想可以介绍一下latex以及模板的用法,这部分还没有写。

另外, @zepinglee 似乎新建了一个github账户,在做ustcthesis-v2.0,可以考虑合并一下,具体还有待商榷。

编译排版 参考文献

What steps will reproduce the problem?
1. 打开main.tex
2. XeLaTeX编译排版

What is the expected output? What do you see instead?
main.pdf里没有参考文献这一部分。

What version of the product are you using? On what operating system?
最新版。Windows 7


Original issue reported on code.google.com by [email protected] on 9 Nov 2014 at 2:45

模板格式与规定不符请在这里提

如果一个人去一个一个翻规定,实在是精力有限,而且不一定能注意到一些细节,所以请将这些不符的地方发在这里,方便以后查找

需要注明:

哪个模板(本科/硕士/博士模板)
哪里与规定不符(最好有规定的具体信息:内容,在哪一页,模板是什么表现,这样方便查找)

如果你有修改的方案,也可以附上

非衬线字体和等宽字体设置错误

在ustcxtra.cls的第81~83行,非衬线字体和等宽字体设置错了。

因为Sans-serif非衬线字体,是指Helvetica、Arial这样的,而monofont等宽字体是指Menlo、Monaco、Courier New之类的。

denotation error

在编译符号表时总是出现以下错误,我用的是ctex最新版,xela
tex编译,
即使下载源包不做任何修改仍有这个问题。


(D:\study\phd-graduation\thesis\chapter/denotation.tex [14


]
! Missing number, treated as zero.
<to be read again> 
                   \relax 
l.2 \item
         [STRIPS] 斯坦福研究所问题求解器
? 
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \relax 
l.2 \item
         [STRIPS] 斯坦福研究所问题求解器
? 

Original issue reported on code.google.com by qianglvv on 3 May 2012 at 6:18

Attachments:

figures中的png图片后缀名大写导致出错

我发现在linux下,make main.tex的时候会出错。
原因是figures中的png图片后缀名是大写的,而linux里面文件大��
�写是不同的,好像texlive 2011 
套装里面的处理图片的东西只认小写的png后缀。手动改过来��
�后没有错误。

虽然只是个小问题,但是希望能修改一下,谢谢!

Original issue reported on code.google.com by [email protected] on 17 May 2012 at 1:55

字号设置不对

ustcthesis.cls第157行开始,字号的设置是错的
比如初号是42bp不是42pt,等等
建议使用ctex的接口\zihao{},这样可移植性也好一些

引用格式及参考文献格式

模板中目前引用采用编号,《规范》中推荐的写法是

在正文引用文献处标注著者姓名与出版年份,在文后的参考文献表中标注参考文献的详细信息。

也可采用顺序编码方式:

参考文献如果按照顺序编码制著录,可参照GB/T 7714-2005《文后参考文献著录规则》执行。

Tex Live 2015 兼容性

我的系统是OS X 10.10 + MacTeX 2015,本来想修改一下macfonts选项的字体的,却发现似乎有些兼容性问题。

第一次make报错是这样:

(./chapter/chap-req.tex
附录 A
! Missing number, treated as zero.
<to be read again> 
                   _
l.2 ...术大学研究生学位论文撰写规范}

我把main.tex里面的appendix注释掉后再make,报错是这样:

! Arithmetic overflow.
\dim_eval:n ...N \__dim_eval:w #1\__dim_eval_end: 

l.15 \end
         {document}

这个我也看不懂了

Tex Live 2015 编译错误

我的系统是windows 8.1,编译遇到的错误如下:
lstat(./xelatex) failed ...
./xelatex: No such file or directory
assertion "ret" failed: file "/home/kbrown/src/cygtexlive/texlive/texlive-20140523-1.x86_64/src/texlive-20140523-source/texk/kpathsea/progname.c", line 316, function: remove_dots
0 [main] xelatex 14896 cygwin_exception::open_stackdumpfile: Dumping stack trace to xetex.exe.stackdump

有人有类似问题吗?

support in linux

I just done a test of compile it in freeshell of ustc, and write down the 
solutions of problem I have encounter, hope that will help few (since I believe 
quite a few people will need this) people.

The post is here: https://lttt.blog.ustc.edu.cn/?p=4485

Original issue reported on code.google.com by [email protected] on 4 Mar 2015 at 4:24

Key Words or Keywords

我查了一下不同的期刊,有的用key words有的用keywords,似乎没有一个统一的标准,姑且认为两个都是对的。

学校的规范中使用的是Key Words, 模板里是否改成跟规范一致?

将notchinese放在单独的文件中

建议将notchinese相关的语句放在单独的文件中,主要原因是notchinese选项在实际中很少会被用到。而现在代码的处理中,有多处对notchinese进行判断,如果为真则执行非中文的设置,如果为假则执行中文的设置。这样使得代码看上去比较乱。

我的建议是,把notchinese相关的选项都放在notchinese.cls中。ustcthesis.cls中只包含中文相关的设置,然后在结尾处判断notchinese,若为真则把notchinese.cls包含进来,notchinese.cls中的选项覆盖中文的相关设置。

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.