From f68e49966cb3e5011fbededb7eaffaa6ecf3693d Mon Sep 17 00:00:00 2001 From: atxy <181850195@smail.nju.edu.cn> Date: Sun, 5 Sep 2021 22:47:22 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=B0=86=E5=8F=82=E8=80=83=E6=96=87?= =?UTF-8?q?=E7=8C=AE=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E5=88=B0=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- njuthesis.tex | 63 ++++++++++++++++++++++++++++++-------------- profile/packages.sty | 20 ++++++++++++++ profile/page.sty | 2 +- 3 files changed, 64 insertions(+), 21 deletions(-) diff --git a/njuthesis.tex b/njuthesis.tex index 406eaec..e740693 100644 --- a/njuthesis.tex +++ b/njuthesis.tex @@ -32,20 +32,42 @@ 姝ゆā鏉挎棬鍦ㄤ负鍚屽鎻愪緵姣曚笟璁烘枃涔﹀啓鐨勬柟渚匡紝濡傛湁妯℃澘闂鎴栬€呯増鏉冮棶棰橈紝璇蜂簬Github涓婃彁鍑篿ssue銆� -\section{琛ㄦ牸} -\begin{table}[htbp] - \centering - \caption{琛ㄦ牸鏍蜂緥} - \begin{tabular}{|c|c|c|} - \hline - 1 & 2 & 3 \\ - \hline - 4 & 5 & 6 \\ - \hline +\section{琛ㄦ牸绀轰緥} +浣犲彲浠ヤ娇鐢╘lstinline|table|鐜鎻掑叆鏍囧噯涓夌嚎琛紝浠g爜濡備笅: +\begin{lstlisting}[language=TeX] +\begin{table}[h] + \caption{缁忚繃娴嬭瘯鐨勭幆澧儅 + \begin{tabular}{ccc} + \toprule + OS & Tex & 娴嬭瘯鎯呭喌 \\ + \midrule + Windows 10 & TexLive 2021 & 鉁� \\ + Windows 10 & MikTex & 鉁� \\ + Windows 10 & TexLive 2020 & 鉁� \\ + Ubuntu 20.04 & TexLive 2021 & 鉁� \\ + 鍗楀ぇTex & Overleaf & 鉁� \\ + \bottomrule + \end{tabular} +\end{table}} +\end{lstlisting} +\begin{table}[h] + \caption{缁忚繃娴嬭瘯鐨勭幆澧儅 + % \label{tab:1} + \begin{tabular}{ccc} + \toprule + OS & Tex & 娴嬭瘯鎯呭喌 \\ + \midrule + Windows 10 & TexLive 2021 & 鉁� \\ + Windows 10 & MikTex & 鉁� \\ + Windows 10 & TexLive 2020 & 鉁� \\ + Ubuntu 20.04 & TexLive 2021 & 鉁� \\ + 鍗楀ぇTex & Overleaf & 鉁� \\ + \bottomrule \end{tabular} \end{table} -\section{鍥剧墖} -浣犲彲浠ヤ娇鐢╢igure鍛戒护鎻掑叆鍥剧墖锛屼唬鐮佸涓�: + +\section{鍥剧墖绀轰緥} +浣犲彲浠ヤ娇鐢╘lstinline|figure|鐜鎻掑叆鍥剧墖锛屼唬鐮佸涓�: \begin{lstlisting}[language=TeX] \begin{figure} \centering @@ -59,11 +81,7 @@ \caption{鍗椾含澶у鍚嶇О} \end{figure} -\chapter{娈佃惤鏍煎紡娴嬭瘯} -椤圭窘鏈邯 -\section{浜岀骇鏍囬} -\zhlipsum[1][name=xiangyu] -\subsection{涓夌骇鏍囬} +\subsection{鏂囧瓧鐜粫鍥惧儚} % wrapfigure鍚庨潰涓嶈兘鏈夌┖琛� \begin{wrapfigure}{r}{0cm} % \label{fig:njulogo} @@ -71,8 +89,13 @@ \caption{鐜粫鍥惧儚娴嬭瘯} \end{wrapfigure} \zhlipsum[2][name=xiangyu] -\subsubsection{鍥涚骇鏍囬} -\zhlipsum[3][name=xiangyu] -\printbibliography +\backmatter +\setcounter{secnumdepth}{-2} +\chapter*{鑷磋阿} +鎰熻阿\href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU LUG}銆� + +\printbibliography[heading=bibintoc, title=鍙傝€冩枃鐚甝 +% \printindex + \end{document} \ No newline at end of file diff --git a/profile/packages.sty b/profile/packages.sty index dc28e22..26a1a31 100644 --- a/profile/packages.sty +++ b/profile/packages.sty @@ -12,6 +12,7 @@ \RequirePackage{ifthen} \RequirePackage{expl3} \RequirePackage{xparse} +% \RequirePackage{etoolbox} \RequirePackage{titlesec} % 淇敼绔犺妭鏍囬鍔熻兘鐢盋TeX鎻愪緵 \RequirePackage{titletoc} \RequirePackage[hyphens]{url} % generate better linebreaks in the url @@ -42,8 +43,27 @@ % biblatex璁剧疆 \RequirePackage[ style=gb7714-2015, + %style=numeric-comp, + %citestyle=authortitle-icomp, + % citestyle=numeric-comp, + %bibstyle=authoryear, + % bibstyle=numeric, + sorting=none, + %sorting=nyt, + %sortcites=true, + %autocite=footnote, + backend=biber, % Compile the bibliography with biber + hyperref=true, + backref=true, + citecounter=true, + pagetracker=true, + citetracker=true, + ibidtracker=context, + autopunct=true, + autocite=plain, % gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47) % gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23) ]{biblatex} + \RequirePackage[hidelinks,bookmarksnumbered=true]{hyperref} \ No newline at end of file diff --git a/profile/page.sty b/profile/page.sty index 2306f02..0d3be87 100644 --- a/profile/page.sty +++ b/profile/page.sty @@ -25,7 +25,7 @@ } % 閲嶅畾涔夌洰褰曚腑绔犺妭鏍囬鏍峰紡 -\titlecontents{chapter}[5em]{\bfseries\heiti\zihao{4} \vspace{10pt}}{\contentslabel{4em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage} +\titlecontents{chapter}[5em]{\bfseries\heiti\zihao{4} \vspace{10pt}}{\contentslabel{4em}}{\hspace*{-4em}}{~\titlerule*[0.6pc]{$.$}~\contentspage} \titlecontents{section}[5em]{\vspace{0pt}}{\contentslabel{2.5em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage} \titlecontents{subsection}[8em]{\vspace{0pt}}{\contentslabel{3em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage} % 1.{section}:鏍囬绾у埆 -- GitLab