mirror of
https://github.com/ElegantLaTeX/ElegantPaper.git
synced 2026-01-26 04:14:36 +08:00
add super/numbers/authoryear
This commit is contained in:
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
%!TEX program = xelatex
|
%!TEX program = xelatex
|
||||||
% 完整编译方法 1 pdflatex -> bibtex -> pdflatex -> pdflatex
|
% 完整编译方法 1 pdflatex -> bibtex -> pdflatex -> pdflatex
|
||||||
% 完整编译方法 2: xelatex -> bibtex -> xelatex -> xelatex
|
% 完整编译方法 2: xelatex -> bibtex -> xelatex -> xelatex
|
||||||
\documentclass[lang=cn,11pt]{elegantpaper}
|
\documentclass[lang=cn,11pt,numbers]{elegantpaper}
|
||||||
|
|
||||||
\title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板}
|
\title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板}
|
||||||
\author{\href{https://ddswhu.me/}{邓东升}}
|
\author{\href{https://ddswhu.me/}{邓东升}}
|
||||||
@@ -177,7 +177,6 @@ The content of conclusion section.
|
|||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\nocite{*}
|
\nocite{*}
|
||||||
|
|
||||||
\bibliography{wpref}
|
\bibliography{wpref}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
Binary file not shown.
@@ -173,6 +173,7 @@ The content of conclusion section.
|
|||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\nocite{en1,en2}
|
\nocite{en1,en2}
|
||||||
|
|
||||||
\bibliography{wpref}
|
\bibliography{wpref}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
@@ -20,6 +20,10 @@
|
|||||||
\DeclareVoidOption{cn}{\ekv{lang = cn}}
|
\DeclareVoidOption{cn}{\ekv{lang = cn}}
|
||||||
\DeclareVoidOption{en}{\ekv{lang = en}}
|
\DeclareVoidOption{en}{\ekv{lang = en}}
|
||||||
|
|
||||||
|
\DeclareStringOption[numbers]{cite}[numbers]
|
||||||
|
\DeclareVoidOption{numbers}{\ekv{cite=numbers}}
|
||||||
|
\DeclareVoidOption{authoryear}{\ekv{cite=authoryear}}
|
||||||
|
\DeclareVoidOption{super}{\ekv{cite=super}}
|
||||||
% \PassOptionsToClass{11pt}{article}
|
% \PassOptionsToClass{11pt}{article}
|
||||||
|
|
||||||
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{article}}
|
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{article}}
|
||||||
@@ -61,7 +65,16 @@
|
|||||||
\definecolor{winered}{rgb}{0.5,0,0}
|
\definecolor{winered}{rgb}{0.5,0,0}
|
||||||
|
|
||||||
% bib-settings
|
% bib-settings
|
||||||
\RequirePackage{natbib}
|
\ifdefstring{\ELEGANT@cite}{authoryear}{
|
||||||
|
\RequirePackage[authoryear,sort&compress]{natbib}
|
||||||
|
}{\relax}
|
||||||
|
\ifdefstring{\ELEGANT@cite}{numbers}{
|
||||||
|
\RequirePackage[numbers,sort&compress]{natbib}
|
||||||
|
}{\relax}
|
||||||
|
\ifdefstring{\ELEGANT@cite}{super}{
|
||||||
|
\RequirePackage[super,sort&compress]{natbib}
|
||||||
|
}{\relax}
|
||||||
|
|
||||||
\setlength{\bibsep}{0.0pt}
|
\setlength{\bibsep}{0.0pt}
|
||||||
\def\bibfont{\footnotesize}
|
\def\bibfont{\footnotesize}
|
||||||
|
|
||||||
@@ -127,7 +140,7 @@
|
|||||||
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries 关键词: } #1}
|
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries 关键词: } #1}
|
||||||
\newcommand\figref[1]{{\bfseries 图~\ref{#1}}}
|
\newcommand\figref[1]{{\bfseries 图~\ref{#1}}}
|
||||||
\newcommand\tabref[1]{{\bfseries 表~\ref{#1}}}
|
\newcommand\tabref[1]{{\bfseries 表~\ref{#1}}}
|
||||||
\RequirePackage[authoryear]{gbt7714}
|
\RequirePackage{gbt7714}
|
||||||
}{\relax}
|
}{\relax}
|
||||||
\ifdefstring{\ELEGANT@lang}{en}{
|
\ifdefstring{\ELEGANT@lang}{en}{
|
||||||
\theoremstyle{plain}% default
|
\theoremstyle{plain}% default
|
||||||
|
|||||||
BIN
kvoptions.pdf
BIN
kvoptions.pdf
Binary file not shown.
Reference in New Issue
Block a user