ubuntu 安装emacs org mode 完美支持中文
2013-11-25 15:47
991 查看
1. ubuntu 下安装 texlive
sudo apt-get install texlive texlive-xetex texlive-latex-extra
sudo apt-get install latex-cjk-all
2.从emacs官网下载emacs24
3.下载emacs编译依赖环境
sudo apt-get install build-essential
sudo apt-get build-dep emacs23
4.进入emacs源码目录
./configure
make
sudo make install
5. 在emacs中更新org mode版本
M+x list-packages
找到org,大I,表示安装
6. 为org mode 输出pdf做设置,编辑~/.emacs文件,加入下面设置,注意你的org-mode版本,如果是刚更新过的org mode选用org mode 8.0那行代码。
7.此时可以先测试下org mode 是否可以输出pdf文件了
8.添加pdf输出中文支持
将C:/windows/fonts下你喜欢的字体拷贝到/usr/share/fonts/windows目录下(需首先创建windows目录)
然后将对应字体拷贝到该目录下(需使用管理员权限sudo执行,我拷贝的是常用的六种中文字体simsun.ttc 和sim开头的.ttf)
加载字库文件时需要有读权限
suod chmod 644 /usr/share/fonts/windows/*
9.生成ubuntu下的字库索引
cd /usr/share/fonts/windows
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
10.注销系统
11.查看是否生成了中文字体支持
fc-list :lang=zh
12.在你写file.org文件开头添加
13.emacs启动 test.org,编写测试文件,然后c-c c-e l p 测试,大功告成
sudo apt-get install texlive texlive-xetex texlive-latex-extra
sudo apt-get install latex-cjk-all
2.从emacs官网下载emacs24
3.下载emacs编译依赖环境
sudo apt-get install build-essential
sudo apt-get build-dep emacs23
4.进入emacs源码目录
./configure
make
sudo make install
5. 在emacs中更新org mode版本
M+x list-packages
找到org,大I,表示安装
6. 为org mode 输出pdf做设置,编辑~/.emacs文件,加入下面设置,注意你的org-mode版本,如果是刚更新过的org mode选用org mode 8.0那行代码。
;; org-mode < 8.0 (setq org-latex-to-pdf-process '("xelatex -interaction nonstopmode %f" "xelatex -interaction nonstopmode %f")) ;; org-mode 8.0 (setq org-latex-pdf-process '("xelatex -interaction nonstopmode %f" "xelatex -interaction nonstopmode %f"))
7.此时可以先测试下org mode 是否可以输出pdf文件了
8.添加pdf输出中文支持
将C:/windows/fonts下你喜欢的字体拷贝到/usr/share/fonts/windows目录下(需首先创建windows目录)
然后将对应字体拷贝到该目录下(需使用管理员权限sudo执行,我拷贝的是常用的六种中文字体simsun.ttc 和sim开头的.ttf)
加载字库文件时需要有读权限
suod chmod 644 /usr/share/fonts/windows/*
9.生成ubuntu下的字库索引
cd /usr/share/fonts/windows
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
10.注销系统
11.查看是否生成了中文字体支持
fc-list :lang=zh
12.在你写file.org文件开头添加
#+LATEX_HEADER: \usepackage{xeCJK} #+LATEX_HEADER: \setCJKmainfont{SimSun}
13.emacs启动 test.org,编写测试文件,然后c-c c-e l p 测试,大功告成
相关文章推荐
- ubuntu完美QQ,EVA的安装,支持收发文件,群等
- Ubuntu下安装latex (支持中文CJK环境)
- Ubuntu中文支持语言包安装
- 英文Ubuntu系统安装中文支持,中文…
- 解决Ubuntu(Linux)平台下Sublime Text 3 安装中文输入支持库后 开启gnome-terminal报错的问题
- Ubuntu14.04 下pycharm的安装并支持中文输入
- mac OS X 10.9.3 上emacs 24.1 org-mode8.26 输出中文pdf
- 英文Ubuntu系统安装中文支持,中文UTF-8
- Ubuntu 安装 texlive2013 及中文支持
- emacs安装,支持中文,配置等
- mac OS X 10.9.3 上emacs 24.1 org-mode8.26 利用beamer 输出中文ppt
- ubuntu 安装texlive2013 支持中文
- Ubuntu 安装 texlive2013 及中文支持
- Ubuntu安装中文支持
- 英文Ubuntu系统安装中文支持,中文UTF-8
- emacs orgmode 插入代码支持的类型
- Ubuntu14.04安装pycharm用于Python开发环境部署,并且支持pycharm使用中文输入
- Ubuntu 14.10 安装Sublime Text 支持中文输入法 Fcitx
- [分享]ubuntu 8.04和ubuntu 8.10安装雅黑字体(11月1日安装方法再度改进,完美支持fcitx)
- 小企鹅输入法 安装 设置 支持中文 for ubuntu 10.04