Skip to content
Snippets Groups Projects
Verified Commit 4361fde3 authored by Koishi Jinguji's avatar Koishi Jinguji Committed by Lin Yinfeng
Browse files

fix:规范TeX大小写

parent bb6ee9b2
No related branches found
No related tags found
No related merge requests found
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
#### **关于本地编译** #### **关于本地编译**
- 模板支持`latexmk``XeLaTex``LuaLaTex`三种编译方式 - 模板支持`latexmk``xelatex``lualatex`三种编译方式
- 如果使用`latexmk`,请务必使用完整的命令`latexmk -xelatex`以免产生不必要的问题 - 如果使用`latexmk`,请务必使用完整的命令`latexmk -xelatex`以免产生不必要的问题
- 如果使用`XeLaTex``LuaLaTex`,需要按照`XeLaTex/LuaLaTex` -> `biber` -> `XeLaTex/LuaLaTex` -> `XeLaTex/LuaLaTex`的顺序编译四次 - 如果使用`xelatex``lualatex`,需要按照`xelatex/lualatex` -> `biber` -> `xelatex/lualatex` -> `xelatex/lualatex`的顺序编译四次
- 仓库中.vscode附带一份VScode的Latex WorkShop的配置文件,可根据需要使用 - 仓库中.vscode附带一份VScode的LaTeX WorkShop的配置文件,可根据需要使用
### [南大Tex](https://tex.nju.edu.cn)编译 ### [南大TeX](https://tex.nju.edu.cn)编译
1. 下载[模板全部文件](https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip) 1. 下载[模板全部文件](https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip)
2. 登录[南大Tex](https://tex.nju.edu.cn),点击New Project -> Upload Project上传刚刚得到的zip文件,上传后`njuthesis.tex``njuthesis.cls`等文件应在根目录,目录结构如下所示: 2. 登录[南大TeX](https://tex.nju.edu.cn),点击New Project -> Upload Project上传刚刚得到的zip文件,上传后`njuthesis.tex``njuthesis.cls`等文件应在根目录,目录结构如下所示:
```bash ```bash
│ coverinfo.sty │ coverinfo.sty
...@@ -42,17 +42,17 @@ ...@@ -42,17 +42,17 @@
│ njuname.pdf │ njuname.pdf
└─profile └─profile
abstract.sty abstract.sty
components.sty components.sty
cover.sty cover.sty
font.sty font.sty
packages.sty packages.sty
page.sty page.sty
reference.sty reference.sty
``` ```
3. 在南大Tex项目内页面左上角的`Menu`中,将编译器改为`LuaLatex` 3. 在南大TeX项目内页面左上角的`Menu`中,将编译器改为`LuaLaTeX`
4. 编写tex文 4. 编写tex文
### 其他 ### 其他
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
## TODO ## TODO
- [x] 主要代码转为Latex3,使用expl3宏包 - [x] 主要代码转为LaTeX3,使用`expl3`宏包
- [x] 基于CTex宏集重构所有页面以符合学校论文要求 - [x] 基于CTeX宏集重构所有页面以符合学校论文要求
- [x] Github Action自动化构建预览PDF - [x] Github Action自动化构建预览PDF
- [x] 完善文档 - [x] 完善文档
- [ ] CTAN发布宏包 - [ ] CTAN发布宏包
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
% \label{tab:1} % \label{tab:1}
\begin{tabular}{ccc} \begin{tabular}{ccc}
\toprule \toprule
OS & Tex & 测试情况 \\ OS & TeX & 测试情况 \\
\midrule \midrule
Windows 10 & \hologo{TeX}\,Live 2021 & 通过 \\ Windows 10 & \hologo{TeX}\,Live 2021 & 通过 \\
Windows 10 & \hologo{MiKTeX} & 通过 \\ Windows 10 & \hologo{MiKTeX} & 通过 \\
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
\subsection{配置前端} \subsection{配置前端}
推荐使用 VSCode + LaTeX Workshop(VSCode插件)完成论文编写,也可以使用其他编辑器,如 texworks、texstudio。 推荐使用 VSCode + LaTeX Workshop(VSCode插件)完成论文编写,也可以使用其他编辑器,如 TeXworks、TeXstudio。
若使用 LaTeX Workshop 插件,本项目在\lstinline|.vscode/|中提供一份简易配置,可以直接使用。 若使用 LaTeX Workshop 插件,本项目在\lstinline|.vscode/|中提供一份简易配置,可以直接使用。
...@@ -47,15 +47,31 @@ ...@@ -47,15 +47,31 @@
编译产物为\lstinline|njuthesis.pdf|。 编译产物为\lstinline|njuthesis.pdf|。
<<<<<<< HEAD
\section{南大\hologo{TeX}在线编译} \section{南大\hologo{TeX}在线编译}
=======
\section{南大TeX在线编译}
>>>>>>> d423a4a (fix:规范TeX大小写)
本地编译器占用空间过大,对于磁盘空间紧张或者处理器性能有限的同学,不妨尝试本节介绍的在线编译方法\footnote{理论上在\href{https://doc.nju.edu.cn/books/latex}{这个网站}能找到一段平台简介,实际上大家都有意无意地鸽了,下次一定补上。} 本地编译器占用空间过大,对于磁盘空间紧张或者处理器性能有限的同学,不妨尝试本节介绍的在线编译方法\footnote{理论上在\href{https://doc.nju.edu.cn/books/latex}{这个网站}能找到一段平台简介,实际上大家都有意无意地鸽了,下次一定补上。}
<<<<<<< HEAD
\subsection{平台简介} \subsection{平台简介}
\href{https://tex.nju.edu.cn}{南大\hologo{TeX}}基于开源的ShareLaTeX平台,于2021年3月4日正式上线,面向南京大学全体师生开放。 \href{https://tex.nju.edu.cn}{南大\hologo{TeX}}基于开源的ShareLaTeX平台,于2021年3月4日正式上线,面向南京大学全体师生开放。
\subsection{操作步骤} \subsection{操作步骤}
=======
\subsection{操作步骤}
1. 下载\href{https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip}{模板全部文件}
2. 使用南京大学统一身份认证信息登录\href{https://tex.nju.edu.cn}{南大TeX},点击New Project -> Upload Project上传刚刚得到的zip文件,上传后njuthesis.tex、njuthesis.cls等文件应在根目录,目录结构如\cref{{sec:directory}}所示
3. 在南大TeX项目内页面左上角的Menu中,将编译器改为\hologo{LuaLaTeX}
4. 编写TeX文档
>>>>>>> d423a4a (fix:规范TeX大小写)
\begin{enumerate} \begin{enumerate}
\item 下载\href{https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip}{模板全部文件} \item 下载\href{https://github.com/nju-lug/NJUThesisUndergraduate/archive/refs/heads/master.zip}{模板全部文件}
...@@ -99,9 +115,9 @@ ...@@ -99,9 +115,9 @@
\toprule \toprule
类型 & Windows & macOS & Linux \\ 类型 & Windows & macOS & Linux \\
\midrule \midrule
西文衬线 & Times~New~Roman & Times~New~Roman & texgyretermes \\ 西文衬线 & Times~New~Roman & Times~New~Roman & TeX~Gyre~Termes \\
西文无衬线 & Arial & Arial & texgyreheros \\ 西文无衬线 & Arial & Arial & TeX~Gyre~Heros \\
西文等宽 & Courier~New & Courier~New & texgyrecursor \\ 西文等宽 & Courier~New & Courier~New & TeX~Gyre~Cursor \\
宋体 & SimSun & Songti~SC~Light &FandolSong-Regular \\ 宋体 & SimSun & Songti~SC~Light &FandolSong-Regular \\
黑体 & SimHei & Heiti~SC~Light & FandolHei-Regular \\ 黑体 & SimHei & Heiti~SC~Light & FandolHei-Regular \\
仿宋 & FangSong & STFangsong & FandolFang-Regular \\ 仿宋 & FangSong & STFangsong & FandolFang-Regular \\
......
...@@ -40,13 +40,13 @@ ...@@ -40,13 +40,13 @@
\label{tab:testtab} \label{tab:testtab}
\begin{tabular}{ccc} \begin{tabular}{ccc}
\toprule \toprule
OS & Tex & 测试情况 \\ OS & TeX & 测试情况 \\
\midrule \midrule
Windows 10 & TexLive 2021 &\\ Windows 10 & TeXLive 2021 &\\
Windows 10 & MikTex &\\ Windows 10 & MiKTeX &\\
Windows 10 & TexLive 2020 & ×\footnote{cleveref在引用章节时不能正常工作} \\ Windows 10 & TeXLive 2020 & ×\footnote{cleveref在引用章节时不能正常工作} \\
Ubuntu 20.04 & TexLive 2021 &\\ Ubuntu 20.04 & TeXLive 2021 &\\
南大Tex & Overleaf &\\ 南大TeX & Overleaf &\\
\bottomrule \bottomrule
\end{tabular} \end{tabular}
\end{table} \end{table}
...@@ -56,13 +56,13 @@ ...@@ -56,13 +56,13 @@
\caption{经过测试的环境} \caption{经过测试的环境}
\begin{tabular}{ccc} \begin{tabular}{ccc}
\toprule \toprule
OS & Tex & 测试情况 \\ OS & TeX & 测试情况 \\
\midrule \midrule
Windows 10 & TexLive 2021 &\\ Windows 10 & TeXLive 2021 &\\
Windows 10 & MikTex &\\ Windows 10 & MiKTeX &\\
Windows 10 & TexLive 2020 & × \\ Windows 10 & TeXLive 2020 & × \\
Ubuntu 20.04 & TexLive 2021 &\\ Ubuntu 20.04 & TeXLive 2021 &\\
南大Tex & Overleaf &\\ 南大TeX & Overleaf &\\
\bottomrule \bottomrule
\end{tabular} \end{tabular}
\end{table}} \end{table}}
...@@ -78,4 +78,4 @@ The new command pretty-prints the code. The exclamation marks delimit ...@@ -78,4 +78,4 @@ The new command pretty-prints the code. The exclamation marks delimit
the code and can be replaced by any character not in the code; the code and can be replaced by any character not in the code;
\lstinline$var i:integer;$ gives the same result. \lstinline$var i:integer;$ gives the same result.
使用\lstinline!\lstinline|\textit{<Your code>}|!,只要使用在代码中未出现的符号将代码包括在内即可。 使用\lstinline!\lstinline|\textit{<Your code>}|!,只要使用在代码中未出现的符号将代码包括在内即可。
\ No newline at end of file
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
│ njuname.pdf │ njuname.pdf
└─profile └─profile
abstract.sty abstract.sty
components.sty components.sty
cover.sty cover.sty
font.sty font.sty
packages.sty packages.sty
page.sty page.sty
reference.sty reference.sty
\end{lstlisting} \end{lstlisting}
\subsection{文件说明} \subsection{文件说明}
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
\item [\texttt{abstract.sty}] 定义中英文摘要环境及相关格式 \item [\texttt{abstract.sty}] 定义中英文摘要环境及相关格式
\item [\texttt{components.sty}] 定义图表标题格式 \item [\texttt{components.sty}] 定义图表标题格式
\item [\texttt{cover.sty}] 定义论文封面内容 \item [\texttt{cover.sty}] 定义论文封面内容
\item [\texttt{font.sty}] 负责重定义CTex宏集的默认字体,因为CTex字体加粗要求不满足论文规定 \item [\texttt{font.sty}] 负责重定义CTeX宏集的默认字体,因为CTeX字体加粗要求不满足论文规定
\item [\texttt{package.sty}] 存放所有被引用的包 \item [\texttt{package.sty}] 存放所有被引用的包
\item [\texttt{page.sty}] 定义正文页面、标题以及目录条目格式 \item [\texttt{page.sty}] 定义正文页面、标题以及目录条目格式
\item [\texttt{reference.sty}] 定义引文格式 \item [\texttt{reference.sty}] 定义引文格式
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
\texttt{profile/abstract.sty}提供了摘要页格式的定义。 \texttt{profile/abstract.sty}提供了摘要页格式的定义。
摘要页一般不插入目录,默认只添加pdf书签。如确实有插入目录的需求,请在abstract.sty文件中定位到如下语句 摘要页一般不插入目录,默认只添加pdf书签。如确实有插入目录的需求,请在\texttt{abstract.sty}文件中定位到如下语句
\begin{lstlisting}[language=TeX] \begin{lstlisting}[language=TeX]
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % \phantomsection\addcontentsline{toc}{chapter}{中文摘要}
\pdfbookmark[0]{中文摘要}{中文摘要} \pdfbookmark[0]{中文摘要}{中文摘要}
......
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