latex

 

 

css

1 测试环境的例子

\documentclass{article} %声明文档的类型是文章
\begin{document}  %文档开始

this is my first document

\end{document} %文档结束

2 中文环境

\documentclass[UTF8]{ctexart}
\begin{document}

\section{文字}
文字排版
\section{数学}
\[
        a^2 + b^2 = c^2
\]

\end{document}

3 提纲例子

%-*- coding: UTF-8 -*-
% gougu.tex
% 勾股定理
\documentclass[UTF8]{ctexart}

\title{杂谈勾股定理}
\author{张三}
\date{\today}

\bibliographystyle{plain}

\begin{document}

\maketitle
\tableofcontents
\section{勾股定理在古代}
\section{勾股定理的近代形式}
\bibliography{math}

\end{document}

  • % 开头是注释的意思
    • utf8 格式文件
    • 文件名
    • 文件内容
  • documentclass 表示文档类
    • utf8 格式的文件
    • 由于是中文使用 ctexart
  • title 标题
  • author 做者
  • date 时间
    • today 表示今天
  • maketitle 实际输出论文标题
  • tableofcontents 输出目录
  • section 开始新的一节

4 命令

以\开始,接着命令名html

  • 无参数 \command
  • 那个参数 \command{arg1}{arg2}…{argn}
  • 可选参数 \command[{arg1}…{argm}] {argn}

4.1 脚注

\footnote(内容)java

4.2 分组

\begin{环境名} 环境内容 \end{环境名(同begin)}python

Created: 2019-06-24 周一 09:49sql

Validateshell

相关文章
相关标签/搜索