LaTeX基本字体设置-2

LaTeX-1
如何输入中文?
%在latex中是注释的意思

\documentclass{ctexart}
\usepackage{ctex} %附加宏包就饿能够添加中文了
\newcommand\degree{^\circ}
\title{\heiti  勾股定理 }
\author{\kaishu    范永军}
\date{\today}
\begin{document}
 \maketitle
 首先我介绍一下我自己帅哥一枚
 \end{document}

1:写入数学公式
\begin{equation} AB^2=BC^2+AC^2. \end{equation}
2:%字体族的设置(罗马字体,无衬线字体,打字机字体)
字体设置命令:
\textrm{Roman Family}%罗马字体
\textrm{SansSerif Family}%无衬线字体
\textrm{Typewriter Family} %打字机字体
字体设置声明:
{ \rmfamily Roman Family}%罗马字体声明
{ \sffamily SansSerif Family }%无衬线字体声明
{ \ttfamily Typewriter Family }%打字机字体声明
输出:
罗马字体:{ \sffamily Only you can control your future}
打字机字体:{ \ttfamily The worst way to miss someone is to be sitting right beside them knowing you can’t have them}
无衬线字体:{ \sffamily Only you can control your future }
3:%字体系列设置(粗细,宽度)
字体设置命令:
细:\textmd{Medium Series}
粗:\textbf{Boldface Series}
字体设置声明:
宽:{\bfseries Voldface Series}
细:{\mdseries Medium Series}
4:%字体形状(直立,斜体,伪斜体,小型大写)
字体设置命令
直立:\textup{Uperight }
伪斜体\textit{italic }
斜体:\textsl{Slanted}
小型大写:\textsc{small caps}
字体设置声明:
直立:{\upshape upright}
伪斜体:{\itshape italic}
斜体:{\slshape Slanted}
小型大写:{\scshape Small caps}
5:中文字体设置
字体{\songti 宋体}\quad{\heiti 黑体}\quad{\fangsong 仿宋}\quad{\kaishu 楷书}
6:%字体大小的设置依次增大
七号 :{\tiny hello}
小六:{\scriptsize hello}
六号 {\footnotesize hello}
小五 :{\small hello}
五号 :{\normalsize hello}
小四:{\large hello}
小二:{\LARGE hello}
二号 {\huge hello}
一号:{\HUGE hello}
7:%中文字号设置
字号:\zihao{1} 你好!

发布了50 篇原创文章 · 获赞 75 · 访问量 6706

猜你喜欢

转载自blog.csdn.net/weixin_45822638/article/details/103285055