修改了字体的说明。
This commit is contained in:
+31
-11
@@ -120,24 +120,44 @@
|
||||
\XeTeXlinebreaklocale "zh"
|
||||
\XeTeXlinebreakskip = 0pt plus 1pt
|
||||
|
||||
\setCJKfamilyfont{fzss}{方正书宋_GBK}
|
||||
%方正书宋
|
||||
\setCJKfamilyfont{fzss}[
|
||||
Path=font/
|
||||
]{fangzhengshusong_GBK.TTF}
|
||||
\newcommand{\fzss}{\CJKfamily{fzss}}
|
||||
|
||||
\setCJKfamilyfont{fzxbs}{方正小标宋_GBK}
|
||||
%方正小标宋
|
||||
\setCJKfamilyfont{fzxbs}[
|
||||
Path=font/
|
||||
]{fangzhengxiaobiaosong_GBK.TTF}
|
||||
\newcommand{\fzxbs}{\CJKfamily{fzxbs}}
|
||||
|
||||
\setCJKfamilyfont{fzhei}{方正黑体_GBK}
|
||||
\newcommand{\fzhei}{\CJKfamily{fzhei}}
|
||||
|
||||
\setCJKfamilyfont{fzkai}{方正楷体_GBK}
|
||||
%方正楷体
|
||||
\setCJKfamilyfont{fzkai}[
|
||||
Path=font/
|
||||
]{fangzhengkaiti_GBK.TTF}
|
||||
\newcommand{\fzkai}{\CJKfamily{fzkai}}
|
||||
|
||||
\setCJKfamilyfont{fzfs}{方正仿宋_GBK}
|
||||
%方正仿宋
|
||||
\setCJKfamilyfont{fzfs}[
|
||||
Path=font/
|
||||
]{fangzhengfangsong_GBK.TTF}
|
||||
\newcommand{\fzfs}{\CJKfamily{fzfs}}
|
||||
|
||||
\setCJKfamilyfont{fzzdx}{方正中等线_GBK}
|
||||
%方正中等线
|
||||
\setCJKfamilyfont{fzzdx}[
|
||||
Path=font/
|
||||
]{fangzhengzhongdengxian_GBK.TTF}
|
||||
\newcommand{\fzzdx}{\CJKfamily{fzzdx}}
|
||||
|
||||
%鸿蒙字体
|
||||
\setCJKfamilyfont{hm}[
|
||||
Path=font/,
|
||||
BoldFont=HarmonyOS_Sans_SC_Bold.ttf,
|
||||
ItalicFont=HarmonyOS_Sans_SC_Light.ttf,
|
||||
BoldItalicFont=HarmonyOS_Sans_SC_Black.ttf,
|
||||
]{HarmonyOS_Sans_SC_Regular.ttf}
|
||||
\newcommand{\hm}{\CJKfamily{hm}}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% titlesec
|
||||
@@ -188,7 +208,7 @@
|
||||
arc=3pt,
|
||||
interior style={white},
|
||||
attach boxed title to top center = {yshift=-\tcboxedtitleheight/2},
|
||||
fonttitle=\normalfont,
|
||||
fonttitle=\hm,
|
||||
colbacktitle=white,coltitle=black,
|
||||
boxed title style={size=normal,colframe=white,boxrule=0pt},
|
||||
boxrule=.5pt,
|
||||
@@ -210,7 +230,7 @@
|
||||
colback=NavyBlue!5!White,
|
||||
colbacktitle=NavyBlue!5!White,
|
||||
coltext=NavyBlue,
|
||||
title={\textcolor{NavyBlue}{\faStickyNoteO\hspace{.5em}\bfseries{\textbf{笔记}}}},
|
||||
title={\textcolor{NavyBlue}{\faStickyNoteO\hspace{.5em}\bfseries{\hm{笔记}}}},
|
||||
halign=left,
|
||||
fontupper=\fzkai
|
||||
}
|
||||
@@ -226,7 +246,7 @@
|
||||
colback=Orange!5!White,
|
||||
colbacktitle=Orange!5!White,
|
||||
coltext=Orange,
|
||||
title={\textcolor{Orange}{\faExclamationCircle\hspace{.5em}\bfseries{\textbf{重要}}}},
|
||||
title={\textcolor{Orange}{\faExclamationCircle\hspace{.5em}\bfseries{\hm{重要}}}},
|
||||
halign=left,
|
||||
fontupper=\fzkai
|
||||
}
|
||||
|
||||
BIN
Binary file not shown.
+32
-31
@@ -17,6 +17,7 @@
|
||||
\usepackage{tcolorbox}
|
||||
\usepackage{fontawesome}
|
||||
\usepackage[justification=centering]{caption}
|
||||
\usepackage{draftwatermark}% 所有页加水印
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% title and author
|
||||
@@ -55,7 +56,6 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% 设置页面水印
|
||||
% \usepackage[firstpage]{draftwatermark} % 只有第一页加水印
|
||||
\usepackage{draftwatermark} % 所有页加水印
|
||||
\SetWatermarkText{中国海洋大学计算机科学与技术学院} % 设置水印文字内容
|
||||
% \SetWatermarkText{\includegraphics{fig/ZJDX-WaterMark.eps}} % 设置水印LOGO
|
||||
\SetWatermarkLightness{0.95} % 设置水印透明度 0-1
|
||||
@@ -74,60 +74,59 @@
|
||||
%% 封面页面开始
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{titlepage} % Suppresses headers and footers on the title page
|
||||
|
||||
\centering % Centre everything on the title page
|
||||
\scshape % Use small caps for all text on the title page
|
||||
\vspace*{\baselineskip} % White space at the top of the page
|
||||
\begin{titlepage}
|
||||
\centering % 居中显示
|
||||
\scshape %
|
||||
\vspace*{\baselineskip} % 顶部空白
|
||||
%------------------------------------------------
|
||||
% 标题
|
||||
%------------------------------------------------
|
||||
|
||||
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % Thick horizontal rule
|
||||
\rule{\textwidth}{0.4pt} % Thin horizontal rule
|
||||
\rule{\textwidth}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt} % 上面粗的线
|
||||
\rule{\textwidth}{0.4pt} % 细线
|
||||
|
||||
\vspace{0.75\baselineskip} % Whitespace above the title
|
||||
\vspace{0.75\baselineskip} % 和标题之间的空白
|
||||
|
||||
{\zihao{2} 这是一个\\ 很好用的Latex模板\\} % Title
|
||||
{\hm\bfseries \zihao{2} 这是一个\\ 很好用的Latex模板\\} % 标题
|
||||
|
||||
\vspace{0.75\baselineskip} % Whitespace below the title
|
||||
\vspace{0.75\baselineskip} % 标题下面的空白
|
||||
|
||||
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % Thin horizontal rule
|
||||
\rule{\textwidth}{1.6pt} % Thick horizontal rule
|
||||
\rule{\textwidth}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt} % 细线
|
||||
\rule{\textwidth}{1.6pt} % 粗线
|
||||
|
||||
\vspace{2\baselineskip} % Whitespace after the title block
|
||||
\vspace{2\baselineskip} % 标题后的空白
|
||||
|
||||
%------------------------------------------------
|
||||
% Subtitle
|
||||
% 副标题
|
||||
%------------------------------------------------
|
||||
|
||||
这里是副标题 % Subtitle or further description
|
||||
{\hm \zihao{3} 这里是副标题} % 副标题
|
||||
|
||||
\vspace*{3\baselineskip} % Whitespace under the subtitle
|
||||
\vspace*{3\baselineskip} % 空白
|
||||
|
||||
%------------------------------------------------
|
||||
% Editor(s)
|
||||
% 作者信息
|
||||
%------------------------------------------------
|
||||
|
||||
作者
|
||||
|
||||
\vspace{0.5\baselineskip} % Whitespace before the editors
|
||||
\vspace{0.5\baselineskip} % 作者前空白
|
||||
|
||||
{\scshape\Large 作者名字 } % Editor list
|
||||
{\scshape\Large 作者名字 } % 作者列表
|
||||
|
||||
\vspace{0.5\baselineskip} % Whitespace below the editor list
|
||||
\vspace{0.5\baselineskip} % 空白
|
||||
|
||||
\textit{一级单位 \\ 二级单位 \\ 三级单位} % Editor affiliation
|
||||
\fzkai{一级单位 \\ 二级单位 \\ 三级单位} % 作者单位
|
||||
|
||||
\vfill % Whitespace between editor names and publisher logo
|
||||
\vfill % 空白
|
||||
|
||||
%------------------------------------------------
|
||||
% Publisher
|
||||
% 出版社或单位
|
||||
%------------------------------------------------
|
||||
|
||||
%\plogo % Publisher logo
|
||||
|
||||
\vspace{0.3\baselineskip} % Whitespace under the publisher logo
|
||||
\vspace{0.3\baselineskip} % 空白
|
||||
|
||||
%2017 % Publication year
|
||||
|
||||
@@ -156,21 +155,23 @@
|
||||
\section{准备工作}
|
||||
在正式开始使用模板之前,需要你安装LiveTex,并安装任何可用的编辑器。
|
||||
|
||||
然后安装字体,字体文件,都在font文件夹中。
|
||||
不需要再做其他配置,字体在font文件夹中,编译时会自动调用,无须额外安装。
|
||||
|
||||
\section{字体}
|
||||
|
||||
在模板中,可以使用多种字体。包括英文字体和中文字体。
|
||||
在模板中,默认使用的字体是鸿蒙字体,除此之外,还定义了一些其他的中文字体。
|
||||
|
||||
英文字体,默认使用的是Myriad Pro,现在你看到的应该就是这个字体的效果。等宽英文字体使用的是Courier Std。这些设置,可以在cls中,字体设定里面进行修改。
|
||||
英文字体,默认使用的是鸿蒙字体(HarmonyOS Sans),现在你看到的应该就是这个字体的效果。这些设置,可以在cls中,字体设定里面进行修改。
|
||||
|
||||
中文字体,使用的是方正黑体、方正小标宋、方正楷体、方正仿宋、方正黑体、方正中等线等。
|
||||
中文字体,使用的是鸿蒙字体、方正小标宋、方正楷体、方正仿宋、方正中等线等。
|
||||
|
||||
中文的默认字体是方正书宋,加粗字体是方正小标宋,就像这样:\textbf{这里是加粗字体}。斜体的字体是方正楷体,就像这样:\textit{这里是中文斜体}。斜体粗体的字体是方正仿宋,就像这样:\textbf{\textit{这里是粗体斜体}}。中文的无衬线字体sans font使用的是方正黑体,你应该可以在标题中看到它。中文等宽字体,使用的是方正中等线字体。
|
||||
中文的默认字体衬线字体是方正书宋,加粗字体是方正小标宋,就像这样:\textbf{这里是加粗字体}。斜体的字体是方正楷体,就像这样:\textit{这里是中文斜体}。斜体粗体的字体是方正仿宋,就像这样:\textbf{\textit{这里是粗体斜体}}。中文的无衬线字体sans font使用的是方正黑体,你应该可以在标题中看到它。中文等宽字体,使用的是方正中等线字体。
|
||||
|
||||
默认的无衬线字体是鸿蒙字体,你应该可以在各种标题中看到它的样子。
|
||||
|
||||
同样,上述的字体,在cls中,都可以进行设置。
|
||||
|
||||
另外,可以使用额外的命令,来临时改变某一段文字的字体设置,这些命令包括:fzss(方正书宋)、 fzxbs(方正小标宋)、fzhei(方正黑体)、fzkai(方正楷体)、fzfs(方正仿宋)、fzzdx(方正中等线)。使用方法是使用斜线命令的方式,这样:{\fzss 方正书宋}、 {\fzxbs 方正小标宋}、{\fzhei 方正黑体}、{\fzkai 方正楷体}、{\fzfs 方正仿宋}、{\fzzdx 方正中等线}。
|
||||
另外,可以使用额外的命令,来临时改变某一段文字的字体设置,这些命令包括:fzss(方正书宋)、 fzxbs(方正小标宋)、、fzkai(方正楷体)、fzfs(方正仿宋)、fzzdx(方正中等线)、hm(鸿蒙字体)。使用方法是使用斜线命令的方式,这样:{\fzss 方正书宋}、 {\fzxbs 方正小标宋}、{\fzkai 方正楷体}、{\fzfs 方正仿宋}、{\fzzdx 方正中等线}、{\hm 鸿蒙字体}。
|
||||
|
||||
\section{标题}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user