Skip to content

Commit

Permalink
Release v2.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
skinaze committed Jun 6, 2018
1 parent 7c714e0 commit 113998d
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 10 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,4 @@
个人认为提交的WORD文档仅作为查重使用,并不需要格式完全准确,所以虽然转换得到的WORD存在各种问题,但并不会有太大影响。当然,如果对最终提交的WORD格式有近乎完美的追求,建议使用WORD直接进行论文排版。关于这个问题如果您有更好的建议也请[联系我](mailto:me@stringblog.com)

## 未发布的更新内容
* 在文档中添加常见问题的解决方案;
* 修改浮动体与正文之间的距离,使“在顶部”和“在底部”的浮动体与文字间有一定距离;
* 修复对于清华参考文献格式的支持;
* 添加对于思源字体的支持;
33 changes: 30 additions & 3 deletions Release/Example/HustGraduPaper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
\RequirePackage{xstring}%使用条件语句
%字体组
\def\HGP@fontset{}
\def\HGP@noto{}
\DeclareOption{autofont}{}%自动设置字体
\DeclareOption{adobefont} {
\def\HGP@fontset{,fontset=adobe}
Expand All @@ -49,6 +50,31 @@
\DeclareOption{winoldfont} {
\def\HGP@fontset{,fontset=windowsold}
}%使用简体中文Windows XP或之前系统下的中易字体
\DeclareOption{notofont} {
\def\HGP@noto{
\setCJKmainfont{NotoSerifCJKsc-Regular.otf}[
BoldFont = NotoSerifCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKsansfont{NotoSansCJKsc-Regular.otf}[
BoldFont = NotoSansCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKmonofont{NotoSansMonoCJKsc-Regular.otf}[
BoldFont = NotoSansMonoCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKfamilyfont{zhsong}{NotoSerifCJKsc-Regular.otf}[
BoldFont = NotoSerifCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKfamilyfont{zhhei}{NotoSansCJKsc-Regular.otf}[
BoldFont = NotoSansCJKsc-Bold.otf,
AutoFakeBold = false
]
}
\def\HGP@fontset{}
}%使用思源宋体和思源黑体
\DeclareOption{nofont} {
\def\HGP@fontset{,fontset=none}
}%不配置中文字体,需要用户自己配置
Expand Down Expand Up @@ -101,7 +127,8 @@
BoldFont={STZhongsong},
BoldFeatures={FakeBold=4}
]

%思源字体定义与使用
\HGP@noto

%
% --- 定义页眉页脚
Expand Down Expand Up @@ -295,7 +322,7 @@
\captionsetup{font={hust,singlespacing}}
\captionsetup[figure]{position=bottom,skip={0pt}}
\captionsetup[table]{position=top,skip={0pt}}
\setlength{\textfloatsep}{0pt}
\setlength{\textfloatsep}{6pt}
\setlength{\floatsep}{0pt}
\setlength{\intextsep}{6pt}
\setlength{\abovecaptionskip}{0pt}
Expand Down Expand Up @@ -751,7 +778,7 @@
{gbt7714-2005}{\bibliographystyle{gbt7714-2005}}
{gbt7714-2015}{\bibliographystyle{gbt7714-2015}}
{thuthesis}{
\bibliographystyle{thuthesis}
\bibliographystyle{thuthesis-numeric}
\def\thudot{\unskip.}
}
}
Expand Down
Binary file modified Release/Example/example.pdf
Binary file not shown.
33 changes: 30 additions & 3 deletions Release/Template/HustGraduPaper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
\RequirePackage{xstring}%使用条件语句
%字体组
\def\HGP@fontset{}
\def\HGP@noto{}
\DeclareOption{autofont}{}%自动设置字体
\DeclareOption{adobefont} {
\def\HGP@fontset{,fontset=adobe}
Expand All @@ -49,6 +50,31 @@
\DeclareOption{winoldfont} {
\def\HGP@fontset{,fontset=windowsold}
}%使用简体中文Windows XP或之前系统下的中易字体
\DeclareOption{notofont} {
\def\HGP@noto{
\setCJKmainfont{NotoSerifCJKsc-Regular.otf}[
BoldFont = NotoSerifCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKsansfont{NotoSansCJKsc-Regular.otf}[
BoldFont = NotoSansCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKmonofont{NotoSansMonoCJKsc-Regular.otf}[
BoldFont = NotoSansMonoCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKfamilyfont{zhsong}{NotoSerifCJKsc-Regular.otf}[
BoldFont = NotoSerifCJKsc-Bold.otf,
AutoFakeBold = false
]
\setCJKfamilyfont{zhhei}{NotoSansCJKsc-Regular.otf}[
BoldFont = NotoSansCJKsc-Bold.otf,
AutoFakeBold = false
]
}
\def\HGP@fontset{}
}%使用思源宋体和思源黑体
\DeclareOption{nofont} {
\def\HGP@fontset{,fontset=none}
}%不配置中文字体,需要用户自己配置
Expand Down Expand Up @@ -101,7 +127,8 @@
BoldFont={STZhongsong},
BoldFeatures={FakeBold=4}
]

%思源字体定义与使用
\HGP@noto

%
% --- 定义页眉页脚
Expand Down Expand Up @@ -295,7 +322,7 @@
\captionsetup{font={hust,singlespacing}}
\captionsetup[figure]{position=bottom,skip={0pt}}
\captionsetup[table]{position=top,skip={0pt}}
\setlength{\textfloatsep}{0pt}
\setlength{\textfloatsep}{6pt}
\setlength{\floatsep}{0pt}
\setlength{\intextsep}{6pt}
\setlength{\abovecaptionskip}{0pt}
Expand Down Expand Up @@ -751,7 +778,7 @@
{gbt7714-2005}{\bibliographystyle{gbt7714-2005}}
{gbt7714-2015}{\bibliographystyle{gbt7714-2015}}
{thuthesis}{
\bibliographystyle{thuthesis}
\bibliographystyle{thuthesis-numeric}
\def\thudot{\unskip.}
}
}
Expand Down
Binary file modified Release/使用说明.pdf
Binary file not shown.

0 comments on commit 113998d

Please sign in to comment.