基本格式

基本格式
% 导言区
\documentclass{article} % book,report,letter(没有title)

\title{My First Document}
\author{ZSH}
\date{\today}
 
% 正文区
\begin{document}
    \maketitle % 生成title,author等信息
    Hello world!

    % 空一行可以换行                          
    Let $f(x)$ be defined by the formula $f(x)=3x^2+x-1$ $$f(x)=3x^2+x-1$$ % 双$模式是行间数学公式
\end{document}
\documentclass{article} 

\usepackage{ctex} % 中文包
\newcommand\degree{^\circ} % 定义新的命令

\title{\heiti 杂谈勾股定理} % 黑体
\author{\kaishu 张舒恒} % 楷书
\date{\today}

\begin{document}
    \maketitle 
    $\angle C = 90\degree$
    \begin{equation}
        AB^2 = BC^2 + AC^2. % 公式会标号
    \end{equation}
\end{document}
posted @ 2022-02-27 20:11  ayanyuki  阅读(32)  评论(0)    收藏  举报