Giter Site home page Giter Site logo

nju-thesis's Introduction

NJU-Thesis

本项目提供了一个用于排版南京大学学位论文的XeLaTeX模板。该模板严格遵循南京大学学术委员会对学位论文的排版格式要求以及相应的国家标准规范,可帮助南京大学的同学们方便地排版出漂亮的学位论文。

目前该模板支持排版博士、硕士和学士的学位论文。

虽然该模板主要用于排版南京大学的学位论文,但亦可经过简单的设置或修改用于排版国内其他大学的学位论文。

项目主页

本项目主页地址为:http://haixing-hu.github.io/nju-thesis/

功能特色

  • 此模版用于生成符合南京大学学位论文排版要求和相应的国家规范、行业标准的学位论文;
  • 可排版博士、硕士、学士学位论文;
  • 使用XeLaTeX作为排版引擎,论文源码需要使用UTF-8编码;
  • 自动生成国家图书馆封面、中文封面、英文封面、中文摘要页、英文摘要页、学位论文出版授权书等必需页面;

遵循的国家规范和行业标准

下载

安装使用

编译此模板前需在系统中安装Adobe中文字体:https://github.com/Haixing-Hu/font/tree/master/unicode

参见模板文档用户手册中相关章节的详细说明。

相关项目

nju-thesis's People

Contributors

haixing-hu avatar skatingsun 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  avatar  avatar

nju-thesis's Issues

参考文献的样式不正确

应该是 njuthesis.bst 中的bug。

目前发现的症状有:

  1. 对于misc类型的引文,如果没有作者和年份,却依然显示作者和年份后的标点。
  2. 生成的引文中,没有能正确压缩字符,常常在不能断行的地方断行,导致行首行尾出现标点。

证明环境结束后没有QED符号

看上去似乎是 amsthm 提供的 \qedhere 命令没起到作用。\qedsymbol 是起作用的,但是需要将这个symbol 放置在正确的位置。

一种可能的解决方案是使用 ntheorem 替代 amsthm,但 ntheorem 提供的定理环境和 amsthm 提供的无论是在自定义方式上还是使用方式上都有较大的不同。

目前尚未找到好的方法。

问题解决了

请问一下这个错误怎么解决,我是用latexstudio直接pdflatex直接编译的

每个 section 都有 warning 提醒

如题,每个 section 都有 warning 提醒

Token not allowed in a PDF string (Unicode):
(hyperref)	\kern 2.00876ptundefined
(hyperref)	removed.

一篇论文下来,有多大300个这样的warning。 请问这个是哪里的问题?

使用Mac编译以后,参考文献不见了

下载tar包以后原封未动,一字未改,直接尝试编译sample.tex,可以编译成功,但编译结果的pdf中参考文献消失了。。。
请问有没有人遇到过相同情况?

The package isn't compatible with the latest texlive

make sample shows:(with linuxfonts,phd)

