Latex 安装 & Hello World


环境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 文件。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值