Skip to content

Commit

Permalink
New Release
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangruiMo committed Apr 24, 2019
1 parent 8fc8024 commit 67ed27b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

## 重要通知

* `2019-04-23` 模板样式进行了修改,请查看下面的修改描述,以决定是否需要更新。
* `2019-04-24` 模板样式进行了修改,请查看下面的修改描述,以决定是否需要更新。

## 更新记录

* `2019-04-23` 拓展模版兼容博后报告。修复 [gsp2014, issue #156](https://github.com/mohuangrui/ucasthesis/issues/156) 文献引用中的连字符的间断显示
* `2019-04-24` 拓展模版兼容博后报告。修复 [gsp2014, issue #156](https://github.com/mohuangrui/ucasthesis/issues/156) 文献引用中的连字符的间断显示和上标引用中逗号下沉

* `2019-04-19` 修复 [nihaomiao, issue #117](https://github.com/mohuangrui/ucasthesis/issues/117) `\mathbf` 失效问题。

Expand Down
34 changes: 13 additions & 21 deletions Style/artratex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -408,43 +408,34 @@
%-
%- Bibtex processor + natbib package
\ifartx@bibtex%
% Set punctuation and mode of citation style
\newcommand{\bibstyle@super}{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}}%
\newcommand{\bibstyle@numbers}{\bibpunct{[}{]}{,}{n}{,}{,}}%
\newcommand{\bibstyle@authoryear}{\bibpunct{(}{)}{;}{a}{,}{,}}%
\newcommand{\bibstyle@alpha}{\bibpunct{[}{]}{,}{n}{,}{,}}%
\ifartx@numbers% enable numbered citation style
\RequirePackage[sort&compress]{natbib}% numbered citation mode
\ifartx@super% enable superscripted citation style
\RequirePackage[square,comma,super,sort&compress]{natbib}% superscripted square bracket
\citestyle{super}%
\else
\RequirePackage[square,comma,numbers,sort&compress]{natbib}% square bracket
\citestyle{numbers}%
\fi
\bibliographystyle{Biblio/gbt7714-unsrt}% numbered scheme
\fi
\ifartx@authoryear% enable author year citation style
\RequirePackage{natbib}% author year citation mode
\citestyle{authoryear}%
\bibliographystyle{Biblio/gbt7714-plain}% author year scheme
\fi
\ifartx@alpha% enable alpha citation style
\RequirePackage[square,comma,numbers]{natbib}% square bracket
\RequirePackage[square,comma,numbers]{natbib}% alpha citation mode
\bibliographystyle{alpha}% alpha scheme
\fi
\providecommand*{\citetns}[2][]{% text embedded \citet in superscripted mode
\begingroup%
\let\NAT@mbox=\mbox%
\let\@cite\NAT@citenum%
\let\NAT@space\NAT@spacechar%
\let\NAT@super@kern\relax%
\renewcommand\NAT@open{[}%
\renewcommand\NAT@close{]}%
\citet[#1]{#2}%
\endgroup%
\begingroup\citestyle{numbers}\citet[#1]{#2}\endgroup%
}
\providecommand*{\citepns}[2][]{% text embedded \citep in superscripted mode
\begingroup%
\let\NAT@mbox=\mbox%
\let\@cite\NAT@citenum%
\let\NAT@space\NAT@spacechar%
\let\NAT@super@kern\relax%
\renewcommand\NAT@open{[}%
\renewcommand\NAT@close{]}%
\citep[#1]{#2}%
\endgroup%
\begingroup\citestyle{numbers}\citep[#1]{#2}\endgroup%
}
\fi
%- Biber processor + biblatex package
Expand Down Expand Up @@ -542,6 +533,7 @@
\RequirePackage{hyperref}% load at last
\hypersetup{% set hyperlinks
pdfencoding=auto,% allows non-Latin based languages in bookmarks
%psdextra=true,% extra support for math symbols in bookmarks
%bookmarks=true,% show bookmarks bar
bookmarksnumbered=true,% put section numbers in bookmarks
pdftitle={\@title},% title
Expand Down
4 changes: 3 additions & 1 deletion Tex/Chap_Guide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,16 @@ \subsection{参考文献引用}
更多例子如:

\citet{walls2013drought} 根据 \citet{betts2005aging} 的研究,首次提出...。其中关于... \citep{walls2013drought, betts2005aging},是当前中国...得到迅速发展的研究领域 \citep{chen1980zhongguo, bravo1990comparative}。引用同一著者在同一年份出版的多篇文献时,在出版年份之后用
英文小写字母区别,如:\citep{yuan2012lana, yuan2012lanb, yuan2012lanc}。同一处引用多篇文献时,按出版年份由近及远依次标注。例如 \citep{chen1980zhongguo, stamerjohanns2009mathml, hls2012jinji, niu2013zonghe}。
英文小写字母区别,如:\citep{yuan2012lana, yuan2012lanb, yuan2012lanc}\citet{yuan2012lana, yuan2012lanb, yuan2012lanc}。同一处引用多篇文献时,按出版年份由近及远依次标注。例如 \citep{chen1980zhongguo, stamerjohanns2009mathml, hls2012jinji, niu2013zonghe}。

使用著者-出版年制(authoryear)式参考文献样式时,中文文献必须在BibTeX索引信息的 \textbf{key} 域(请参考ref.bib文件)填写作者姓名的拼音,才能使得文献列表按照拼音排序。参考文献表中的条目(不排序号),先按语种分类排列,语种顺 序是:中文、日文、英文、俄文、其他文种。然后,中文按汉语拼音字母顺序排列,日文按第一著者的姓氏笔画排序,西文和 俄文按第一著者姓氏首字母顺序排列。如中 \citep{niu2013zonghe}、日 \citep{Bohan1928}、英 \citep{stamerjohanns2009mathml}、俄 \citep{Dubrovin1906}。

如此,即完成了文献的索引,请查看下本文档的参考文献一章,看看是不是就是这么简单呢?是的,就是这么简单!

不同文献样式和引用样式,如著者-出版年制(authoryear)、顺序编码制(numbers)、上标顺序编码制(super)可在Thesis.tex中对artratex.sty调用实现,详见 \href{https://github.com/mohuangrui/ucasthesis/wiki}{ucasthesis 知识小站之文献样式}

%若在上标顺序编码制(super)模式下,希望在特定位置将上标改为嵌入式标,可使用 \citetns{niu2013zonghe,stamerjohanns2009mathml} 和 \citepns{niu2013zonghe,stamerjohanns2009mathml}。

参考文献索引的更多知识,请见 \href{https://en.wikibooks.org/wiki/LaTeX/Bibliography_Management}{WiKibook Bibliography}。\nocite{*}% 使文献列表显示所有参考文献(包括未引用文献)

\section{常见使用问题}\label{sec:qa}
Expand Down

2 comments on commit 67ed27b

@yfq2009
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

老师好,不清楚是谁把“gbt7714-plain.bst”文件中的英文文献作者名称大写选项打开了,现在编译显示的参考文献列表里的英文文献作者是全大写的,跟UCAS给的模板里的“仅首字母大写”不一致,请把第43行的大写选项关闭:
#1 'uppercase.name :=
改为:
#0 'uppercase.name :=
非常感谢!

@mohuangrui
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yfq2009 全大写一直都是默认的,这是国标的默认行为。你自己可以按需要修改,这些可见 https://github.com/mohuangrui/ucasthesis/wiki/文献样式

Please sign in to comment.