Git Product home page Git Product logo

thesis-se-zju-latex's Introduction

浙江大学软件学院硕士研究生学位论文LaTeX模板

模板上游:ZJU-Awesome
模板改造者: zsyh等

注:本人毕业后不再维护本模板,不对使用本模板产生的任何后果负责。

1、简介

为了方便学位论文的排版,让作者专心于内容, 根据《浙江大学软件学院论文格式要求》 ,《浙江大学软件学院论文模板》 以及《浙江大学研究生学位论文编写规则》,并结合实际,改造设计了相应的LaTeX模版。

软件学院声称其格式要求引用自研究生院格式要求,实际情况未可知。排版一事,但求整齐悦目,若为统一归档,窃以为研究生院可确立统一排版框架,各学系可依照实情对本系专属的排版元素(如CS类的算法环境、理科各系的定理环境)进行详细定义,归档时统一完成。

本模板建议软件学院同学使用

2、编译方法

2.1、 OS XMacTeX2016 不低于 OS X Yosemite 通过)

拷贝 .latexmkrc 到家目录

$ cp latexmkrc_mac ~/.latexmkrc

使用latexmk 命令进行编译。 如果您遇到编译错误,请检查是否正确安装mactex和以上字体包。

$ latexmk main

2.2、 windows (仅在TexLive2016 on windows10 测试):

首先在环境变量里设置$HOME,一般是C:\Users\<username>

添加或修改 .latexmkrc前,请做好备份。

\> copy latexmkrc_win %HOME%\.latexmkrc

一样使用 latexmk 命令进行编译。 如果您遇到编译错误,请检查是否正确安装texlive和以上字体包。

2.3、Linux (TeXLive2016):

首先添加或修改 .latexmkrc,请做好备份。

$ cp latexmkrc_linux ~/.latexmkrc

然后使用 latexmk 命令进行编译。 如果您遇到编译错误,请检查是否正确安装texlive以上字体包。

windows和Linxu 皆使用 TeXLive 2016 安装 TeXLive 2016 中文文档

2.4、 开启实时编译(OS X)

论文编译时间通常在20秒以上, 为减少论文修改时的查错成本, 强烈建议设置实时编译。 方案如下:

由于 OS X 默认的 Preview 不支持自动刷新, 所以不得不安装 skim pdf 阅读器, 若不信任此应用,请参照之后方法自行解决。 安装完成后,在 Sync(同步) 设置处打开 Check for file Changes。 同时修改家目录的 latexmkrc 文件。(如果您使用的是 OS X 默认 sed 请执行)

$ sed -i '' -e '$ d' ~/.latexmkrc
$ echo "\$pdf_previewer = 'open -a /Applications/Skim.app %O %S';" >> ~/.latexmkrc

现在修改论文源码前,可以在 main.tex 的路径下输入命令

$ latexmk -pdf -pvc -xelatex main

为简化需要在终端输入的命令,可以在日常设定的 rc 文件中自行加入一个 alias

如果仅仅编译一次论文,则在论文根目录下输入命令

$ latexmk main

若出现连续几次编译错误并且确信论文源码并无语法错误,则可以尝试清空临时文件的命令再编译

$ latexmk -c && latexmk main

有洁癖的极端处女座,可以输入以下内容保证每次实时编译都清理临时文件:

$ echo "\$clean_ext = 'synctex.gz synctex.gz(busy) acn acr alg aux bbl bcf blg brf dvi fdb_latexmk glg glo gls idx ilg ind ist lof log lot lox out paux pdfsync run.xml toc';">>~/.latexmkrc

3、相关资源文件说明

├── clean.bat % windows的清理批处理
├── contents  % 被引用的内容 不可嵌套引用
│   ├── abstract_chinese.tex
│   ├── abstract_english.tex
│   ├── intro.tex
│   ├── whyla.tex
│   ├── elem.tex
│   ├── sum.tex
│   └── thanks.tex
├── main.tex % 论文主源码(通过 include 以上文件来组成论文内容)
├── figures  % 引用图片目录
│   ├── ...
│   ├── ...
│   └── ...
├── gbt7714-2005.bst   % 参考文献样式(胡海星)
├── logo
│   ├── QSY.pdf
│   └── ZJDX.pdf
├── references % 论文引文数据库 自行维护
│   └── test.bib
├── zjuthesis.cls       % 论文全书样式 小心查看和修改 避免手残
└── ...

通过 latexmk main 将论文编译出来后,请检视内容尝试理解本论文模板。

4、注意事项

建议使用TeXLive 2016发行版,并采用XeLaTeX进行编译。 论文模板属于学习交流性质, 暂无任何官方机构为本模板合法性背书。 另请妥善维护自己的论文资料, 对论文排版过程中造成的不可预见的意外本人概不负责。

目前已知的一个难解问题在于生僻字的排印问题: 如果在论文段落以外的区域排版生僻字,将高于当前行基线一个微小的单位。 本人提供一个不得已为之的解法:为此生僻字预留一个em框(可能涉及更动论文模板,请参照修改), 在论文输出后利用OS X 的 Preview 提供的编辑功能补上该生僻字的文本框。

5、许可权和贡献

MIT

欢迎 issue 和 PR

thesis-se-zju-latex's People

Contributors

githamburger avatar skychan avatar automarita avatar zsyh avatar

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.