新浪博客

CTeX学习笔记01--如何设置字体大小

2015-10-25 16:05阅读:

1.1 LaTex 设置全局字体大小

设置文档全局字体大小,直接在文档最开头的\documentclass{article} 中进行设置,例如我们将文档全局设置成12 号字体,输入如下:
\documentclass[UTF8,a4paper,12pt]{ctexart}
\begin{document}
hello,latex!
\end{document}
1.2 LaTex 设置局部字体大小
• Latex 设置字体大小的命令
Latex 设置字体大小的命令由小到大依次为:
\tiny
\scriptsize
\footnotesize
\small
ormalsize
\large
\Large
\LARGE
\huge
\Huge
• 设置局部字体的大小
使用\Large 命令将字体设置为大号字体:
\documentclass[UTF8,a4paper,12pt]{ctexart}
\begin{document}
\Large hello,latex!
\end{document}
或者使用:
\documentclass[UTF8,a4paper,12pt]{ctexart}
\begin{document}
\begin{Lar
ge}
\Hello,latex!
\end{Large}
\end{document}

我的更多文章

下载客户端阅读体验更佳

APP专享