Skip to content

Commit

Permalink
适配旧版gbt7714
Browse files Browse the repository at this point in the history
  • Loading branch information
note286 committed Jan 3, 2022
1 parent fc23920 commit 3ad95ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ Texmaker内置了PDF查看器,支持正向同步和反向同步功能,具体

# 版本记录

- `2022-01-03` [`v0.7.4`](https://github.com/note286/xdupgtp/releases/tag/v0.7.4) 适配旧版gbt7714。
- `2022-01-03` [`v0.7.3`](https://github.com/note286/xdupgtp/releases/tag/v0.7.3) 支持URL自动断行。
- `2022-01-03` [`v0.7.2`](https://github.com/note286/xdupgtp/releases/tag/v0.7.2) 适配最新版tcolorbox宏包。
- `2022-01-02` [`v0.7.1`](https://github.com/note286/xdupgtp/releases/tag/v0.7.1) 修正开题报告要求标题字体。
Expand Down
12 changes: 10 additions & 2 deletions xdupgtp.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{xdupgtp}[2022/01/03 Xidian University Postgraduate Thesis Proposal class, v0.7.3, created by @note286, published in https://note286.github.io/xdupgtp/]
\ProvidesClass{xdupgtp}[2022/01/03 Xidian University Postgraduate Thesis Proposal class, v0.7.4, created by @note286, published in https://note286.github.io/xdupgtp/]

% 学术学位博士研究生 Doctor of Academic
\newif\ifda\datrue
Expand Down Expand Up @@ -67,6 +67,14 @@
\RequirePackage{environ}
% 参考文献引用
\RequirePackage[sort&compress,square,super,comma]{natbib}
\RequirePackage{gbt7714}
\@ifpackagelater{gbt7714}{2020/03/04}
{\PassOptionsToPackage{numbers}{natbib}}
{\PassOptionsToPackage{numbers}{gbt7714}}
\newcommand\ckwx{}
\@ifpackagelater{gbt7714}{2020/03/04}
{\renewcommand\ckwx{\bibliographystyle{gbt7714-numerical}}}
{}
\setlength{\bibsep}{0pt}
% 签名图片
\RequirePackage{graphicx}
Expand Down Expand Up @@ -477,7 +485,7 @@
\newenvironment{xtyj}
{\vspace*{0.1\baselineskip}
\begin{mybox2}}
{\bibliographystyle{gbt7714-numerical}
{\ckwx
\bibliography{xdupgtp}
\end{mybox2}}

Expand Down

0 comments on commit 3ad95ff

Please sign in to comment.