---
title: "Ubuntu latex"
author: "wadefall"
date: "2014-01-16T12:37:25Z"
tags: []
categories: ["开源软件"]
slug: "ubuntu-latex"
draft: false
lastmod: "2014-01-16T14:11:06Z"
id: 2004885
url: "https://wadefall.iteye.com/blog/2004885"
---

```shell

sudo apt-get install texlive

sudo apt-get install texmaker  // gui editor

sudo apt-get install latex-cjk-all // for chinese

```



```java

(1) vim test.tex
      \documentclass{article}
      \begin{document}
      hello world
      \end{document}
(2) latex test.tex     // 编译
(3) xdvi test.dvi &     // 预览内容
(4) dvipdf test.dvi     // 转换成pdf

```