在Archlinux上安装Texlive2008

需要安装的软件包:

sudo pacman -S texlive-bin texlive-core texlive-langcjk texlive-fontsextra

arch的软件仓库里的texlive升级到了2008,中文字体应该不是问题,使用xelatex生成中文,可以使用系统字体。

下面是我的测试文档 test.tex

———————————–

\documentclass{article}
\usepackage{hyperref}
\usepackage{fontspec,xunicode}
\usepackage{amsmath}

\setmainfont{文泉驿正黑}

\XeTeXlinebreaklocale “zh”

\begin{document}

\title{我的第一篇latex练习}
\author{richrat}
\maketitle

 \tableofcontents

\section{Today}
今天(\today)成功在Archlinux上装上了Texlive2008,现在正在测试中文的输入。

\section{数学公式}

$a^2+b^2=c^2$

\end{document}

—————————————

使用命令:

xelatex test.tex

就可以生成test.pdf,显示效果很不错。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>