LaTeX字体设置

% 导言区
% 帮助文档 texdoc lshort-zh
% 设置normalsize大小
\documentclass[10pt]{ctexart} %article,ctexbook封面, ctexreport, letter

%\usepackage{ctex}       %支持中文

\newcommand\degree{^\circ}
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}


\title{\heiti 监督学习}        % 黑体
\author{\kaishu 窦祖俊}        % 楷书
\date{\today}

% 正文区 (文稿区)
\begin{document}
    \maketitle
    
    
%    设置字体参数
    \textrm{内容:Roman Family} \textsf{内容:Sans Serif Family}
    \texttt{内容:Typewriter Family}
    
    {\rmfamily 内容:Roman Family}
    {\sffamily 内容:Sans Serif Family}
    {\ttfamily 内容:Typewrite Family}

    
    %全局设置---可以用大括号声明范围
    {\rmfamily 内容:Asd Fast Fasdfasd Gsdf asdf}

    {\sffamily 内容:Sans Serif Family Are you wiser asdfasdfasfasdfasdf
    
    {\ttfamily 内容:Are you Skitting}
    
    
    \textmd{内容:Medium Series} \textbf{内容:Boldface Series}
    
    {\songti 宋体} \quad{\heiti 黑体} \quad {\fangsong 仿宋}
    
    中文字体的\textbf{粗体} 与\textit{斜体}
    
    %字体大小
    {\tiny Hello} \\
    {\scriptsize Hello} \\
    {\footnotesize Hello} \\
    {\small Hello} \\
    {\normalsize Hello} \\
    {\large Hello} \\
    
    
    
    
    
    \begin{center}
        \textbf{简介}
    \end{center}
    
    
    \zihao{5} 你好!    
    
    \myfont{你好啊!}

    Sans Serif Faily sdfasdfasdfas在监督学习中,许多学习算法的性能都非常类似,因此,重要的不是你该选择使用学习算法A还是学习算法B,而更重要的是,应用这些算法时,所创建的大量数据在应用这些算法时,表现情况通常依赖于你的水平。
    设直角三角形 $ABC$,其中 $\angle C=90\degree$,则有:
    \begin{equation}
        AB^2 = BC^2 + AC^2.
    \end{equation}
    \begin{equation}
    AB^2 = BC^2 + AC^2.
    \end{equation}
    
    
\end{document}

猜你喜欢

转载自www.cnblogs.com/douzujun/p/10192003.html