字体
表达式 | 字体 |
---|---|
\textrm{…} | roman |
\textsf{…} | sans serif |
\texttt{…} | typewriter |
\textmd{…} | medium |
\textbf{…} | bold face |
\textup{…} | upright |
\textit{…} | italic |
\textsl{…} | slanted |
\textsc{…} | small caps |
\emph{…} | emphasized |
\textnormal{…} | document font |
字体尺寸
表达式 | 字体尺寸 | 10pt (default) | 11pt option | 12pt option |
---|---|---|---|---|
\tiny | tiny font | 5pt | 6pt | 6pt |
\scriptsize | very small font | 7pt | 8pt | 8pt |
\footnotesize | quite small font | 8pt | 9pt | 10pt |
\small | small font | 9pt | 10pt | 11pt |
\normalsize | normal font | 10pt | 11pt | 12pt |
\large | large font | 12pt | 12pt | 14pt |
\Large | larger font | 14pt | 14pt | 17pt |
\LARGE | very large font | 17pt | 17pt | 20pt |
\huge | huge | 20pt | 20pt | 25pt |
\Huge | largest | 25pt | 25pt | 25pt |
中文字号和对应磅值
字号 | 磅值 |
---|---|
八号 | 5pt |
七号 | 5.5pt |
小六 | 6.5pt |
六号 | 7.5pt |
小五 | 9pt |
五号 | 10.5pt |
小四 | 12pt |
四号 | 14pt |
小三 | 15pt |
三号 | 16pt |
小二 | 18pt |
二号 | 22pt |
小一 | 24pt |
一号 | 26pt |
小初 | 36pt |
初号 | 42pt |
中文字体:
使用命令fc-list :lang=zh-cn
在命令行查看已经安装的字体
\documentclass[UTF8]{ctexart}
\begin{document}
{\fangsong 我是仿宋}\\
{\yahei 我是微软雅黑}\\
{\heiti 我是黑体}\\
{\kaishu 我是楷书}\\
\end{document}
输出结果:
字体尺寸:
代码:
\documentclass[UTF8]{ctexart}
\begin{document}
{\tiny 字体大小font size tiny }\\
{\scriptsize 字体大小font size scriptsize}\\
{\footnotesize 字体大小font size footnotesize}\\
{\small 字体大小font size small}\\
{\normalsize 字体大小font size normalsize}\\
{\large 字体大小font size large}\\
{\Large 字体大小font size Large}\\
{\LARGE 字体大小font size LARGE}\\
{\huge 字体大小font size huge}\\
{\Huge 字体大小font size Huge}\\
\end{document}