latex_1

% 导言区 全局设置
\documentclass [10pt]{article} % book,reeport,letter
\usepackage{ctex} %引入中文宏包

\newcommand\degree{^\circ} %定义一个新命令 degree
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}

\title{\heiti My First Document and 勾股定理}
\author{\kaishu Hkk eryu}
\date{\today}



%正文区(文稿区)
\begin{document}
  \maketitle
  你好,HKK

   hello word! % 换行则代码中间增加一行,多个空行也按照一个空行处理

   % here is my big formula
   Let $ f(x) $ be defined by the formula $$ f(x)=3x^2+x-1 $$ which is a polynomial of
    degree 2 .%单$$表示数学模式行内公示,双$$$$ 表示行间公示
    其中 $\angle C=90\degree $,则有:
    \begin{equation} % 用于产生带编号的行间公式
    AB^2 = BC^2 + AC ^2.
    \end{equation}

    % 字体族设置(罗马字体,无衬线字体,打印机字体)
      % 字体族设置
    \textrm{Roman Family}  \textsf{Sans Serif Family} \texttt{Typewriter Family}

    % 字体声明作用于后续文本 {} 限定字体声明的范围
    \rmfamily Roman Family  {\sffamily  Sans Serif Family} {\ttfamily Typewriter Family}
    % \sffamily  % 在此声明无衬线字体,则后续均为此字体 ,当遇到下一个字体声明则结束此声明,启用下一个字体声明

    \sffamily who you are ?

    \ttfamily Are you wiser than others?

    % 字体系列设置 (粗细,宽度)
    \textmd{Medium Series} \textbf{Boldface Series}

    {\mdseries Medium Series} {\bfseries Boldface Series}

    %字体形状设置
    \textup{Upright Shape} \textit{Italic Shape}
    \textsl{Slanted Shape} \textsc{Small Caps Shape}

    {\upshape Upright Shape }{\itshape Italic Shape} {\slshape Slanted Shape} {\scshape Small Caps Shape}

    % 中文字体设置 \quad 命令啥意思
    {\songti 宋体}  {\heiti 黑体} \quad {\fangsong 仿宋} \quad {\kaishu 楷书}

    中文字体的\textbf{粗体}与\textit{斜体}

    % 字体大小 yu normalize 的相对大小 normalize 在开头设置例如10pt 一般只有10 11 12 磅
    {\tiny Hello }\\
    {\scriptsize Hello }\\
    {\footnotesize Hello}\\
    {\small  Hello}\\
    {\normalsize Hello}\\
    {\large Hello}\\
    {\Large Hello}\\
    {\LARGE Hello}\\
    {\huge Hello}\\
    {\Huge Hello}\\

    % 中文字号设置命令
    \zihao {5} 你好! %比如5号字体

    \myfont








\end{document}

  

猜你喜欢

转载自www.cnblogs.com/hkkeryu/p/12127387.html