
上QQ阅读APP看书,第一时间看更新
2.6 查找与替换
查找和替换功能可以帮助读者快速找到要查找的内容,将文本或文本格式替换为新的文本或格式。
2.6.1 给替换的结果添加特殊格式

想把上面文档中的“您”字,全部加粗,并且给文字设定为红色。(素材文件\ch02\2.6.1.docx)
打开【查找和替换】对话框,在【查找内容】栏中输入“您”,在【替换为】栏中也输入“您”。单击【更多】按钮,在展开的内容中,单击【格式】按钮。

在弹出的【格式】菜单中,单击【字体】,在弹出的【替换字体】对话框中,在【字形】栏中,选中“加粗”。单击【字体颜色】设置为“红色”,再单击【确定】按钮。

单击【全部替换】按钮,得到如下图所示的结果。

2.6.2 替换文本中的特殊格式

细心的你会发现,上面的文档中有很多“”,它们的存在严重影响了排版,现在的问题是如何把“
”全部改成“
栏,单击【更多】按钮,再单击【特殊格式】按钮。


在弹出的菜单中,单击【手动换行符】。
然后在【替换为】栏中输入“段落标记”。单击【全部替换】,得到如下图所示结果,原文中已替换6处。

2.6.3 去掉文本中多余的空格
先看下面这篇文档,发现里面有太多的空格,很混乱,如果想快速删除里面的空格,可以用“查找替换”来处理。(素材文件\ch02\2.6.3.docx)

打开【查找和替换】对话框,在【查找内容】栏中输入一个空格,在【替换为】栏中什么都不输。

然后,单击【全部替换】按钮,接着,文档就变成这样了……

2.6.4 去掉文本中多余的空行
你肯定有这样的经历,从网上下载了一篇不错的文章,可是,它里面有大量的空行,怎么去掉空行呢?(素材文件\ch02\2.6.4.docx)

打开【查找和替换】对话框,在【查找内容】栏中输入两个段落标记,在【替换为】栏中输入一个段落标记,然后单击【全部替换】按钮。

文档就变成了现在的样子。

怎么还有空行?因为有些地方有3个或者更多的段落标记,处理方法很简单,再来一次替换,直到满意。
