Skip to content

Commit

Permalink
修正参考文献引用命令为健壮命令
Browse files Browse the repository at this point in the history
  • Loading branch information
note286 committed May 10, 2022
1 parent d647710 commit 92d28e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,7 @@ LaTeX Font Warning: Font shape `OMX/cmex/m/n' in size <10.53937> not available

# 版本记录

- `2022-05-10` [`v4.2.4`](https://github.com/note286/xdupgthesis/releases/tag/v4.2.4) 修正参考文献引用命令为健壮命令。
- `2022-03-27` [`v4.2.3`](https://github.com/note286/xdupgthesis/releases/tag/v4.2.3) 修正符号对照表和缩略语对照表行距。
- `2022-03-24` [`v4.2.2`](https://github.com/note286/xdupgthesis/releases/tag/v4.2.2) 修正附录公式编号。
- `2022-03-19` [`v4.2.1`](https://github.com/note286/xdupgthesis/releases/tag/v4.2.1) 修正子图caption字号。
Expand Down
11 changes: 7 additions & 4 deletions xdupgthesis.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{xdupgthesis}[2022/03/27 v4.2.3 Xidian University Postgraduate Thesis document class, modified by @note286, published in https://note286.github.io/xdupgthesis/]
\ProvidesClass{xdupgthesis}[2022/05/10 v4.2.4 Xidian University Postgraduate Thesis document class, modified by @note286, published in https://note286.github.io/xdupgthesis/]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% class and packages
Expand Down Expand Up @@ -224,8 +224,10 @@
{\PassOptionsToPackage{square,super,comma}{natbib}}
{}

\newcommand\cites[1]{\cite{#1}}
\newcommand\citen[1]{\setcitestyle{numbers}\cite{#1}\setcitestyle{super}}
\RequirePackage{xparse}
\NewDocumentCommand\cites{m}{\cite{#1}}
\NewDocumentCommand\citen{m}{{\citestyle{numbers}\cite{#1}}}
\NewDocumentCommand\parencite{m}{{\citestyle{numbers}\cite{#1}}}

\RequirePackage{xurl}

Expand All @@ -235,7 +237,8 @@
\hypersetup{%
pdftitle={\XDU@value@thesis@title},%
pdfauthor={\XDU@value@author@name},%
pdfsubject={\XDU@label@university\XDU@value@degreemark\XDU@value@cover@thesis}%
pdfsubject={\XDU@label@university\XDU@value@degreemark\XDU@value@cover@thesis},%
pdfcreator={XeLaTeX with xdupgthesis class (@note286 in GitHub)}%
}}

%% config file
Expand Down

0 comments on commit 92d28e2

Please sign in to comment.