Latex 入门

来源:互联网 发布:java不兼容的类型 编辑:程序博客网 时间:2024/04/30 02:03

安装

  1. 安装分为两部分,第一部分安装编译环境MikTex 地址为:MikTex下载地址 下载后直接安装
  2. 安装可视化的编辑窗口 WinEdt 10 地址为:WinEdt 下载地址

激活

安装的WinEdt是收费软件,只有30天的试用期。如果不想长期使用,可以不用去激活,当然激活方法网上很多,我这里用了百度经验里的方法:激活方法

使用


helloworld 入门

1. File - new - input the code:2.  \documentclass{article}    \begin{document}hello, world\end{document} 3. compile 生成 `pdf` 文档

常用希腊字母,矩阵,公式,求和,积分,连乘

\documentclass{article}\usepackage{amsmath}\usepackage{amssymb}\author{Yang Gao}\title{Latex Tutorial}\begin{document}\maketitleThe Newton's second law is F=ma.% this is commentThe Newton's second law is $F=ma$.The Newton's second law is$$F=ma$$The Newton's second law is\[F=ma\]% Greek LettersGreek Letters $\eta$  $\mu$  $\alpha$ $\theta$ $\pi$ $\beta$ $\gamma$ $\rho$$\delta$ $\phi$Fraction $\frac{a}{b}$Power $a^b$  $x^2$Subscript $a_b$Derivate $\frac{\partial y}{\partial t} $Vector $\vec{n}$Bold $\mathbf{n}$square root $\sqrt{x}$$\sqrt{x^2+\sqrt{y}}$ \qquad$e^{-\alpha t}$ \qquad$\surd[x^2+y^2]$ \qquadTo time differential $\dot{F}$$\overline{m+n}$%integral operator use \int to generate  sum operator use the \sum and the product operator use the \prod$\sum_{i=1}^{n}$ \qquad$\int_{0}^{\frac{\pi}{2}}$ \qquad$\prod_\epsilon$ \qquad$\hat{\alpha}$$\bar{\theta}$Matrix (lcr here means left, center or right for each column)\[\left[\begin{array}{lcr}a1 & b22 & c333 \\d444 & e555555 & f6\end{array}\right]\]Equations(here \& is the symbol for aligning different rows)\begin{align}&a+b=c\\&d=e+f+g\end{align}\[\left\{\begin{aligned}&a+b=c\\&d=e+f+g\end{aligned}\right.\]\end{document} 

插入图片( 图片和文档在同一个文件夹中)

\documentclass{article}    \usepackage{graphicx}  \begin{document}  \includegraphics[width=4.00in,height=3.00in]{figure1.jpg}  \end{document}

参考网址

一份不太简短的latex教程

0 0
原创粉丝点击