1. 程式人生 > >Latex安裝和示例

Latex安裝和示例

1.Latex下載



2.文件示例

在編輯視窗輸入內容:

\documentclass{article}
\begin{document}
My first TEX doc!
\end{document}

在工具欄“垃圾桶”和“B”圖示之間有一個編譯按鈕和一個下拉框,在下拉框中選擇TEX文件型別,這裡我選擇“Latex”型別,選擇後再點選編譯按鈕進行編譯,新文件會提示輸入文件名字和文件儲存型別,一般選擇“UTF-8”,點選“儲存”按鈕後開始進行編譯!如果編譯成功,會在控制檯看到如下提示:
Command Line:   latex.exe --src --interaction=errorstopmode --synctex=1 "test.tex"
Startup Folder: D:\LatexDocs

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(D:\LatexDocs\test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for loaded.
(C:\CTEX\MiKTeX\tex\latex\base\article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(C:\CTEX\MiKTeX\tex\latex\base\size10.clo)) (D:\LatexDocs\test.aux) [1]
(D:\LatexDocs\test.aux) )
Output written on test.dvi (1 page, 264 bytes).
SyncTeX written on test.synctex.gz.
Transcript written on test.log.


_____________________________________________________________________

 LaTeX Compilation Report (Pages: 1)

 Errors: 0   Warnings: 0   Bad Boxes: 0  
_____________________________________________________________________

點選工具欄的放大鏡按鈕,就可以檢視剛才生成的PDF文件!工具欄圖示如下: