Skip to content
Snippets Groups Projects
Commit 740a9e7e authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

fix: 更正了一些引用格式问题

parent e98124b1
No related branches found
No related tags found
No related merge requests found
...@@ -72,3 +72,22 @@ sudo apt install fonts-wqy-zenhei ttf-mscorefonts-installer ...@@ -72,3 +72,22 @@ sudo apt install fonts-wqy-zenhei ttf-mscorefonts-installer
忽略即可,不影响使用。 忽略即可,不影响使用。
\end{enumerate} \end{enumerate}
\subsection{字体列表}
\begin{table}[htbp]
\caption{默认字体清单}
\label{tab:fontset}
\begin{tabular}{cccc}
\toprule
类型 & Windows & macOS & Linux \\
\midrule
西文衬线 & Times~New~Roman & Times~New~Roman & texgyretermes \\
西文无衬线 & Arial & Arial & texgyreheros \\
西文等宽 & Courier~New & Courier~New & texgyrecursor \\
宋体 & SimSun & Songti~SC~Light &FandolSong-Regular \\
黑体 & SimHei & Heiti~SC~Light & FandolHei-Regular \\
仿宋 & FangSong & STFangsong & FandolFang-Regular \\
楷体 & KaiTi & Kaiti~SC & FandolKai-Regular \\
\bottomrule
\end{tabular}
\end{table}
\ No newline at end of file
\chapter{图片、表格与代码} \chapter{图片、表格与代码}
\section{图片示例} \section{图片示例}
图片存放目录的定义为
\begin{lstlisting}[language=TeX]
\RequirePackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
\graphicspath{{figure/}} % 图片路径
\end{lstlisting}
所有图片默认存放在主目录下的\texttt{figure/}文件夹内
\begin{figure}[htbp] \begin{figure}[htbp]
\includegraphics[width=0.5\textwidth]{njuname} \includegraphics[width=0.5\textwidth]{njuname}
\caption{南京大学名称} \caption{南京大学名称}
...@@ -18,8 +28,8 @@ ...@@ -18,8 +28,8 @@
% wrapfigure后面不能有空行 % wrapfigure后面不能有空行
\begin{wrapfigure}{r}{0cm} \begin{wrapfigure}{r}{0cm}
% \label{fig:njulogo} % \label{fig:njulogo}
\includegraphics[width=.3\textwidth]{njulogo} \includegraphics[width=.15\textwidth]{njulogo}
\caption{环绕图像测试} \caption{校徽}
\end{wrapfigure} \end{wrapfigure}
\zhlipsum[3][name=xiangyu] \zhlipsum[3][name=xiangyu]
...@@ -27,7 +37,7 @@ ...@@ -27,7 +37,7 @@
\section{表格示例} \section{表格示例}
\begin{table}[htbp] \begin{table}[htbp]
\caption{经过测试的环境} \caption{经过测试的环境}
\label{tab:mytab} \label{tab:testtab}
\begin{tabular}{ccc} \begin{tabular}{ccc}
\toprule \toprule
OS & Tex & 测试情况 \\ OS & Tex & 测试情况 \\
...@@ -40,7 +50,7 @@ ...@@ -40,7 +50,7 @@
\bottomrule \bottomrule
\end{tabular} \end{tabular}
\end{table} \end{table}
你可以使用\lstinline|table|环境插入标准三线表,如\cref{tab:mytab}所示,代码如下: 你可以使用\lstinline|table|环境插入标准三线表,如\cref{tab:testtab}所示,代码如下:
\begin{lstlisting}[language=TeX] \begin{lstlisting}[language=TeX]
\begin{table}[htbp] \begin{table}[htbp]
\caption{经过测试的环境} \caption{经过测试的环境}
...@@ -66,6 +76,6 @@ ...@@ -66,6 +76,6 @@
\subsection{行内代码} \subsection{行内代码}
The new command pretty-prints the code. The exclamation marks delimit 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 \ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
\section{总体要求} \section{总体要求}
摘录自《11-南京大学毕业论文(设计)的撰写规范和装订要求》,内容详见\cref{chap:standard}
\begin{description} \begin{description}
\item[论文题目] 三号宋体加粗 \item[论文题目] 三号宋体加粗
\item[各部分标题] 四号黑体 \item[各部分标题] 四号黑体
...@@ -27,6 +29,7 @@ ...@@ -27,6 +29,7 @@
\subsection{输入个人信息} \subsection{输入个人信息}
主目录下的\texttt{coverinfo.sty}文件定义了用于文档封面的诸多属性参数,包括 主目录下的\texttt{coverinfo.sty}文件定义了用于文档封面的诸多属性参数,包括
\begin{description} \begin{description}
\item[\texttt{\textbackslash TitleA}] 单行标题,或多行标题的第一行。关于是否应该折行,单行能容纳的最长标题为\emph{15个中文字符},请自行选择合适的截断处。 \item[\texttt{\textbackslash TitleA}] 单行标题,或多行标题的第一行。关于是否应该折行,单行能容纳的最长标题为\emph{15个中文字符},请自行选择合适的截断处。
\item[\texttt{\textbackslash TitleB}] 多行标题的第二行 \item[\texttt{\textbackslash TitleB}] 多行标题的第二行
...@@ -53,11 +56,28 @@ ...@@ -53,11 +56,28 @@
\section{摘要页} \section{摘要页}
摘要页一般不插入目录,如有需求请在abstract.sty文件中反注释相关代码
\section{目录页} \section{目录页}
目录页格式定制于page.sty
\section{正文} \section{正文}
\section{致谢页} 正文格式定制于page.sty,页边距在package.sty
\section{参考文献页} \section{参考文献页}
需要使用biber手动编译才会显示
\section{致谢页}
致谢页采用无编号章节形式,需要手动插入目录
\begin{lstlisting}[language=TeX]
\chapter*{致谢}
\addcontentsline{toc}{chapter}{致谢}
\end{lstlisting}
\section{附录页}
附录放在最后,以英文字母进行编号
\chapter{南京大学本科毕业论文(设计)的 \chapter{南京大学本科毕业论文(设计)的
撰写规范和装订要求(试行)} 撰写规范和装订要求(试行)}
\label{chap:standard}
本科毕业论文(设计)是本科教学中的重要环节,为规范本科毕业论文(设计)的工作,特制订毕业论文(设计)的撰写和装订要求,请同学们按照要求执行。如各院系已经制定了相应的规范,则按照院系的要求执行。 本科毕业论文(设计)是本科教学中的重要环节,为规范本科毕业论文(设计)的工作,特制订毕业论文(设计)的撰写和装订要求,请同学们按照要求执行。如各院系已经制定了相应的规范,则按照院系的要求执行。
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
% \RequirePackage{etoolbox} % \RequirePackage{etoolbox}
\RequirePackage{titlesec} % 修改章节标题功能由CTeX提供 \RequirePackage{titlesec} % 修改章节标题功能由CTeX提供
\RequirePackage{titletoc} \RequirePackage{titletoc}
\RequirePackage{appendix} % 定义附录样式 % \RequirePackage{appendix} % 定义附录样式
\RequirePackage{fancyhdr} % 调整页眉页脚 \RequirePackage{fancyhdr} % 调整页眉页脚
\RequirePackage[hyphens]{url} % generate better linebreaks in the url \RequirePackage[hyphens]{url} % generate better linebreaks in the url
\RequirePackage{ulem} % 绘制下划线 \RequirePackage{ulem} % 绘制下划线
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
\RequirePackage{caption} \RequirePackage{caption}
\RequirePackage{floatrow} % 用于图表等页面元素的定位 \RequirePackage{floatrow} % 用于图表等页面元素的定位
\RequirePackage{booktabs} % 用于绘制三线表 \RequirePackage{booktabs} % 用于绘制三线表
\RequirePackage{multirow} % Cells occupying multiple rows in tables
\RequirePackage{multicol} % Multiple columns in dictionary
\RequirePackage{siunitx} % 用于书写单位符号 \RequirePackage{siunitx} % 用于书写单位符号
\RequirePackage[version=4]{mhchem} % 用于绘制分子式 \RequirePackage[version=4]{mhchem} % 用于绘制分子式
\RequirePackage{hologo} % 用于生成可以被插入书签的LaTeX logo \RequirePackage{hologo} % 用于生成可以被插入书签的LaTeX logo
...@@ -43,7 +45,7 @@ ...@@ -43,7 +45,7 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png} \DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
\graphicspath{{figure/}} \graphicspath{{figure/}} % 图片路径
\RequirePackage{wrapfig} % Wrap text around figures \RequirePackage{wrapfig} % Wrap text around figures
% 必须以该顺序加载以下三个包 % 必须以该顺序加载以下三个包
......
...@@ -39,17 +39,30 @@ ...@@ -39,17 +39,30 @@
} }
% 修改标签名称 % 修改标签名称
\crefdefaultlabelformat{#2#1#3~} % 默认在名称后面添加空格 \crefdefaultlabelformat{#2#1#3\,} % 默认在名称后面添加空格
\creflabelformat{equation}{#2#1#3~} % 删除公式编号的空格
\crefname{theorem}{定理}{定理}
\crefname{lemma}{引理}{引理}
\crefname{definition}{定义}{定义}
\crefname{figure}{}{} \crefname{figure}{}{}
\crefname{table}{}{} \crefname{table}{}{}
\crefname{equation}{公式}{公式} \crefname{equation}{公式}{公式}
% \crefformat{equation}{公式~#2#1#3~} % 删除公式编号的括号
\crefformat{chapter}{第~#2#1#3~章}
\crefformat{section}{第~#2#1#3~节}
\crefformat{subsection}{第~#2#1#3~小节}
\crefformat{subsubsection}{第~#2#1#3~小节}
% \crefname{chapter}{§}{§}
% \crefname{section}{§}{§}
% \crefname{subsection}{§}{§}
% \crefname{subsubsection}{§}{§}
\crefname{appendix}{附录}{附录}
\crefname{chapter}{§}{§} \crefname{definition}{定义}{定义}
\crefname{section}{§}{§} \crefname{axiom}{公理}{公理}
\crefname{subsection}{§}{§} \crefname{property}{性质}{性质}
\crefname{subsubsection}{§}{§} \crefname{proposition}{命题}{命题}
\ No newline at end of file \crefname{lemma}{引理}{引理}
\crefname{corollary}{推论}{推论}
\crefname{remark}{注解}{注解}
\crefname{condition}{条件}{条件}
\crefname{conclusion}{结论}{结论}
\crefname{assumption}{假设}{假设}
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