版权声明:对于本博客所有原创文章,允许个人、教育和非商业目的使用,但务必保证文章的完整性且不作任何修改地以超链接形式注明原始作者、出处及本声明。
博客地址:http://blog.csdn.net/shuxiao9058
原始作者:季亚
第八章简章的文字排版和特效编辑
表8-1:制表位命令速查表
键盘操作 | 命令名称 | 动作 |
(无) | edit-tab-stops | 打开一个名为“*Tab Stops*”的编辑缓冲区以便改变制表位的设置情况 |
(无) | untabify | 把全部制表位都转换为对应个数的空格 |
(无) | tabify | 在不影响文本版面的情况下把3个及3个以上的空格视需要转换为制表位间隔 |
表8-2:缩进命令速查表
键盘操作 | 命令名称 | 动作 |
C-j | newline-and-indent | 移动到下一行并缩进使其与当前行有相同的缩进级别 |
(无) | paragraph-indent-text-mode | 第一行缩进且段落之间没有空行的一个主模式 |
(无) | paragraph-indent-minor-mode | 相当于文本缩进模式的副模式 |
(无) | fill-individual-paragraphs | 根据段落的缩进情况对它们进行段落重排 |
C-x Tab | indent-rigidly | 缩进一列;前面加上“C-u”或“M-n”以进行指定的列数缩进 |
C-M-\ | indent-region | 按第一行的缩进设置把文本块作整体的缩进 |
M-m | back-to-indentation | 把光标移动到文本行的第一个字符 |
C-M-o | split-line | 在光标位置处分拆文本行,并把它的后半截缩进到光标所在的那一列 |
(无) | increase-left-margin | 增加编辑缓冲区左缩进层次,默认为四个字符 |
(无) | decrease-left-margin | 减少编辑缓冲区左缩进层次,默认为四个字符 |
(无) | decrease-right-margin | 减少编辑缓冲区右缩进层次,默认为四个字符 |
(无) | increase-right-margin | 增加编辑缓冲区右缩进层次,默认为四个字符 |
C-x . | set-fill-prefix | 把左边界到光标位置之间的字符串设置为加在段落每一行之前的缩进前导字符串;在第一列输入这个命令,表示此后将不再插入缩进前导字符串 |
表8-3:居中命令速查表
键盘操作 | 命令名称 | 动作 |
M-s | center-line | 把光标所在的文本行居中 |
M-S | center-paragraph | 把光标所在的段落居中 |
(无) | center-region | 把当前定义的文本块居中 |
(无) | set-justification-center | 把选定的文本居中 |
表8-4:矩形编辑命令速查表
键盘操作 | 命令名称 | 动作 |
C-x r k | kill-rectangle | 删除一个矩形并把它保存起来 |
C-x r d | delete-rectangle | 删除一个矩形但不把它保存起来 |
C-x r y | yank-rectangle | 在光标位置插入最后一次删除的矩形 |
C-x r c | clear-rectangle | 使用空格清除矩形区域的内容,并且不保存它 |
C-x r o | open-rectangle | 在矩形区域里插入一个空白矩形 |
C-x r r r | copy-rectangle-to-register | 复制矩形区域到寄存区r(这时r是任何字符) |
C-x r i r | insert-register | 把保存在寄存区r里的矩形区域内容插入到当前位置(这时r是任何字符) |
(无) | delete-whitespace-rectangle | 如果一个矩形包含空白字符,将其删除,并缩小矩形 |
C-x r t string Enter | string-rectangle | 改变被标记的矩形,将其内容发放字符串(如果字符串比矩形太宽或太窄,尺寸将做相应的改变) |
(无) | string-insert-rectangle | 提示输入字符串,并插入矩形 |
表8-5:图形模式与文本模式的对比
键盘操作 | 文本模式 | 图形模式 | 图形模式下的等价命令 |
Enter | 插入一个空白行 | 把光标移动到下一行 | “C-o”组合键插入一个空白行 |
C-d | 删除字符并把其余文本左移 | 把字符替换为一个空格,不移动其余文本 | “C-c C-d”组合键相当于文本模式下的“C-d”组合键 |
Space | 把文本向右移,插入一个空格 | 把光标向右移,沿途经过的所有字符都将被替换为空格 | 无;请回到文本模式去插入空格a |
C-k | 删除当前行上的文本;按两次“C-k”组合键将删除这一行 | 删除当前行上的文本,但不删除这一行 | 删除某行需回到文本模式进行操作或者使用delete-rectangle命令 |
Tab | 插入制表符并把后续文本向右移 | 向右移动光标,但不影响沿途经过的文本 | 要想插入与一个制表位等价的空格,请回到文本模式进行操作 |
C-n | 移动到下一行 | 向下移动,但光标的列坐标保持不变 | (无) |
C-p | 移动到上一行 | 向上移动,但光标的列坐标保持不变 | (无) |
C-f | 向文件尾方向移动一个字符 | 向右移动一个字符 | (无) |
C-b | 向文件头方向移动一个字符 | 向左移动一个字符;到达行首后就不再移动 | (无) |
a.如果想插入的是一个空白块,就得使用open-rectangle之类的命令。具体用法请参考本章前面对这一命令的介绍。另外,如果想在行尾插入空格,就得使用“C-f”之类的组合键。
表8-6:图形模式编辑命令速查表
键盘操作 | 命令名称 | 动作 |
(无) | picture-modeoredit-picture | 进入图形模式 |
C-c C-c | picture-mode-exit | 退出图形模式,返回此前的编辑模式 |
C-c ^ | picture-movement-up | 把默认绘制方向的设置为上 |
C-c . | picture-movement-down | 把默认绘制方向的设置为下 |
C-c > | picture-movement-right | 把默认绘制方向的设置为右 |
C-c < | picture-movement-left | 把默认绘制方向的设置为左 |
C-c ` | picture-movement-nw | 把默认绘制方向的设置为左上 |
C-c ` | picture-movement-ne | 把默认绘制方向的设置为右上 |
C-c / | picture-movement-sw | 把默认绘制方向的设置为左下 |
C-c \ | picture-movement-se | 把默认绘制方向的设置为右下 |
C-c C-f | picture-motion | 沿默认绘制方向向前移动光标 |
C-c C-b | picture-motion-reverse | 沿默认绘制方向向后移动光标 |
C-f | picture-forward-column | 把光标向右移动一个字符 |
C-b | picture-backward-column | 把光标向左移动一个字符 |
C-n | picture-move-down | 把光标向下移动一个字符 |
C-p | picture-move-up | 把光标向上移动一个字符 |
C-d | picture-clear-column | 把光标下的字符转换为一个空格,不把其右侧的文本向左移 |
C-c C-d | delete-char | 删除光标下的字符,把其右侧的文本向左移 |
C-k | picture-clear-line | 删除当前行上的文本,但即使连续按两次也不会删除这一行 |
C-o | picture-open-line | 插入一个空白行 |
C-c C-wr | picture-clear-rectangle-to-register | 清除矩形区域的内容并把它保存到寄存区r里 |
C-u C-c C-wr | picture-clear-rectangle-to-register | 删除矩形区域并把它保存到寄存区r里 |
C-c C-xr | picture-yank-rectangle-from-register | 把保存在寄存区r里的矩形区域内容粘贴到到当前位置 |
C-c C-r | picture-draw-rectangle | 在当前区域周围绘制一个矩形 |
C-c C-y | picture-yank-rectangle | 粘贴矩形 |
C-c C-k | picture-clear-rectangle | 清除矩形 |
C-c Tab | picture-set-tab-stops | 设置制表位只在图形模式下适用 (“!”、“-”、 和“~”指默认制表位) |
M-Tab | picture-tab-search | 移动到下一个图形模式选项卡 |
表8-7:大纲模式命令速查表
键盘操作 | 命令名称 | 动作 |
(无) | outline-mode | 切换大纲模式 |
C-c C-n | outline-next-visible-heading | 移动到下一个标题 |
C-c C-p | outline-previous-visible-heading | 移动到上一个标题 |
C-c C-f | outline-forward-same-level | 移动到下一个同级的标题 |
C-c C-b | outline-backward-same-level | 移动到上一个同级的标题 |
C-c C-u | outline-up-heading | 移动到上一级别的标题层次 |
C-c C-t | hide-body | 隐藏全体正文行 |
C-c C-a | show-all | 显示被隐藏起来的所有东西 |
C-c C-q | hide-sublevels | 只显示第一级标题 |
C-c C-o | hide-other | 隐藏当前子树以外的所有文字和标题。显示第一级别标题 |
C-c @ | outline-mark-subtree | 标记当前标题和下级所有文字和标题 |
C-c C-^ | outline-promote | 提升当前标题一个级别 |
C-c C-v | outline-demote | 降低当前标题一个级别 |
C-c C-d | hide-subtree | 隐藏某标题的全体下级小标题及其相关正文 |
C-c C-c | hide-entry | 隐藏某标题的正文部分(不包括它的下级小标题和那些小标题的正文部分) |
C-c C-l | hide-leaves | 隐藏某标题的正文部分,同时隐藏它全体下级小标题的正文部分(只留下标题) |
C-c C-s | show-subtree | 显示某给定标题的下级的下级小标题和它的相关文本 |
C-c C-e | show-entry | 显示某给定标题的相关文本(不包括它的下级小标题及它们的正文部分) |
C-c C-k | show-branches | 显示某标题的正文及全体下级小标题的全部正文 |
C-c Tab | show-children | 显示某标题的下一级小标题(不包括正文文本) |
第三版新增内容
表8-8:绘图模式编辑命令速查表
键盘操作 | 命令名称 | 动作 |
(无) | artist-mode | 进入绘图模式 |
C-c C-c | artist-mode-off | 退出绘图模式,返回此前的编辑模式 |
C-f | artist-forward-char | 向右移动一个字符(如果在一行的末尾,就在当前行中添加字符) |
C-b | artist-backward-char | 向左移动一个字符(如果在一行的开始,就什么事都不做) |
C-n | artist-next-line | 下移一列(如果在缓冲区的末尾,就添加新行到当前缓冲区) |
C-p | artist-previous-line | 上移一列(如果在缓冲区的开始,就什么事都不做) |
C-c C-a C-o或按鼠标中键 | artist-select-operation | 选择一个操作(按“TAB”键显示操作清单) |
C-c C-a f` | artist-select-op-flood-fill | 选择填充操作 |
C-c C-a C-k | artist-select-op-cut-rectangle | 在某一区域周围绘制一个矩形,然后剪切之 |
C-c C-a M-w | artist-select-op-copy-rectangle | 在某一区域周围绘制一个矩形,然后复制之 |
C-c C-a C-y | artist-select-op-paste | 粘贴你所复制的,不管是不是使用鼠标操作的 |
C-c C-a v | artist-select-op-vaporize-line | 清除所选择的一条线(文字行,而不是文件中的一行) |
C-c C-a C-d | artist-select-op-erase-char | 选择擦除操作(鼠标将是清除器) |
C-c C-a S | artist-select-op-spray-can | 选择油漆桶操作 |
C-c C-a e | artist-select-op-ellipse | 绘制椭圆 |
C-c C-a p | artist-select-op-poly-line | 绘制折线 |
C-c C-a r | artist-select-op-rectangle | 绘制矩形 |
C-c C-a l | artist-select-op-line | 绘制直线 |
C-c C-a C-r | artist-toggle-rubber-banding | 如果开启(默认),当拉伸图形时显示形状;否则(没有开启),将显示端点 |
C-c C-a C-l | artist-select-line-char | 选择画线时所使用的字符(默认是“-”) |
C-c C-a C-f | artist-select-fill-char | 选择字符来填充形状(默认是空格) |
第九章用Emacs设置排版标记
表9-1:各种标记模式下的注释
如果在下列模式里敲入“M-;” | Emacs将插入 |
HTML模式 | <!-- --> |
HTML helper模式 | <!-- --> |
SGML模式 | <!-- --> |
nxml模式 | <!-- --> |
psgml模式 | <!-- --> |
LaTeX模式 | %% (在空行上) % (在有内容的行上) |
表9-2:nroff配对模式支持的配对命令组
起始标记 | 收尾标记 |
|
.(b | .)b | me宏定义包 |
.(l | .)l | me宏定义包 |
.(c | .)c | me宏定义包 |
.(x | .)x | me宏定义包 |
.(z | .)z | me宏定义包 |
.(d | .)d | me宏定义包 |
.(q | .)q | me宏定义包 |
.(f | .)f | me宏定义包 |
.LG | .NL | ms宏定义包 |
.LD | .DE | ms宏定义包 |
.CD | .DE | ms宏定义包 |
.BD | .DE | ms宏定义包 |
.DS | .DE | ms宏定义包 |
.DF | .DE | ms宏定义包 |
.FS | .FE | ms, mm宏定义包 |
.KS | .KE | ms宏定义包 |
.KF | .KE | ms宏定义包 |
.LB | .LE | mm宏定义包 |
.AL | .LE | mm宏定义包 |
.BL | .LE | mm宏定义包 |
.DL | .LE | mm宏定义包 |
.ML | .LE | mm宏定义包 |
.RL | .LE | mm宏定义包 |
.VL | .LE | mm宏定义包 |
.RS | .RE | ms宏定义包 |
.TS | .TE | tbl预处理器 |
.EQ | .EN | eqn预处理器 |
.PS | .PE | pic预处理器 |
.BS | .BE | mm宏定义包 |
.na | .ad b | torff指令 |
.nf | .fi | torff指令 |
.de | .. | torff指令 |
表9-3:nroff模式命令速查表
键盘操作 | 命令名称 | 功能 |
(无) | nroff-mode | 进入nroff模式 |
ESC n | forward-text-line | 把光标移动到下一个文本行 |
ESC p | backward-text-line | 把光标移动到上一个文本行 |
ESC ? | cout-text-lines | 统计文本块中的文本行数 |
(无) | electric-nroff-mode | 进入一个副编辑模式。在这个模式里,输入必须配对出现的nroff命令组中的第一个,按“C-j”组合键,Emacs就会自动插入该配对命令组中的第二个命令 |
C-j | electric-nroff-newline | 只能用在nroff配对模式里,自动插入一组必须配对出现的troff宏定义标记中的第二个 |
ESC ; | indent-for-comment | 在文本里插入一个注释标记 |
表9-4:TEX和LATEX命令速查表
键盘操作 | 命令名称 | 功能 |
(无) | tex-mode | 根据文件内容进入TEX模式或LATEX模式 |
(无) | plain-tex-mode | 进入TEX模式 |
(无) | latex-mode | 进入LATEX模式 |
C-j | tex-terminate-paragraph | 插入两个硬回车(标准的段落结束标记),并检查段落的语法 |
C-c { | tex-insert-braces | 插入两个花括号,然后把光标放在它们中间 |
C-c } | up-list | 插入光标在两个花括号中间,就把光标移到紧跟右括号的后面 |
(无) | tex-validate-buffer | 检查编辑缓冲区有无语法错误 |
(无) | tex-validate-region | 检查文本块有无语法错误 |
C-c C-f | tex-file | 保存当前文件,然后对其进行TEX或LATEX排版处理 |
C-c C-b | tex-buffer | 对编辑缓冲区进行TEX或LATEX排版处理 |
C-c C-l | tex-recenter-output-buffer | 把排版信息画面显示在屏幕上,(至少)会显示最后一条出错信息 |
C-c C-k | tex-kill-job | 中断TEX或LATEX排版处理工作 |
C-c C-p | tex-print | 打印TEX或LATEX的排版输出 |
C-c C-q | tex-show-print-queue | 查看打印队列 |
C-c C-e | latex-close-block | 只能用在LATEX模式里,自动插入某个命令组中的第二个命令 |
(无) | tex-close-latex-block | 提供关闭元素命令对 |
C-c Tab` | tex-bibtex-file | 对编辑缓冲区进行BIBTEX排版处理(一个自动创建目录索引的系统) |
C-c C-v | tex-view | 查看DVI输出 |
(无) | tex-alt-print | 使用自定义变量“tex-alt-dvi-print-command”指定的打印机打印.dvi输出文件 |
C-c C-o | latex-insert-block | 插入块(提示输入块的名称和选项) |
C-c C-u | tex-goto-last-unclosed-latex-block | 向后查找文件未闭合块,并将光标移动最近的未闭合块 |
M-Enter | latex-insert-item | 插入“\”项目 |
(无) | latex-split-block | 插入结束到当前块,开始到新块 |
" | tex-insert-quote | 插入的TeX风格的引号 |
表9-5:Html-helper模式命令速查表
键盘操作 | 命令名称 | 动作 |
C-u | universal-argument | 当加在其他标记命令的前面时,把标签插入到文本块的两端 |
M-Tab | tempo-complete-tag | 补足当前标签 |
C-c C-z v | browse-url-of-file | 在默认浏览器中显示该文件 |
C-c C-z u | browse-url-default-browser | 在默认浏览器中打开光标位置处超链接的URL地址 |
C-c M-h 1 | tempo-template-html-header-1 | 插入<h1></h1>标签 |
C C-c M-h 2 | tempo-template-html-header-2 | 插入<h2></h2>标签 |
C-c M-h 3 | tempo-template-html-header-3 | 插入<h3></h3>标签 |
C-c M-h 4 | tempo-template-html-header-4 | 插入<h4></h4>标签 |
C-c M-h 5 | tempo-template-html-header-5 | 插入<h5></h5>标签 |
C-c M-h 6 | tempo-template-html-header-6 | 插入<h6></h6>标签 |
M-Enter | tempo-template-html-paragraph | 插入<p></p>标签 |
C-c C-a l | tempo-template-html-hyperlink | 插入<a href=""></a>标签 |
C-c C-a n | tempo-template-html-link-target | 插入<a name=""></a>标签 |
C-c Enter | tempo-template-html-line-break | 插入一个换行符“<br>” |
C-c = | tempo-template-html-horizontal-line | 插入一个换行符水平标尺“<hr>” |
C-c C-z t | html-helper-insert-timestamp-delimiter-at-point | 插入时间戳分隔符 |
C-c C-h t | tempo-template-html-title | 插入<title></title>标签 |
C-c Tab a | tempo-template-html-image | 插入<img src="">标签 |
C-c C-l u | tempo-template-html-unordered-list | 插入<ul><li></li></ul>标签 |
C-c C-l o | tempo-template-html-ordered-list | 插入<ol><li></li></ol>标签 |
C-c C-l t | tempo-template-html-definition-item | 插入<dt><dd>标签 |
C-c C-l l | tempo-template-html-item | 插入<li></li>标签 |
C-c C-l d | tempo-template-html-definition-list | 插入<dl><dt><dd></dl>标签 |
C-c C-l m | tempo-template-html-menu-list | 插入<menu><li></li></menu>标签 |
C-c C-l r | tempo-template-html-directorylist | 插入<dir><li></li></dir>标签 |
C-c C-l i | html-helper-smart-insert-item | 插入<li></li>标签 |
C-c C-f z | tempo-template-html-reset-form | 插入<input type="RESET">标签 |
C-c C-f b | tempo-template-html-button | 插入<input type="BUTTON">标签 |
C-c C-f m | tempo-template-html- submit-form | 插入<input type="SUBMIT">标签 |
C-c C-f s | tempo-template-html-selections | 插入<select><option></select>标签 |
C-c C-f o | tempo-template-html-option | 插入<option>标签 |
C-c C-f v | tempo-template-html-option-with-value | 插入<option value="">标签 |
C-c C-f i | tempo-template-html-input-image-field | 插入<input type="IMAGE">标签 |
C-c C-f r | tempo-template-html-input-radiobutton | 插入<input type="RADIO">标签 |
C-c C-f c | tempo-template-html-checkbox | 插入<input type="CHECKBOX">标签 |
C-c C-f p | tempo-template-html-text-area | 插入<textarea></textarea>标签 |
C-c C-f f | tempo-template-html-form | 插入<form></form>标签 |
C-c C-f t ` | tempo-template-html-text-field | 插入<input type="TEXT">标签 |
C-c C-f h | tempo-template-html-hidden-field | 插入<input type="HIDDEN">标签 |
C-c M-l s | tempo-template-html-strong | 插入<strong></strong>标签 |
C-c M-l e | tempo-template-html-emphasized | 插入<em></em>标签 |
C-c M-l b | tempo-template-html-blockquote | 插入<blockquote></blockquote>标签 |
C-c M-l p | tempo-template-html-preformatted | 插入<pre></pre>标签 |
C-c C-p s | tempo-template-html-strikethru | 插入<s></s>标签 |
C-c C-p f | tempo-template-html-fixed | 插入<tt></tt>标签 |
C-c C-p u | tempo-template-html-underline | 插入<u></u>标签 |
C-c C-p i | tempo-template-html-italic | 插入<i></i>标签 |
C-c C-p b | tempo-template-html-bold | 插入<b></b>标签 |
C-c C-p c | tempo-template-html-center | 插入<center></center>标签 |
C-c C-p l | tempo-template-html-spanning-class | 插入<span class=""></span>标签 |
C-c C-p 5 | tempo-template-html-spanning-style | 插入<span style=""></span>标签 |
C-c C-s a | tempo-template-html-address | 插入<address></address>标签 |
C-c M-l d | tempo-template-html-definition | 插入<dfn></dfn>标签 |
C-c M-l v | tempo-template-html-variable | 插入<var></var>标签 |
C-c M-l k | tempo-template-html-keyboard | 插入<kbd></kbd>标签 |
C-c M-l r | tempo-template-html-citation | 插入<cite></cite>标签 |
C-c M-l x | tempo-template-html-sample | 插入<samp></samp>标签 |
C-c M-l c | tempo-template-html-code | 插入<code></code>标签 |
C-c C-h b | tempo-template-html-base | 插入<base href="">标签 |
C-c C-h l | tempo-template-html-link | 插入<link href="">标签 |
C-c C-h m | tempo-template-html-meta-name | 插入<meta content="">标签 |
C-c C-h n | tempo-template-html-nextid | 插入<nextid>标签 |
C-c C-h i | tempo-template-html-isindex | 插入<isindex>标签 |
C-c C-h B | tempo-template-html-body | 插入<body></body>标签 |
C-c C-h H | tempo-template-html-head | 插入<head></head>标签 |
C-c C-t t | tempo-template-html-table | 插入<table></table>标签 |
C-c C-t p | tempo-template-html-html-table-caption | 插入<caption></caption>标签 |
C-c C-t d | tempo-template-html-table-data | 插入<TD></TD>标签 |
C-c C-t h | tempo-template-html-table-header | 插入<TH></TH>标签 |
C-c C-t r | tempo-template-html-table-row | 插入<TR></TR>标签 |
第三版新增内容
表9-6:HTMLHelper模式插入字符实体速查表
|
|
| 网页上呈现 |
C-c > | tempo-template-html-greater-than | > | > |
C-c < | tempo-template-html-less-than | < | < |
C-c & | tempo-template-html-ampersand | & | & |
C-c u | tempo-template-html-u`-(&ù) | ù | ù |
C-c i | tempo-template-html-i`-(&ì) | ì | ì |
C-c o | tempo-template-html-o`-(&ò) | ò | ò |
C-c E | tempo-template-html-e'-(&é) | é | é |
C-c e | tempo-template-html-e`-(&è) | è | è |
C-c a | tempo-template-html-a`-(&à) | à | à |
C-c SPC | tempo-template-html-nonbreaking-space | | nonbreaking space |
C-c - | tempo-template-html-soft-hyphen | ­ | soft hyphen |
C-c @ | tempo-template-html-copyright | © | © |
C-c $ | tempo-template-html-registered | ® | ® |
C-c " | tempo-template-html-quotation-mark | " | " |
C-c # | tempo-template-html-ascii-code | Enter the 3-digit code for the desired character | specified character |
表9-7:字符编码对照表
C-x 8前缀 按键操作 |
|
|
|
C-x 8 " | " | ´ | ´ |
C-x 8 ' a | ' a | á | á |
C-x 8 'A | 'A | Á | Á |
C-x 8 ' e | ' e | é | é |
C-x 8 ' E | ' E | É | É |
C-x 8 ' i | ' i | í | í |
C-x 8 ' I | ' I | Í | Í |
C-x 8 ' o | ' o | ó | ó |
C-x 8 ' O | ' O | Ó | Ó |
C-x 8 ' u | ' u | ú | ú |
C-x 8 ' U | ' U | Ú | Ú |
C-x 8 ' y | ' y | ý |
|
C-x 8 ' Y | ' Y | Ý |
|
C-x 8 ` a | ` a | à | à |
C-x 8 ` A | ` A | À | À |
C-x 8 ` e | ` e | è | è |
C-x 8 ` E | ` E | È | È |
C-x 8 ` i | ` i | ì | ì |
C-x 8 ` I | ` I | Ì | Ì |
C-x 8 ` o | ` o | ò | ò |
C-x 8 ` O | ` O | Ò | Ò |
C-x 8 ` u | ` u | ù | ù |
C-x 8 ` U | ` U | Ù |
|
C-x 8 ^ a | ^ a | â | â |
C-x 8 ^ A | ^ A | Â | Â |
C-x 8 ^ e | ^ e | ê | ê |
C-x 8 ^ E | ^ E | Ê | Ê |
C-x 8 ^ i | ^ i | î | î |
C-x 8 ^ I | ^ I | Î | Î |
C-x 8 ^ o | ^ o | ô | ô |
C-x 8 ^ O | ^ O | Ô | Ô |
C-x 8 ^ u | ^ u | û | û |
C-x 8 ^ U | ^ U | Û | Û |
C-x 8 " " | " " | ¨ | ¨ |
C-x 8 " a | " a | ä | ä |
C-x 8 " A | " A | Ä | Ä |
C-x 8 " e | " e | ë | ë |
C-x 8 " E | " E | Ë | Ë |
C-x 8 " i | " i | ï | ï |
C-x 8 " I | " I | Ï | Ï |
C-x 8 " o | " o | ö | ö |
C-x 8 " O | " O | Ö | Ö |
C-x 8 " u | " u | ü | ü |
C-x 8 " U | " U | Ü | Ü |
C-x 8 " s | " s | ß | ß |
C-x 8 " y | " y | ÿ | ÿ |
C-x 8 " Y | " Y | Ÿ |
|
C-x 8 ~ ~ | ¬ | ¬ | |
C-x 8 ~ a | ~ a | ã | ã |
C-x 8 ~ A | ~ A | Ã | Ã |
C-x 8 ~ d | ~ d | ð |
|
C-x 8 ~ D | ~ D | Ð |
|
C-x 8 ~ n | ~ n | ñ | ñ |
C-x 8 ~ N | ~ N | Ñ | Ñ |
C-x 8 ~ o | ~ o | õ | õ |
C-x 8 ~ O | ~ O | Õ | Õ |
C-x 8 ~ t | ~ t | þ |
|
C-x 8 ~ T | ~ T | Þ |
|
C-x 8 / / | ÷ | ÷ | |
C-x 8 o | / / | ˚ | ° |
C-x 8 / a | / a | å | å |
C-x 8 / A | / A | Å | Å |
C-x 8 / e | / e | æ | æ |
C-x 8 / E | / E | Æ | Æ |
C-x 8 / o | / o | ø | ø |
C-x 8 / O | / O | Ø | Ø |
C-x 8 , , | ~~ | ¸ | ¸ |
C-x 8 , c | ~c | ç | ç |
C-x 8 , C | ~C | Ç | Ç |
表9-8:标点符号编码对照表
C-x 8前缀 按键操作 | 符号实体 | 网页上呈现字符 |
C-x 8 1 / 2 | ½ | 1/2 |
C-x 8 1 / 4 | ¼ | 1/4 |
C-x 8 3 / 4 | ¾ | 3/4 |
C-x 8 SPC | | nonbreaking space |
C-x8 ! | ¡ | ¡ |
C-x 8 $ | ¤ | ¤ |
C-x 8 + | ± | ± |
C-x 8 - | ­ | soft hyphen |
C-x8 . | · | · |
C-x 8 < | « | « |
C-x 8 = | ¯ | ¯ |
C-x 8 > | » | » |
C-x8 ? | ¿ | ¿ |
C-x 8 | | ¦ | | |
C-x 8 c | ¢ | ¢ |
C-x 8 C | © | © |
C-x 8 L | £ | £ |
C-x 8 P | ¶ | ¶ |
C-x 8 R | ® | ® |
C-x 8 S | § | § |
C-x 8 u | µ | µ |
C-x 8 x | × | x |
C-x 8 Y | ¥ | ¥ |
C-x 8 ^ 1 | ¹ | 1 |
C-x 8 ^ 2 | ² | 2 |
C-x 8 ^ 3 | ³ | 3 |
C-x 8 _ a | ª | a |
C-x 8 _ o | º | o |
表9-9:HTML模式插入字符实体速查表
|
|
| 网页上呈现 |
C-c > | tempo-template-html-greater-than | > | > |
C-c < | tempo-template-html-less-than | < | < |
C-c & | tempo-template-html-ampersand | & | & |
C-c u | tempo-template-html-u`-(&ù) | ù | ù |
C-c i | tempo-template-html-i`-(&ì) | ì | ì |
C-c o | tempo-template-html-o`-(&ò) | ò | ò |
C-c E | tempo-template-html-e'-(&é) | é | é |
C-c e | tempo-template-html-e`-(&è) | è | è |
C-c a | tempo-template-html-a`-(&à) | à | à |
C-c SPC | tempo-template-html-nonbreaking-space | | nonbreaking space |
C-c - | tempo-template-html-soft-hyphen | ­ | soft hyphen |
C-c @ | tempo-template-html-copyright | © | © |
C-c $ | tempo-template-html-registered | ® | ® |
C-c " | tempo-template-html-quotation-mark | " | " |
C-c # | tempo-template-html-ascii-code | Enter the 3-digit code for the desired character | specified character |
表9-10:HTML模式命令速查表
键盘操作 | 命令名称 | 动作 |
(无) | html-mode | 进入HTML模式 |
C-c C-tSGMLInsert Tag | sgml-tag | 插入一个标签,提示输入属性。如果输入html作为标签名称,则插入一个html模板文件 |
C-c TabSGMLToggle Tag Visibility | sgml-tags-invisible | 在文件中隐藏/显示标签 |
C-c C-vSGMLView Buffer Contents | browse-url-of-buffer | 在默认浏览器中显示该编辑缓冲区 |
C-c C-s | html-autoview- mode | 如果这个模式开启(这个命令可以切换),当文件在Emacs保存的时候,会自动在浏览器中显示 |
C-c 8 | sgml-name-8bit-mode | 如果打开,特定击键操作被捕捉插入Latin-1字符并被适当的实体。详情请参阅“在HTML模式下的字符编码”。 |
C-c C-fSGMLForward Tag | sgml-skip-tag-forward | 向前移动到同一级别的下一个标签 |
C-c C-bSGMLBackward Tag | sgml-skip-tag-backward | 向后移动到同一级别的下一个标签 |
C-c Del或C-c C-dSGMLDelete Tag | sgml-delete-tag | 将光标放在标签上或标签前,删除单个标签或成对删除标签 |
C-c 1 | html-headline-1 | 插入一个<h1>标签 |
C-c 2 | html-headline-2 | 插入一个<h2>标签 |
C-c 3 | html-headline-3 | 插入一个<h3>标签 |
C-c 4 | html-headline-4 | 插入一个<h4>标签 |
C-c 5 | html-headline-5 | 插入一个<h5>标签 |
C-c 6 | html-headline-6 | 插入一个<h6>(用于脚注文本)标签 |
C-c Enter | html-paragraph | 插入一个 <p>标签 |
C-c C-c hHTMLHref Anchor | html-href-anchor | 插入一个超链接 |
C-c C-c nHTMLName Anchor | html-name-anchor | 插入一个锚,这样可以创建链接到页面的锚定部分 |
C-c C-c u HTMLUnordered List | html-unordered-list | 创建一个无序列表 |
C-c C-c o HTMLOrdered List | html-ordered-list | 创建一个编号的列表 |
C-c C-c lHTMLList Item | html-list-item | 添加一个项目至列表 |
C-c C-c iHTMLImage | html-image | 插入 <img src="">标签 ,并且在光标放置输入图片的文件名 |
C-c C-jHTMLLine Break | html-line | 插入一个换行符 (<br>). |
C-c C-c - HTMLHorizontal Rule | html-horizontal-rule | 插入一个水平标尺(<hr>). |
C-c C-c r | html-radio-buttons | 插入一组单选按钮。Emacs提示输入组的名字、值、是否应该进行检查,以及相关的文本。按“C-G”组合键完成组的创建. |
C-c C-c c HTMLCheckboxes | html-checkboxes | 插入一组复选框。 Emacs提示输入组的名字、值、是否应该进行检查,以及相关的文本。按“C-G”组合键完成组的创建. |
C-c ?SGMLDescribe Tag | sgml-tag-help | 在光标所在位置提供简短的标签文字描述 |
第十章 Emacs中的宏
表10-1:与宏有关的Emacs命令
|
第十一章对Emacs进行定制
表11-1:特殊字符的表达记号
特殊字符表达记号 | 定义情况 |
\C-x | C-x (其中“x”是任意字符) |
\C-[或\e | Esc;转义符 |
\M | Meta |
\C-j或\n | Newline;转行符 |
\C-m或\r | Enter;回车符 |
\C-i或\t | Tab;制表符 |
表11-2:富模式下字体命令
命令 | 被选择的字体 |
M-g d | 默认 |
M-g b | 粗体 |
M-g i | 斜体 |
M-g l | 粗斜体 |
M-g u | 下划线 |
M-g o | 其他 (允许你通过字体名称选择字体) |
第三版新增内容
表11-3:特定键在ELISP中的命名
ELisp中的命名 | 键 | ELisp中的命名 | 键 | |
DEL或backspace | Backspace | kp-0 .. kp-9 | 键盘数字键0-9 | |
delete | Delete键 | kp-enter | 数字键盘上的回车键 | |
down | 向下方向键 | left | 向左方向键 | |
end | End按 | next | Page Down | |
f1 .. f35 | 功能按键F1-F35 | prior | Page Up | |
home | Home键 | right | 向右方向键 | |
help | Help键 | up | 向上方向键 |
备注:本文大部分内容摘自学习GNU Emacs(第二版),文中紫色部分摘自Learning GNU Emacs, 3rd Edition,并由本人翻译整理而得。