用atom寫LaTeX文檔

  1. 下載並安裝Tex Live: 下載頁面
  2. 下載並安裝atom:下載頁面
  3. 打開atom
    File -> Settings -> Install
    搜索並安裝:
    • language-latex
    • latex
    • pdf-view
  4. 新建文件,後綴名爲.tex,編碼爲UTF-8
  5. 測試:
\documentclass[UTF8]{article}
    \author {Author}
    \title {Title}
\usepackage{ctex}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
    \maketitle
    \section{First section} test1.
        \subsection{First subsection} test2.
            \subsubsection{First double subsection}
                \paragraph{Fist paragraph} test3.
                    \subparagraph{First subparagraph} test4.
        \subsection{Second subsection}
            \paragraph{段落} 中文測試。
    \\
    Hello World! \\ % This is comment
    Hello \LaTeX ! \\

    $\lim\limits_{n \rightarrow +\infty} P\lbrace\frac{\sum\limits_{i=1}{n}Xi - n\cdot EX}{ \sqrt{n \cdot DX} }  \leqslant x\rbrace = \Phi(x)$ \\

    $P\lbrace a<X<b \rbrace \approx \Phi(\frac{b - n\cdot EX}{\sqrt {n\cdot DX}}) - \Phi(\frac{a - n\cdot EX}{\sqrt{n\cdot DX} })$ \\

    $F(x,y) = F_{X}(x)F_{Y}(y)$
\end{document}
  1. 按Ctrl + Alt + B 生成PDF文檔。
    在atom裏右鍵PDF文檔,點Split Right。每當從新生成文檔,會更新預覽。

效果圖:
html

ps. Ctrl + \ 隱藏/展現左邊的目錄樹app

相關文章
相關標籤/搜索