ubuntu 下安装 latex

run terminal

sudo apt-get install texlive auctex texlive-xetex

and extra packages for latex (texlive-latex-extra)

sudo apt-get install texlive-latex-extra


run emacs

C -x C -f

creat new file test.tex

\documentclass[12pt,a4paper]{article}
\usepackage{fontspec,xunicode,xltxtra}
\setmainfont{WenQuanYi Micro Hei}
\begin{document}
\title{测试}
\maketitle
\section{也是测试}
还是测试
\end{document}

choose the Texing option -->> use xetex engine

ps: command fc-list can check your system fonts

你可能感兴趣的:(File,测试,command,ubuntu,System,fonts)