\documentclass[
    TitleLength=1,% 选择标题行数,范围是1~3
]{njuthesis}

\addbibresource{njuthesis.bib}

% 无页眉页脚
\pagestyle{empty}
\begin{document}

\maketitle
\tableofcontents

% 开始正文部分
\mainmatter

\chapter{绪论}
    \section{简介}
    南京大学学士学位论文\LaTeX 模板\cite{njuthesis}基于本科生院的论文撰写规范修改,用于生成符合南京大学学位论文排版要求和相应的国家规范、行业标准的学位论文。

    此模板旨在为同学提供毕业论文书写的方便,如有模板问题或者版权问题,请于Github上提出issue。
\chapter{使用方法}
    \section{表格}
    \begin{table}[htbp]
        \centering
        \caption{表格样例}
        \begin{tabular}{|c|c|c|}
            \hline
            1 & 2 & 3 \\
            \hline
            4 &  5 & 6 \\
            \hline
        \end{tabular}
    \end{table}
    \section{图片}
    你可以使用figure命令插入图片,代码如下:
    \begin{lstlisting}[language=Tex]
\begin{figure}
    \centering
    \includegraphics[width=0.4\textwidth]{njulogo}
    \caption{南京大学校徽}
\end{figure}
    \end{lstlisting}
    \begin{figure}[htbp]
        \centering
        \includegraphics[width=0.25\textwidth]{njulogo}
        \caption{南京大学校徽}
    \end{figure}

\printbibliography
\end{document}