Skip to content
Snippets Groups Projects
Unverified Commit 7a2b2e46 authored by atxy-blip's avatar atxy-blip Committed by GitHub
Browse files

Merge pull request #13 from myandeg/master

文档更新
parents 1e3b0943 3083c751
No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
\item 并且,尽可能使用最新版(截至目前是 2021)。2020 及之前版本使用 PDF 格式的图片可能会出现加粗问题。 \item 并且,尽可能使用最新版(截至目前是 2021)。2020 及之前版本使用 PDF 格式的图片可能会出现加粗问题。
\end{itemize} \end{itemize}
\subsection{配置前端} \subsection{选择编辑器}
配置完编译器后,还需要一个\textbf{文本编辑器}作为前端来完成\texttt{.tex}文件内容的写作。 配置完编译器后,还需要一个\textbf{文本编辑器}作为前端来完成\texttt{.tex}文件内容的写作。
至今仍有相当一部分人认为Windows自带的\textit{记事本}是最好的文本编辑器,但对于本项目而言,在此诚心诚意地推荐你使用\textbf{更现代更美观更多功能}的编辑器,譬如\emph{安装了 LaTeX Workshop 插件 的 \href{https://code.visualstudio.com/}{Visual Studio Code}},来完成论文编写。你也可以根据个人的喜好随便使用其他编辑器,如 TeXworks、TeX Studio等,顺手就行。 至今仍有相当一部分人认为Windows自带的\textit{记事本}是最好的文本编辑器,但对于本项目而言,在此诚心诚意地推荐你使用\textbf{更现代更美观更多功能}的编辑器,譬如\emph{安装了 LaTeX Workshop 插件 的 \href{https://code.visualstudio.com/}{Visual Studio Code}},来完成论文编写。你也可以根据个人的喜好随便使用其他编辑器,如 TeXworks、TeX Studio 等,顺手就行。
若使用 LaTeX Workshop 插件,本项目在\lstinline|.vscode/|中提供一份简易配置,可以省略初始配置步骤直接使用。 若使用 LaTeX Workshop 插件,本项目在\lstinline|.vscode/|中提供一份简易配置,可以省略初始配置步骤直接使用。
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
\item \lstinline|xelatex| / \lstinline|lualatex| \item \lstinline|xelatex| / \lstinline|lualatex|
\end{enumerate} \end{enumerate}
编译产物\footnote{作为化学学生,俺认为用“产物”代替“编译生成的文件”是一个通俗易懂的说法}\lstinline|njuthesis.pdf|,位于主目录下。 编译产物\footnote{作为化学学生,俺认为用“产物”代替“编译生成的文件”是一个通俗易懂的说法}\lstinline|njuthesis.pdf|,位于主目录下。此外还会生成一系列中间文件,可以选择使用\lstinline|latexmk -c|进行清理。
\section{在线编译} \section{在线编译}
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
\subsection{南大\hologo{TeX}平台简介} \subsection{南大\hologo{TeX}平台简介}
\href{https://tex.nju.edu.cn}{南大\hologo{TeX}}基于开源的ShareLaTeX平台\footnote{理论上在\href{https://doc.nju.edu.cn/books/latex}{这个网站}能找到一段平台简介,实际上大家都有意无意地鸽了,下次一定补上。},于2021年3月4日正式上线,面向南京大学全体师生开放。 \href{https://tex.nju.edu.cn}{南大\hologo{TeX}}基于开源的ShareLaTeX平台\footnote{理论上在\href{https://doc.nju.edu.cn/books/latex}{这个网站}能找到一段平台简介,实际上大家都有意无意地鸽了,下次一定补上。},于2021年3月4日正式上线,面向南京大学全体师生开放,首次使用需凭学校邮箱自助注册账号
\subsection{操作步骤} \subsection{操作步骤}
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
\midrule \midrule
西文衬线 & Times~New~Roman & Times~New~Roman & TeX~Gyre~Termes \\ 西文衬线 & Times~New~Roman & Times~New~Roman & TeX~Gyre~Termes \\
西文无衬线 & Arial & Arial & TeX~Gyre~Heros \\ 西文无衬线 & Arial & Arial & TeX~Gyre~Heros \\
西文等宽 & Courier~New & Courier~New & TeX~Gyre~Cursor \\ 西文等宽 & Courier~New & Menlo & 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 \\
......
...@@ -2,31 +2,31 @@ ...@@ -2,31 +2,31 @@
\section{公式示例} \section{公式示例}
\begin{equation}\label{eq:dewitt} \begin{equation}\label{eq:dewitt}
\int e^{ax} \tanh bx\ dx = \int \mathrm{e}^{ax} \tanh {bx} \, \mathrm{d}x =
\begin{cases} \begin{dcases}
\displaystyle{ \frac{ e^{(a+2b)x}}{(a+2b)} \begin{multlined}
{_2F_1}\left[ 1+\frac{a}{2b},1,2+\frac{a}{2b}, -e^{2bx}\right] }& \\ \frac{\mathrm{e}^{(a+2b)x}}{(a + 2b)} \,
\displaystyle{ {{}_2F_1} \left( 1 + \frac{a}{2b}, 1, 2+\frac{a}{2b}, -\mathrm{e}^{2bx} \right) \\
\hspace{1cm}-\frac{1}{a}e^{ax}{_2F_1}\left[ 1, \frac{a}{2b},1+\frac{a}{2b}, -e^{2bx}\right] - \frac{1}{a} \mathrm{e}^{ax} \, {{}_2F_1} \left( 1, \frac{a}{2b}, 1 + \frac{a}{2b}, -\mathrm{e}^{2bx} \right)
} \end{multlined}
& a\ne b \\ & a \ne b \\
\displaystyle{\frac{e^{ax}-2\tan^{-1}[e^{ax}]}{a} } & a = b \frac{e^{ax} - 2 \tan^{-1}(\mathrm{e}^{ax})}{a} & a = b
\end{cases} \end{dcases}
\end{equation} \end{equation}
你可以使用\lstinline|equation|环境插入公式,如\cref{eq:dewitt},代码如下: 你可以使用\lstinline|equation|环境插入公式,如\cref{eq:dewitt},代码如下:
\begin{lstlisting}[language=TeX] \begin{lstlisting}[language=TeX]
\begin{equation}\label{eq:dewitt} \begin{equation}\label{eq:dewitt}
\int e^{ax} \tanh bx\ dx = \int\mathrm{e}^{ax}\tanh{bx}\,\mathrm{d}x =
\begin{cases} \begin{dcases}
\displaystyle{ \frac{ e^{(a+2b)x}}{(a+2b)} \begin{multlined}
{_2F_1}\left[ 1+\frac{a}{2b},1,2+\frac{a}{2b}, -e^{2bx}\right] }& \\ \frac{\mathrm{e}^{(a+2b)x}}{(a+2b)}\,
\displaystyle{ {{}_2F_1}\left( 1+\frac{a}{2b},1,2+\frac{a}{2b},-\mathrm{e}^{2bx} \right) \\
\hspace{1cm}-\frac{1}{a}e^{ax}{_2F_1}\left[ 1, \frac{a}{2b},1+\frac{a}{2b}, -e^{2bx}\right] - \frac{1}{a} \mathrm{e}^{ax}\,{{}_2F_1}\left( 1,\frac{a}{2b},1+\frac{a}{2b},-\mathrm{e}^{2bx} \right)
} \end{multlined}
& a\ne b \\ & a \ne b \\
\displaystyle{\frac{e^{ax}-2\tan^{-1}[e^{ax}]}{a} } & a = b \frac{e^{ax}-2\tan^{-1}(\mathrm{e}^{ax})}{a} & a = b
\end{cases} \end{dcases}
\end{equation} \end{equation}
\end{lstlisting} \end{lstlisting}
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
% 封面、摘要和目录 % 封面、摘要和目录
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
\maketitle % 请在coverpage.sty输入封面信息 \maketitle % 请在coverinfo.sty输入封面信息
\input{chapters/Abstract.tex} \input{chapters/Abstract.tex}
\tableofcontents \tableofcontents
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
% 参考文献 % 参考文献
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
\printbibliography[heading=bibintoc, title=参考文献] % 输出参考文献列表并将本页插入目录条目 \printbibliography[heading=bibintoc, title=参考文献] % 输出参考文献列表并将本页插入目录条目
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
......
...@@ -151,39 +151,42 @@ ...@@ -151,39 +151,42 @@
\setCJKfamilyfont{zhkai}{方正楷体简体}[AutoFakeBold=2.17] \setCJKfamilyfont{zhkai}{方正楷体简体}[AutoFakeBold=2.17]
} }
% 根据操作系统选择相应字体
% 检测是否是 Windows % 检测是否是 Windows
\sys_if_platform_windows:TF \sys_if_platform_windows:TF
{ {
\set_latin_fontset_windows \set_latin_fontset_windows
\set_chinese_fontset_windows \set_chinese_fontset_windows
} }
% 检测是否是 macOS
\ctex_if_platform_macos:TF
{ {
% 检测是否是 MacOS \set_latin_fontset_macos
\ctex_if_platform_macos:TF \set_chinese_fontset_macos
{ }
\set_latin_fontset_macos % 其余系统一律使用自由字体
\set_chinese_fontset_macos {
} \set_latin_fontset_gyre
% 其余系统一律使用自由字体 \set_chinese_fontset_fandol
{
\set_latin_fontset_gyre
\set_chinese_fontset_fandol
}
} }
% 选择其他字体,请确保相应字体已安装并自行取消注释
% 使用方正字体 % 使用方正字体
% \set_chinese_fontset_founder % \set_chinese_fontset_founder
% 使用思源宋体+思源黑体 % 使用思源宋体+思源黑体
% \set_chinese_fontset_noto % \set_chinese_fontset_noto
% 我是 Linux 用户,但我用 Windows 字体(请您赶快坐到主席台上来)
% \set_latin_fontset_windows
% \set_chinese_fontset_windows
% 设置数学字体 (XITS, 或者 STIX, 与 Times New Roman 最为相近) % 设置数学字体 (XITS, 或者 STIX, 与 Times New Roman 最为相近)
% \setmathfont{STIXTwoMath-Regular}[Extension = .otf] % \setmathfont{STIXTwoMath-Regular}[Extension = .otf]
\setmathfont{XITSMath-Regular}[ \setmathfont{XITSMath-Regular}[
BoldFont = XITSMath-Bold, BoldFont = XITSMath-Bold,
Extension = .otf] Extension = .otf]
\NewDocumentCommand\songti{}{\CJKfamily{zhsong}} \NewDocumentCommand\songti{}{\CJKfamily{zhsong}}
\NewDocumentCommand\heiti{}{\CJKfamily{zhhei}} \NewDocumentCommand\heiti{}{\CJKfamily{zhhei}}
\NewDocumentCommand\fangsong{}{\CJKfamily{zhfs}} \NewDocumentCommand\fangsong{}{\CJKfamily{zhfs}}
......
...@@ -48,8 +48,9 @@ ...@@ -48,8 +48,9 @@
\RequirePackage{amsmath} % Must be loaded before unicode-math \RequirePackage{amsmath} % Must be loaded before unicode-math
\RequirePackage{amsthm} % Mathematical environments \RequirePackage{amsthm} % Mathematical environments
\RequirePackage{mathtools} % Mathematical tools to use with amsmath
\RequirePackage{thmtools} % Theorem styles \RequirePackage{thmtools} % Theorem styles
\RequirePackage{unicode-math} % Math fonts in xetexorluatex \RequirePackage{unicode-math} % Math fonts in xetex or luatex
\RequirePackage{graphicx} \RequirePackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png} \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
......
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