Skip to content

Commit

Permalink
更新参考文献缩进:首行最少2字符缩进
Browse files Browse the repository at this point in the history
  • Loading branch information
liubenyuan committed Dec 5, 2018
1 parent 9b69933 commit ce15cc4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*.toc
*.thm
*.blg
*.gz
#################
## Eclipse
#################
Expand Down
4 changes: 2 additions & 2 deletions data/resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

\section*{发表的学术论文} % 发表的和录用的合在一起

\begin{enumerate}[{[}1{]}]
\begin{enumerate}[label={[\arabic*]}]
\addtolength{\itemsep}{-.36\baselineskip}%缩小条目之间的间距,下面类似
\item Yang Y, Ren T L, Zhang L T, et al. Miniature microphone with silicon-
based ferroelectric thin films. Integrated Ferroelectrics, 2003,
Expand All @@ -23,7 +23,7 @@
\end{enumerate}

\section*{研究成果} % 有就写,没有就删除
\begin{enumerate}[{[}1{]}]
\begin{enumerate}[label=\textbf{[\arabic*]}]
\addtolength{\itemsep}{-.36\baselineskip}%
\item 任天令, 杨轶, 朱一平, 等. 硅基铁电微声学传感器畴极化区域控制和电极连接的
方法: 中国, CN1602118A. (中国专利公开号.)
Expand Down
35 changes: 16 additions & 19 deletions nudtpaper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
\RequirePackage{tabularx}
\RequirePackage{slashbox}
\RequirePackage[neverdecrease]{paralist}
\RequirePackage{enumitem}
\RequirePackage{xcolor}
\RequirePackage{amsmath,amssymb}
\RequirePackage[Symbolsmallscale]{upgreek}
Expand Down Expand Up @@ -355,26 +356,22 @@
}
\setlength{\parskip}{0bp \@minus 1bp}
\newcommand*{\ziju}[1]{\renewcommand{\CJKglue}{\hskip #1}}
\newlength\biblabelwd
\settowidth\biblabelwd{\widthof{首行}} % 参考文献最少缩进2字符
%\settowidth\biblabelwd{\widthof{[999]}} % Maximum Ref Num = 999
\renewenvironment{thebibliography}[1]{%
\chapter*{\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\renewcommand{\makelabel}[1]{##1\hfill}
\settowidth\labelwidth{1.1cm}
\setlength{\labelsep}{0.4em}
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{\labelwidth+\labelsep}
\addtolength{\itemsep}{-0.7em}
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\frenchspacing
\clubpenalty4000%
\widowpenalty4000%
\interlinepenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist\frenchspacing}
\chapter*{\bibname}%
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
\begin{enumerate}[label={[\arabic{enumi}]},itemsep=-0.5ex,labelwidth=\biblabelwd,labelsep=*,leftmargin=0pt,itemindent=\biblabelwd,align=left]
\@openbib@code
\sloppy\frenchspacing
\clubpenalty4000%
\widowpenalty4000%
\interlinepenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\end{enumerate}\frenchspacing}
\setlength{\floatsep}{12bp}
\setlength{\intextsep}{12bp}
\setlength{\textfloatsep}{12bp}
Expand Down

0 comments on commit ce15cc4

Please sign in to comment.