(三)Latex的字体字号设置

(三)Latex的字体字号设置

在这里插入图片描述

\documentclass[12pt]{article}   %全局字体大小设置为10磅  只有10pt 11pt 12pt可选
\usepackage{ctex}
%定义复合字体
\newcommand{\myfont}{\textbf{\textsf{Fancy Text}}}
%正文区(文稿区):
\begin{document}  
 1字体族设置
 
 <1>罗马字体
 \textrm{Roman Family} {\rmfamily Roman Family}
 
 
 <2>无衬线字体
 \textsf{Sans Serif Family} {\sffamily Sans Serif Family}
 
 <3>打字机字体
 \texttt{Typewriter Family} {\ttfamily Typewriter Family}
 
 2字体系列设置(粗细、宽度)
 
 <1>
 \textmd{Medium Series}  {\mdseries Medium Series}
 
 <2>
 \textbf{Boldface Series}  {\bfseries Boldface Series}
 
 3字体形状(直立、斜体、伪斜体、小型大写)
 3.1英文字体
 
 <1>直立
 \textup{Upright Shape} {upshape Upright Shape}
 
 <2>斜体
 \textit{Italic Shape} {\itshape Italic Shape}
 
 <3>伪斜体
 \textsl{Slanted Shape} {\slshape Slanted Shape}
 
 <4>小型大写
 \textsc{Small Caps Shape} {\scshape Samll Caps Shape}
 
 3.2中文字体
 
 <1>{\songti 宋体}
 <2>{\heiti 黑体}
 <3>{\fangsong 仿宋}
 <4>{\kaishu 楷书}
 <5>\textbf{中文粗体}
 <6>\textit{中文斜体}
 
 4字体大小
 
 {\tiny         Hello}
 {\scriptsize   Hello}
 {\footnotesize Hello}
 {\small        Hello}
 {\large        Hello}
 {\Large        Hello}
 {\LARGE        Hello}
 {\huge         Hello}
 {\Huge         Hello}
 
 %中文字号设置命令(具体字号可通过命令行输入“textdoc ctex”查看,在帮助文档的5.1)
 \zihao{-0} 中文字号设置命令 
 
 \myfont
 
\end{document}

在这里插入图片描述

发布了23 篇原创文章 · 获赞 2 · 访问量 795

猜你喜欢

转载自blog.csdn.net/weixin_44378835/article/details/104123465