auctex其他的都很强大
但不还不会用自动补齐,请问如何实现?比如打了 \doc 自动补上documentclass
打了begin自动列出一堆环境,谢谢
auctx如何自动补齐?
- yangcheng
- 帖子: 498
- 注册时间: 2005-09-27 18:24
- 来自: 杭州
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
CXCF
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
-
- 帖子: 109
- 注册时间: 2007-11-28 2:19
代码: 全选
;;=========hippie-expand补全=========
(global-set-key (kbd "C-=") 'hippie-expand) ;;定义快捷键,我用的 Ctrl加等于号
;;优先列表
(setq hippie-expand-try-functions-list
'(try-expand-dabbrev
try-expand-dabbrev-visible
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-complete-file-name-partially
try-complete-file-name
Try-expand-all-abbrevs
try-expand-list
try-expand-line
try-complete-lisp-symbol-partially
try-complete-lisp-symbol))
用来补全路径和文件名最方便了。
对于自动插入环境,用 C-c C-e.
LS的也是一种方法,不过好像是 C-c C-f。
然后按下列的键,可以输入对应的内容
代码: 全选
Font list: KEY TEXTFONT MATHFONT
C-a \mathcal{ }
C-b \textbf{ } \mathbf{ }
C-c \textsc{ }
C-e \emph{ }
C-f \textsf{ } \mathsf{ }
TAB \textit{ } \mathit{ }
RET \textmd{ }
C-n \textnormal{ } \mathnormal{ }
C-r \textrm{ } \mathrm{ }
C-s \textsl{ } \mathbb{ }
C-t \texttt{ } \mathtt{ }
C-u \textup{ }
C-d -- delete fontFont list: KEY TEXTFONT MATHFONT
再复杂一些的环境,比如表格,我都用 msf-abbrev.el 这个扩展。
- zhan
- 帖子: 1880
- 注册时间: 2005-08-15 0:04
- 来自: 南7技校
有一个简单的插件叫 cdlatex, 定义了一些缩写, 比如输入 sn 然后回车就得到 \section 这样的。这个插件搭配 auctex 比较方便,可以试下。
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
http://zhan.blog.ubuntu.org.cn
-
- 帖子: 322
- 注册时间: 2007-02-26 2:29
- 来自: 广东
LZ 所要求的功能都可以实现,比如输入 \begin{ 后自动补全为 \begin{}且光标跳回{}里面,当用 TAB 健时,就会弹出一栏选项提示你可以输入什么,至于 3 楼的各种字母输入,则有一个 math 下拉菜单,有各种字母可选,我是采用了法国人 Ivaldi 的 emacs.d.tgz 里面的配置,见 CTEX 论坛 http://bbs.ctex.org/viewthread.php?tid= ... t=%2Bcvgmt,至于它的原理以及单独如何分离出来配置,我还没搞懂。