Atom + Texlive 配置 Latex 環境

Atom + Texlive 配置 Latex 環境

步驟1:

  • 安裝Texlive
    Texlive
    點擊 "Download" 下載,而後安裝,等待安裝完成便可

步驟2:

  • 安裝Atom主程序
  • 安裝Atom插件: 瀏覽器

    • Language Latex
      安裝好後只要是.tex後綴的代碼自動高亮,且有Latex代碼補全(基於snippet)app

    • Latex
      須要配置好環境的目錄,對應系統的目錄可參照 Path Config
      注意:必定要寫全,否則會出現沒法編譯的狀況
      Markdown
      Markdown
      每次保存的時候自動建立PDF
      Markdown 測試

步驟3:

  • 安裝SumatraPDF
    SumatraPDF
    用來實時查看PDF文檔(通常安裝在默認位置,這樣就不用配置Latex-Setting中的PDF瀏覽器路徑)

步驟4:

  • 打開Atom 進行體驗
    可寫部分Latex代碼進行測試ui

\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 ! \\atom

$\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} })$ \\ip

$F(x,y) = F_{X}(x)F_{Y}(y)$
\end{document}文檔

 

  • 保存爲.tex類型文件,而後編譯(快捷鍵 Ctrl + Alt + B 若是配置了Build on Save ,直接按 Ctrl + S 也能夠):
    Markdown
    輸出PDF如圖所示:
    Markdownget

相關文章
相關標籤/搜索