全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
1246 3
2016-10-17
This is a really simple tip, but it saves a lot of dull work. In AUCTeX, you can mark some text and press C-c C-f C-e to put an \emph around it. Type C-c C-f C-h to see other options, divided into text and math modes.

But wait, there’s more! If you precede it with an argument (i.e., C-u), instead of marking up the region, AUCTeX replaces the most nested font command around the point with the given one (disregarding the region). This means that (if the point is marked with -!-), this:

复制代码

becomes this:

复制代码

after pressing C-c C-f C-e. Also, you can press C-u C-c C-f C-d and the nearest (again, in the sense of nesting) font command disappears altogether. Very handy, and I have to admit that I miss that a lot in Org-mode (even though Org’s markup wrt fonts is much lighter).

If you have your own font changing commands, like, say, \defterm (for the defined term, possibly defined by

复制代码

or something similar), you can add it to LaTeX-font-list and enjoy your own font-changing command on the C-c C-f ,,prefix’’. (It’s not really a prefix, since it just runs the TeX-font command, but that doesn’t matter now.)

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-10-17 15:01:09
沙发···········
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-10-17 15:07:36
谢谢分享~~~~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-10-17 21:08:31
oliyiyi 发表于 2016-10-17 10:58
This is a really simple tip, but it saves a lot of dull work. In AUCTeX, you can mark some text and  ...
谢谢楼主分享的资料不错哦!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群