Skip to content
Snippets Groups Projects
Commit 99e27235 authored by mc's avatar mc
Browse files

Merge branch 'master' of https://github.com/nju-lug/NJUThesis

parents 1b623ef5 99975559
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,8 @@ DocStrip格式合并了LaTeX源代码和说明文档,更有利于宏包的发 ...@@ -45,10 +45,8 @@ DocStrip格式合并了LaTeX源代码和说明文档,更有利于宏包的发
```shell ```shell
NJUThesis-master/ NJUThesis-master/
├─figure/ │ njulogo.tikz
│ njulogo.pdf │ njuname.tikz
│ njuname.pdf
│ njuthesis.bib │ njuthesis.bib
│ njuthesis.cls │ njuthesis.cls
│ njuthesis-sample.tex │ njuthesis-sample.tex
......
...@@ -25,9 +25,10 @@ ...@@ -25,9 +25,10 @@
% %
% \begin{implementation} % \begin{implementation}
% %
% \section{代码实现} % \subsection{南大徽标}
% %
% 以下为南京大学校徽及校名 % 以下为南京大学校徽及校名。矢量图来自南京大学视觉形象规范化标准,可以从校长办公室的
% \href{https://xiaoban.nju.edu.cn/c7/7b/c684a509819/page.psp}{相关页面}下载。
% %
% \begin{macrocode} % \begin{macrocode}
%<*njulogo> %<*njulogo>
...@@ -69,7 +70,6 @@ ...@@ -69,7 +70,6 @@
%</njulogo> %</njulogo>
% \end{macrocode} % \end{macrocode}
% %
%
% \begin{macrocode} % \begin{macrocode}
%<*njuname> %<*njuname>
\def \globalscale {1.000000} \def \globalscale {1.000000}
......
...@@ -72,10 +72,8 @@ DocStrip格式合并了LaTeX源代码和说明文档,更有利于宏包的发 ...@@ -72,10 +72,8 @@ DocStrip格式合并了LaTeX源代码和说明文档,更有利于宏包的发
```shell ```shell
NJUThesis-master/ NJUThesis-master/
├─figure/ │ njulogo.tikz
│ njulogo.pdf │ njuname.tikz
│ njuname.pdf
│ njuthesis.bib │ njuthesis.bib
│ njuthesis.cls │ njuthesis.cls
│ njuthesis-sample.tex │ njuthesis-sample.tex
...@@ -177,10 +175,9 @@ through XeTeX. ...@@ -177,10 +175,9 @@ through XeTeX.
%<*install> %<*install>
\usedir{doc/latex/njuthesis} \usedir{doc/latex/njuthesis}
\nopreamble\nopostamble \nopreamble\nopostamble
\file{README_EN.md} {\from{\jobname.dtx}{readme-en}} \file{njuname.tikz} {\from{\jobname-logos.dtx}{njulogo}}
\file{njulogo.tikz} {\from{\jobname-logos.dtx}{njuname}}
\file{README.md} {\from{\jobname.dtx}{readme-zh}} \file{README.md} {\from{\jobname.dtx}{readme-zh}}
\file{njuname.tikz} {\from{\jobname-logos.dtx}{njulogo}}
\file{njulogo.tikz} {\from{\jobname-logos.dtx}{njuname}}
} }
\obeyspaces \obeyspaces
...@@ -191,6 +188,8 @@ through XeTeX. ...@@ -191,6 +188,8 @@ through XeTeX.
\Msg{* *} \Msg{* *}
\Msg{* The recommended directory is TDS:tex/latex/njuthesis *} \Msg{* The recommended directory is TDS:tex/latex/njuthesis *}
\Msg{* *} \Msg{* *}
\Msg{* njulogo.tikz *}
\Msg{* njuname.tikz *}
\Msg{* njuthesis.cls *} \Msg{* njuthesis.cls *}
\Msg{* njuthesis.ins *} \Msg{* njuthesis.ins *}
\Msg{* README.md *} \Msg{* README.md *}
...@@ -441,21 +440,36 @@ through XeTeX. ...@@ -441,21 +440,36 @@ through XeTeX.
% %
% \section{使用方法} % \section{使用方法}
% %
% \subsection{模板选项} % \subsection{标准结构}
% %
% 尖括号内列出了若干个允许的选项,其中加粗的为默认选项。 % 典型的\cls{njuthesis}主文件结构应该如下所示:
% %
% 封面标题留空即可自动化换行 % \begin{ctexexam}
% \documentclass[<options>]{njuthesis}
% \njusetup { info = {<info>} }
% \graphicspath{{figure/}}
% \addbibresource{njuthesis.bib}
% \begin{document}
% \maketitle
% <abstract>
% <preface>
% \tableofcontents
% \listoffigures
% \listoftables
% \mainmatter
% <text>
% \printbibliography[heading=bibintoc,title=参考文献]
% <acknowledgement>
% \appendix
% <appendix>
% \end{document}
% \end{ctexexam}
% %
% 第二导师不填则留空,目前来说拥有两位指导老师并不是一种普遍状况。 % \subsection{模板选项}
% %
% \begin{function}[added=2021-09-07]{nlcover} % 模板选项位于|\documentclass|后的方括号内,用于指定模板的行为。
% \begin{syntax} % 下文中尖括号内列出了若干个允许的选项,其中加粗的为默认选项。
% nlcover = <\TTF>
% \end{syntax}
% %
% 通过此项可选择是否添加国家图书馆封面,本选项仅对于研究生有效
% \end{function}
% %
% %
% \subsubsection{学位信息} % \subsubsection{学位信息}
...@@ -467,7 +481,14 @@ through XeTeX. ...@@ -467,7 +481,14 @@ through XeTeX.
% 选择学位,可选: % 选择学位,可选:
% \opt{ug}(默认本科),\opt{mg}即学术硕士,\opt{mf},\opt{phd}。 % \opt{ug}(默认本科),\opt{mg}即学术硕士,\opt{mf},\opt{phd}。
% \end{function} % \end{function}
% %
% \begin{function}[added=2021-09-07]{nlcover}
% \begin{syntax}
% nlcover = <\TTF>
% \end{syntax}
%
% 通过此项可选择是否添加国家图书馆封面,本选项仅对于研究生有效
% \end{function}
% %
% \begin{function}[added=2021-09-07]{type} % \begin{function}[added=2021-09-07]{type}
% \begin{syntax} % \begin{syntax}
...@@ -579,6 +600,10 @@ through XeTeX. ...@@ -579,6 +600,10 @@ through XeTeX.
% %
% 本科生可以参考如下列表输入个人信息。注意不能有空行,有空格的内容需要将空格替换为波浪线或者两端加上大括号 % 本科生可以参考如下列表输入个人信息。注意不能有空行,有空格的内容需要将空格替换为波浪线或者两端加上大括号
% %
% 封面标题留空即可自动化换行。
%
% 第二导师不填则留空,目前来说拥有两位指导老师并不是一种普遍状况。
%
% \begin{ctexexam} % \begin{ctexexam}
% \njusetup { % \njusetup {
% info = { % info = {
...@@ -668,7 +693,7 @@ through XeTeX. ...@@ -668,7 +693,7 @@ through XeTeX.
% %
% \subsubsection{图片} % \subsubsection{图片}
% %
% 所有图片默认存放在主目录下的\texttt{figure/}文件夹内,允许的文件名包括\file{*.jpg}, \file{*.png}, \file{*.pdf}, \file{*.eps}。可以在导言区通过以下命令添加图片存放路径。 % 所有图片默认存放在主目录下的\texttt{figure/}文件夹内,允许的文件名包括\file{*.jpg}, \file{*.png}, \file{*.pdf}, \file{*.eps}。使用自己的图片时,需要在导言区通过以下命令添加图片存放路径。
% %
% \begin{ctexexam} % \begin{ctexexam}
% \graphicspath{{img/}{images/}} % \graphicspath{{img/}{images/}}
...@@ -820,7 +845,6 @@ through XeTeX. ...@@ -820,7 +845,6 @@ through XeTeX.
% \end{englishabstract} % \end{englishabstract}
% \end{ctexexam} % \end{ctexexam}
% %
% 在使用\hologo{LuaLaTeX}编译时,研究生中文摘要页的标题会出现空格无下划线的问题,目前正在积极寻求解决方法。
% %
% \subsubsection{前言页} % \subsubsection{前言页}
% %
...@@ -2239,7 +2263,7 @@ through XeTeX. ...@@ -2239,7 +2263,7 @@ through XeTeX.
\thispagestyle{empty} \thispagestyle{empty}
\pagenumbering{Roman} \pagenumbering{Roman}
% Start % Start
\pdfbookmark{封面}{封面} % 将封面插入pdf书签 \pdfbookmark{封面}{cover} % 将封面插入pdf书签
\begin{spacing}{1.25} \begin{spacing}{1.25}
\vskip 0mm \vskip 0mm
\hspace{-10mm} \hspace{-10mm}
...@@ -2274,7 +2298,7 @@ through XeTeX. ...@@ -2274,7 +2298,7 @@ through XeTeX.
\thispagestyle{empty} \thispagestyle{empty}
\pagenumbering{Roman} \pagenumbering{Roman}
% Start % Start
\pdfbookmark{封面}{封面} % 将封面插入pdf书签 \pdfbookmark{封面}{cover} % 将封面插入pdf书签
\begin{spacing}{1.25} \begin{spacing}{1.25}
\begin{center} \begin{center}
\hspace{0pt} \vskip 5mm \hspace{0pt} \vskip 5mm
...@@ -2329,7 +2353,7 @@ through XeTeX. ...@@ -2329,7 +2353,7 @@ through XeTeX.
\cs_new_protected:Npn \@@_print_cover_en: \cs_new_protected:Npn \@@_print_cover_en:
{ {
\thispagestyle{empty} \thispagestyle{empty}
\pdfbookmark{英文封面}{English~cover} % 将封面插入pdf书签 \pdfbookmark{英文封面}{cover-en} % 将封面插入pdf书签
\begin{center} \begin{center}
\vspace*{20pt} \vspace*{20pt}
\bf\sffamily\zihao{2}\l_@@_info_title_en_tl \bf\sffamily\zihao{2}\l_@@_info_title_en_tl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment