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

feat: 将封面和目录加入pdf书签

parent f6a7c650
No related branches found
No related tags found
No related merge requests found
......@@ -34,13 +34,14 @@
\footnote{目录树里面想必可爱温柔的xygg会加上各个文件对应功能的说明的。}
\section{文件说明}
\subsection{文件说明}
\begin{description}
\item [\texttt{abstract.sty}] 定义中英文摘要环境及相关格式
\item [\texttt{components.sty}] 定义图表标题格式
\item [\texttt{cover.sty}] 定义论文封面内容
\item [\texttt{font.sty}] 负责重定义CTex宏集的默认字体,因为CTex字体加粗要求不满足论文规定
\item [\texttt{page.sty}] 定义正文格式
\item [\texttt{package.sty}] 存放所有被引用的包
\item [\texttt{page.sty}] 定义正文页面、标题以及目录条目格式
\item [\texttt{reference.sty}] 定义引文格式
\end{description}
......
......@@ -28,4 +28,14 @@
\displaystyle{\frac{e^{ax}-2\tan^{-1}[e^{ax}]}{a} } & a = b
\end{cases}
\end{equation}
\end{lstlisting}
\ No newline at end of file
\end{lstlisting}
\section{定理环境}
\begin{proof}
证明我是我
\end{proof}
\begin{definition}
定义他人即地狱
\end{definition}
\ No newline at end of file
......@@ -8,17 +8,25 @@
\subsection{图片}
\lstinline|\label{tab:\textit{<Your code>}|
\lstinline|\label{tab:mytab}|
\subsection{表格}
\lstinline|\label{fig:myfig}|
\subsection{公式}
\lstinline|\label{eq:myeq}|
\subsection{其他数学环境}
\lstinline|\label{def:mydef}|
\subsection{章节}
\lstinline|\label{sec:mysec}|
\section{参考文献}
......@@ -31,8 +39,14 @@
\addbibresource{njuthesis.bib}
\end{lstlisting}
使用Zotero
\subsection{文段内引用}
\lstinline|\cite{myref}|
\lstinline|\citesuthor{myref}|
\subsection{引用格式}
符合GB7714-2015规范
......@@ -8,8 +8,8 @@
{%
\pagestyle{plain}
\pagenumbering{Roman}
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要}
\pdfbookmark[0]{中文摘要}{中文摘要}
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark[0]{中文摘要}{中文摘要} % 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\kaishu\zihao{-2}{\textbf{\uuline{南京大学本科生毕业论文(设计、作品)中文摘要}}}
\end{center}
......@@ -41,8 +41,8 @@
\NewDocumentEnvironment{englishabstract} {}
{%
\pagestyle{plain}
\pdfbookmark[0]{英文摘要}{英文摘要}
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要}
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark[0]{英文摘要}{英文摘要} % 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\kaishu\zihao{-2}{\textbf{\uuline{南京大学本科生毕业论文(设计、作品)英文摘要}}}
\end{center}
......
......@@ -80,7 +80,8 @@
\RenewDocumentCommand \maketitle {} {%
\thispagestyle{empty}
\pagenumbering{Roman}
% Start
% Start
\pdfbookmark{封面}{封面} % 将封面插入pdf书签
\begin{spacing}{1.25}
\vskip 0mm
\hspace{-10mm}
......
......@@ -30,7 +30,7 @@
\RequirePackage[version=4]{mhchem} % 用于绘制分子式
\RequirePackage{hologo} % 用于生成可以被插入书签的LaTeX logo
\RequirePackage{needspace} % Required to prevent page break right after a sectioning command
\RequirePackage{xspace} % Better print trailing whitespace
% \RequirePackage{xspace} % Better print trailing whitespace
\RequirePackage{microtype}
\RequirePackage{blindtext} % 生成用于测试的大段无意义英文文字
......
......@@ -46,3 +46,9 @@
{\contentslabel{3em}}
{\hspace*{-4em}}
{~\titlerule*[0.6pc]{$.$}~\contentspage}
% 将目录页插入pdf书签
\let\savedtableofcontents\tableofcontents
\renewcommand{\tableofcontents}{%
\pdfbookmark{目录}{目录}
\savedtableofcontents}
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