【原创】打造 Linux(ubuntu) 下的L…

来源:互联网 发布:五毛特效用什么软件 编辑:程序博客网 时间:2024/05/16 08:25
打造 Linux(ubuntu) 下的Latex集成环境。

---------------------------
一、概述
采用texlive + kile. 可以编辑中文。

sudo apt-get install texlive texlive-doc-en latex-cjk-chinese
sudo aptitude install -R kile

---------------------------

二、详论

1. 安装latex核心-texlive
   命令行输入:
sudo apt-get install texlive texlive-doc-en latex-cjk-chinese
   
  Notes:安装它所推荐的所有包!但不是建议的包。如此会安装如下的包(10.10下共36个包,311M解压后531M):
建议安装的软件包:
  auctex hbf-cns40-b5 hbf-jfs56ttf-arphic-bkai00mp ttf-arphic-bsmi00lp
  ttf-arphic-gbsn00lp ttf-arphic-gkai00mpttf-dejima-mincho ttf-kiloji
  ttf-baekmuk ttf-sazanami-gothicttf-sazanami-mincho ttf-unfonts-extra
  ttf-vlgothic debhelper perl-tk dvidvi fragmasterlatexmk xindy purifyeps
  psutils t1utils
下列【新】软件包将被安装:
  lacheck latex-beamer latex-cjk-chineselatex-cjk-chinese-arphic-bkai00mp
  latex-cjk-chinese-arphic-bsmi00lplatex-cjk-chinese-arphic-gbsn00lp
  latex-cjk-chinese-arphic-gkai00mplatex-cjk-common latex-cjk-xcjk
  latex-xcolor lmodern luatex pgf prosper ps2epstex-common texlive
  texlive-base texlive-binaries texlive-commontexlive-doc-base texlive-doc-en
  texlive-extra-utils texlive-font-utilstexlive-fonts-recommended
  texlive-fonts-recommended-doctexlive-generic-recommended texlive-latex-base
  texlive-latex-base-doctexlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatextexlive-pstricks
  texlive-pstricks-doc texlive-xetex tipa
升级了 0 个软件包,新安装了 36 个软件包,要卸载0 个软件包,有 0 个软件包未被升 级。
需要下载 311MB 的软件包。
解压缩后会消耗掉 531MB 的额外空间。

2. 安装 kile
   命令行输入:
sudo aptitude install -R kile
  Notes:不安装它所推荐的所有包
下列“新”软件包将被安装。
  kdebase-runtime{a} kdebase-runtime-data{a}kdelibs-bin{a} kdelibs5{a}
  kdelibs5-data{a} kile konsole{a} libattica0{a}libaudio2{a}
  libclucene0ldbl{a} libdbusmenu-qt2{a}libexiv2-6{a} libiodbc2{a}
  libmng1{a} libphonon4{a} libplasma3{a}libpolkit-qt-1-0{a} libqca2{a}
  libqt4-dbus{a} libqt4-designer{a}libqt4-network{a} libqt4-opengl{a}
  libqt4-qt3support{a} libqt4-script{a}libqt4-sql{a} libqt4-svg{a}
  libqt4-webkit{a} libqt4-xml{a}libqt4-xmlpatterns{a} libqtcore4{a}
  libqtgui4{a} libsoprano4{a} libssh-4{a}libstreamanalyzer0{a}
  libstreams0{a} libxcb-shape0{a} libxcb-shm0{a}libxcb-xv0{a} libxine1{a}
  libxine1-bin{a} libxine1-console{a}libxine1-misc-plugins{a}
  libxine1-x{a} oxygen-icon-theme{a}phonon-backend-xine{a}
  plasma-scriptengine-javascript{a}shared-desktop-ontologies{a}
  soprano-daemon{a}
下列软件包被“推荐”安装但是将“不会”被安装:
  asymptote context dblatex dvipng exiv2 icoutilsjabref kbibtex
  kubuntu-debug-installer latex2htmllibqt4-sql-mysql libqt4-sql-odbc
  libqt4-sql-psql libqt4-sql-sqlitelibqt4-sql-sqlite2 lilypond psutils
  pybliographer tex4ht texlive-metapost ttf-dejavuvirtuoso-nepomuk
0 个软件包被升级,新安装 48 个, 0 个将被删除,同时 0 个将不升级。
需要获取 61.1MB 的存档。 解包后将要使用215MB。

三、测试

编译如下代码

\documentclass[a4paper,10pt]{article}
\usepackage{CJK}
\AtBeginDocument{\begin{CJK}{UTF8}{gkai}\CJKindent}%楷体gkai、宋体gbsn
\AtEndDocument{\end{CJK}}

\begin{document}
\centerline{\bf This is The title}
hello, linux \LaTeX{}.
\[
\int_0^tf(t)d W_t
\]

大家好,我在linux下
\end{document}

 
原创粉丝点击