环境Ubuntu 10.04(64)
Step1
sudo apt-get install texlive-full
Step2
sudo apt-get install texlive-base texlive-binaries texlive-common texlive-latex-base texlive-publishers texlive-music texlive-latex3 texlive-generic-recommended texlive-omega texlive-font-utils texlive-plain-extra texlive-formats-extra texlive-games texlive-metapost texlive-generic-extra texlive-pictures texlive-math-extra texlive-extra-utils texlive-latex-recommended texlive-bibtex-extra texlive-humanities texlive-fonts-recommended texlive-pstricks texlive-science texlive-fonts-extra-doc texlive-latex-base-doc texlive-doc-base texlive-latex-recommended-doc texlive-humanities-doc texlive-pstricks-doc texlive-science-doc texlive-metapost-doc texlive-pictures-doc texlive-latex-extra-doc texlive-publishers-doc texlive-fonts-recommended-doc texlive-doc-en texlive-lang-danish texlive-lang-ukenglish texlive-lang-german texlive-lang-french texlive-lang-greek feynmf tex4ht tex4ht-common texinfo tex-common libkpathsea5 libkpathsea-dev pgf dvipng latex-xft-fonts xfonts-mathml musixtex musixlyr latex-sanskrit latex-xcolor lacheck ps2eps latex-beamer cm-super cm-super-minimal context musixtex-slurps preview-latex-style prosper tipa lmodern lcdf-typetools
Step3 根据以上步骤,latex 的相关库已经安装完成
建立hello.tex 文件,内容如下:
\documentclass[12pt]{article}
\begin{document}
Hello world!
$Hello world!$ %math mode
\end{document}
保存为hello.tex
Step4 编译hello.tex
pdflatex hello.tex
5) 会在当前目录下生成三个文件hello.aux hello.log hello.pdf 文件
查看hello.pdf 文件,就可以看到latex已经帮助我们生成了我们想要的.pdf 文件。