加载中
LaTeX is a markup language for describing a document. It can also be defined as a document preparation system. LaTeX is mainly used to create technical or scientific articles, papers, reports, books or PhD thesis.

There are number of LaTeX distributions you can install on Ubuntu. One such distribution is TeX Live.
  1. To install Tex Live LaTeX distribution on ubuntu use the following command.
    sudo apt-get install texlive-full 
  2. To edit LaTeX documents we need an editor. There are number of LaTeX editors you can find. I recommend Texmaker, a cross platform LaTeX editor. To install Texmaker on Ubuntu use following command.
    sudo apt-get install texmaker
  3. To open Texmaker on Ubuntu use following command.
    texmaker 
  4. Now Let's create a simple document using Texmaker. Click on File -> New and insert following lines in the blank document.
    \documentclass{article}  
    \begin{document}    
      Hello world!   
    \end{document}  
  5. Now save the document as a 'tex' file by clicking File -> Save. Compile the document clicking the arrow Quick Build.

You can learn more about LaTeX by refferring this link

LaTeX(  LATEX,音译“拉泰赫”)是一种基于TeX的排版系统,由 美国 计算机学家 莱斯利·兰伯特(Leslie Lamport)在20世纪80年代初期开发,利用这种格式,即使使用者没有排版和程序设计的知识也可以充分发挥由TeX所提供的强大功能,能在几天,甚至几小时内生成很多具有书籍质量的印刷品。 

你可以在 Ubuntu 安装很多 LaTeX 的分发版,其中一个是  TeX Live
  1. 使用下面命令可以在 Ubuntu 上安装 Tex Live
    1 sudo apt-get install texlive-full
  2. 要编辑 LaTeX 文档需要一个编辑器,你可以找到很多编辑器,这里我们推荐 Texmaker
    1 sudo apt-get install texmaker
  3. 在 Ubuntu 下执行下面命令可以打开 Texmaker 编辑器:
    1 texmaker
  4. 现在让我们用 Texmaker 创建一个简单的文档,点击 File -> New 然后在新文档中插入如下内容:
    1 \documentclass{article}
    2  
    3 \begin{document}
    4  
    5   Hello oschina!
    6  
    7 \end{document}
  5. 接下来使用 File -> Save 将文档保存为一个扩展名为 tex 的文件,然后点击 Quick Build 来编译文档:
返回顶部
顶部