Underfull \vbox (badness 10000) has occurred while \output is active [3]
Underfull \hbox (badness 4752) in paragraph at lines 332--333
[]|\EU1/AdobeSongStd(0)/m/n/12.05 距 离 \EU1/DejaVuSerif(0)/m/n/12.05 GMT \EU1/Ad
obeSongStd(0)/m/n/12.05 时 间
! TeX capacity exceeded, sorry [input stack size=5000].
\reserved@a ->\def \reserved@a
{\caption@startrue \caption@dblarg {@Captio...
l.338 \caption{
测试表格}\label{table:test1}
Output written on sample.pdf (23 pages).
Transcript written on sample.log.
Makefile:55: recipe for target 'sample.pdf' failed
make: *
* [sample.pdf] Error 1

the xelatex -v shows

XeTeX 3.14159265-2.6-0.99991 (TeX Live 2014/Arch Linux)
kpathsea version 6.2.0
Copyright 2014 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 55.1; using 55.1
Compiled with zlib version 1.2.8; using 1.2.8
Compiled with FreeType2 version 2.5.5; using 2.5.5
Compiled with Graphite2 version 1.2.4; using 1.2.4
Compiled with HarfBuzz version 0.9.40; using 0.9.40
Compiled with libpng version 1.6.16; using 1.6.16
Compiled with poppler version 0.32.0
Compiled with fontconfig version 2.11.1; using 2.11.1

the texlive-core version

Name : texlive-core
Version : 2014.36709-1
Description : TeX Live core distribution
Architecture : any
URL : http://tug.org/texlive/
Licenses : GPL
Groups : texlive-most
Provides : tetex texlive-latex3
Depends On : texlive-bin perl
Optional Deps : dialog: for texconfig [installed]
ghostscript: for epstopdf, epspdf and other ConTeXt tools [installed]
java-runtime: for utilities like arara
perl-tk: for texdoctk
psutils: to manipulate the output of dvips
python: for pythontex [installed]
python2: for dviasm [installed]
ruby: for old ConTeXT MkII and epspdf [installed]
t1utils: can be useful when installing Type1 fonts
Required By : texlive-bibtexextra texlive-fontsextra texlive-formatsextra texlive-games texlive-genericextra texlive-htmlxml texlive-humanities texlive-langchinese
texlive-langjapanese texlive-langkorean texlive-latexextra texlive-music texlive-pictures texlive-plainextra texlive-pstricks texlive-publishers
texlive-science texvc
Optional For : ghostscript
Conflicts With : tetex texlive-latex3
Replaces : tetex texlive-latex3
Installed Size : 297.67 MiB
Packager : Rémy Oudompheng [email protected]
Build Date : Mon 06 Apr 2015 06:40:51 AM CST
Install Date : Sun 12 Apr 2015 01:54:13 PM CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

编译错误

在win下,使用ctex_full出现编译错误:
! LaTeX Error: File `xeCJKfntef.sty' not found.
已经尝试在CTEX\MiKTeX\tex\xelatex\xecjk路径下放xeCJKfntef.sty文件了

参考文献中长的英文作者名会出现错误的缩写

@Online{IIE_Open_Doors_2015,
  author = {Insitute of International Education},
  title =  {Open Doors Data - International Students: Academic Level},
  type =   {Web Page},
  url =    {http://www.iie.org/Research-and-Publications/Open-Doors/Data/International-Students/Academic-Level/2013-15},
  year =   {2015}
}

参考文献中是
[1] of INTERNATIONAL EDUCATION I. Open Doors Data - International Students: Academic
Level[EB/OL]. 2015.
http://www.iie.org/Research-and-Publications/Open-Doors/Data/
International-Students/Academic-Level/2013-15.

是否可以考虑增加一个控制?

需参考一下国家标准来定制论文样式细节

网上检索了一下,可参考的标准包括

  • GB/T 7714-2005 文后参考文献著录规则, 2005.
  • GB/T 7713.1-2006 学位论文编写规则, 2006.
  • GB/T 7713.3-2009 科技报告编写规则,2009.
  • GB/T 7713-1987 科学技术报告、学位论文和学术论文的编写格式,1987.

不过这些标准好像很难在网上找到下载版。

Cannot use the `\subfloat` command when compiled with TeX Live 2015

Problem description:

When using the \subfloat to place multiple image in one figure environment, the following problem occurs:

! Undefined control sequence.
\in@ #1#2->\begingroup \def \in@@
                                  ##1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...
l.7   \subfloat
               [A]{

System environment:

OS: macOS Sierra 10.12.3

$ uname -v
Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64

$ tex --version
TeX 3.14159265 (TeX Live 2015)
kpathsea version 6.2.1
Copyright 2015 D.E. Knuth.

$ xelatex --version
XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)
kpathsea version 6.2.1
Copyright 2015 SIL International, Jonathan Kew and Khaled Hosny.

Minimal example to reproduce the problem

$ ls
gbt7714-2005.bst   njuname.eps        njuthesis.cls      test_njuthesis.log
njulogo.eps              njuthesis.cfg        test_njuthesis.tex

The test_njuthesis.tex is written as follows:

\documentclass[master, macfonts, draft]{njuthesis}

\begin{document}

\begin{figure}[!htbp]
  \centering
  \subfloat[A]{
    \includegraphics[width=0.41\textwidth]{A.pdf}
  }
  \hfill
  \subfloat[B]{
    \includegraphics[width=0.41\textwidth]{B.pdf}
  }
  \caption{\small AAA \label{fig:AAA}}
\end{figure}

\end{document}

Additional info

I also post the same question on TeX Stackexchange. Hope there would be some useful answers.

使用subfloat命令编译出错

comments的窗口实在太小,就简单写一下报的错误:
!Undefined Control Sequence.
\in@ #1#2->begingroup \def in@@

1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...

1.17 \subfloat
[xx]{

Starfish给出的临时解决方法是,将cls文件中的\RequirePackage{subfig}替换为
\RequirePackage{caption}
\RequirePackage{subcaption}
然后在文中使用下面的代码来画子图
\begin{figure}[h]
\centering
\subcaptionbox{First subfigure\label{subfloat:first}}
{\includegraphics[width=0.3\textwidth]{figure/childs2003_graph.pdf}}
\qquad
\subcaptionbox{Second subfigure\label{subfloat:second}}
{\includegraphics[width=0.3\textwidth]{figure/childs2003_graph.pdf}}

经测试,可以解决问题

ubuntu12.04LTS+ texlive-full2009 下编译不通过

一个是默认的英文字体没有。。
\newcommand_{\njut@enfn@main}{Times}
\newcommand_{\njut@enfn@sans}{Helvetica}
\newcommand_{\njut@enfn@mono}{Courier}
改成下面后通过
\newcommand_{\njut@enfn@main}{Times New Roman}
\newcommand_{\njut@enfn@sans}{Arial}
\newcommand_{\njut@enfn@mono}{Courier New}

但又有新的问题
Package blindtext Warning: pinyin not defined, using English instead.
(blindtext) on input line 164.

! Package babel Error: You haven't loaded the option english yet.

See the babel package documentation for explanation.
Type H for immediate help.
...

l.164 \englishkeywords
{Small World, Network Model, Data Center}

章节序号丢失

在Ubuntu16.04系统中, XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex)生成的文档丢失标题序号:
image
似乎\titleformat并没有工作。

xelatex下可以使用公式的preview吗?

我对选定公式进行 C-c C-p C-r 的时候,报错,我看auctex使用的是这条命令:
Running Preview-LaTeX' onregion' with ``pdflatex -file-line-error -shell-escape --synctex=1 "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" region.tex''

对于论文的英文标题如何换行显示?

在latex模板中,有以下一行

% 论文的英文标题,注意其中不可换行
\englishtitle{XXXXXXXXXXXXX}

要是英文名字很长,显示的时候英文和THESIS重合起来了,不能够换到下一行显示。请问有什么办法解决吗?

njuthesis.dtx 文件的小问题

在njuthesis.dtx的第442行,变量名好像出现错误:% $ mkdir -p ${TETEXMFLOCALXMF}/doc/latex/njuthesis,应该为${TEXMFLOCAL}

error

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Times" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H .
!...............................................

l.178 \setmainfont{\njut@enfn@main}

?

公式字体问题

Hi,

感谢分享。

请教下这个模板显示的公式字体似乎与直接用latex写的文档的字体稍有不同,请问如何显示成正常公式字体?

例如使用如下代码:
`
字体测试

\begin{itemize}
\item 英文小写字母:$x$
\item 英文黑体小写字母:${\bf x}$
\item 英文黑体小写斜体字母:${\boldsymbol x}$
\item 英文大写字母:$X$
\item 英文黑体大写字母:${\bf X}$
\item 英文黑体大写斜体字母:${\boldsymbol X}$
\end{itemize}
`

结果显示为:
image

而正常显示为:
image2

其中最明显的,${\bf x}$是明显不一样的。

谢谢。

无法添加 表注和图注

图注不添加不打紧。因为我的研究表注比较多,但不知道如何添加才能适配。
表格我用threeparttable的环境的话,caption就无法居中对齐了。
谢谢胡博士!

如何设置字体?

Hi Xinghai,

帮助文档说可以设置字体,且默认使用adobefonts. 我的系统上没有adobe字体,我也不想去网上下载,我现在想用系统自带的字体macfonts。

现在的情况是,我不知道如何将cls文件的字体设置成macfonts!文档没有提供说明,makefile和dtx文件中也没有找到相关的开关选项。

您能提供一个建议吗?谢谢。

正文字体是不是大了?

我在mac下编译,由于我已经将windows里的字体都拷贝过来了,所以在cls文件里,直接使用了windows
字体。我手上有已毕业师兄的博士论文,我数了一下,他们的正文一行大概有37个字,而这个模板大概只有31个。请问,这个模板的字体大小符合学校要求吗?

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.