latax使用

  • latex代码
%导言区 用于作全局声明
\documentclass{article}%book,report,letter

\usepackage{ctex} % 导入支持中文的宏包\ 
% cmd输入texdoc ctex 打开ctex宏包手册,查看使用方法
% texdoc lshort-zh 简单使用教程
% texdoc 

\newcommand\degree{^\circ}

\title{My First Document}
\author{Feng Renyao}
\date{\today}

%正文区
\begin{document}
    %字体族设置(罗马字体,无衬线字体,打印机字体)
    \textrm{Roman Family} \textsf{Sans Serif Family} \texttt{Typewriter Family}
    {\rmfamily Roman Family} \sffamily Sans Serif Family \ttfamily Typewriter Family
    %字体系列设置
    
    \maketitle %显示Title信息 letter没有title属性
    
    \heiti 内容
    
    %空行可以表示换行,但多个空行会认为只有一个
    \kaishu 内容
    
    Let $f(x)$ be defined by the formula $$f(x)=3x^2+x-1$$ which is a polynomial of degree 2.
    
    %使用新定义的命令\degree
    $\angle C=90\degree$
    
    \begin{equatin}
        AB^2=BC^2=AC^2. %产生带编号的行公式
    \end{equation}
    
\end{document}

评论区 0