diff --git a/njuthesis.cls b/njuthesis.cls index 4bd5b425fc3f9f6ab48ac928f76d1052868b56e0..15682a1254206cbf4b16b68f700143b508efcda2 100644 --- a/njuthesis.cls +++ b/njuthesis.cls @@ -20,12 +20,12 @@ zihao=-4 ]{ctexbook}[2018/04/01] -% 杈撳叆閰嶇疆鏂囦欢 -\input{profile/profile.cls} - \DeclareStringOption[1]{TitleLength} -\ProcessKeyvalOptions* +\ProcessKeyvalOptions*\relax + +% 杈撳叆閰嶇疆鏂囦欢 +\input{profile/profile.cls} \ifthenelse{\equal{\Type}{thesis}} { diff --git a/njuthesis.tex b/njuthesis.tex index 9ae51c387b5b21a118f5d4bd8e5ccda1babca3f3..201624ade52ee2cda67255587683a4f7a1a70723 100644 --- a/njuthesis.tex +++ b/njuthesis.tex @@ -1,5 +1,5 @@ \documentclass[ - TitleLength=1,% 閫夋嫨鏍囬琛屾暟锛岃寖鍥存槸1~3 + % TitleLength=1,% 閫夋嫨鏍囬琛屾暟锛岃寖鍥存槸1~3 ]{njuthesis} \addbibresource{njuthesis.bib} @@ -33,7 +33,7 @@ \section{琛ㄦ牸绀轰緥} 浣犲彲浠ヤ娇鐢╘lstinline|table|鐜鎻掑叆鏍囧噯涓夌嚎琛紝浠g爜濡備笅: \begin{lstlisting}[language=TeX] -\begin{table}[h] +\begin{table}[htbp] \caption{缁忚繃娴嬭瘯鐨勭幆澧儅 \begin{tabular}{ccc} \toprule @@ -48,7 +48,7 @@ \end{tabular} \end{table}} \end{lstlisting} -\begin{table}[h] +\begin{table}[htbp] \caption{缁忚繃娴嬭瘯鐨勭幆澧儅 % \label{tab:1} \begin{tabular}{ccc}