微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

微软pro 抖屏

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

An index gives readers a way to find important words easily in our document, but creating an index by hand is very tedious and time consuming. Thankfully you can automatically create an index table in Word.

索引为读者提供了一种在我们的文档中轻松查找重要单词的方法,但是手动创建索引非常繁琐且耗时。 幸运的是,您可以在Word中自动创建索引表。

Image by Ifijay

图片来自Ifijay

The common approach to create an index table in Word is to manually mark each word that we wish to index, but the other alternative is to use a concordance document to automatically index our master document, which is what we will cover in today’s article.

在Word中创建索引表的常用方法是手动标记要索引的每个单词,但另一种选择是使用一致性文档自动索引主文档,这将在今天的文章中介绍。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

生成索引 (Generating the Index)

Let’s start by creating a two column table in our concordance file. Write the words that you would like to be marked for indexing in the left column. Write the text that you would like to use in the master document’s index table in the right column.

让我们从在我们的一致性文件中创建一个两列表开始。 在左栏中写上要标记为索引的单词。 在右列的主文档的索引表中写入您要使用的文本。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Close the concordance file and open your master document’s reference tab to index our master document.

关闭一致性文件,然后打开主文档的参考标签以索引我们的主文档。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Click on the “AutoMark” button and choose the concordance document when Word prompts you to specify the AutoMark file.

当Word提示您指定自动标记文件时,单击“自动标记”按钮并选择一致性文档。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Right after you click the OK button you will see that Word creates some index entry fields in our document.

单击确定按钮后,您将立即看到Word在我们的文档中创建了一些索引输入字段。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

We can hide these fields by clicking the “Show/Hide Paragraph” button in the home tab.

我们可以通过单击主页选项卡中的“显示/隐藏段落”按钮来隐藏这些字段。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Go to the end of the master document and click the “Insert Index” button one more time and click the OK button this time to create the index.

转到主文档的末尾,再单击“插入索引”按钮一次,然后单击“确定”按钮以创建索引。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

That’s all we have on how to create an index table with a concordance file. Let’s take a closer look on how we can customize the index style.

这就是我们如何创建具有一致性文件的索引表的全部内容。 让我们仔细看看如何自定义索引样式。

在索引中创建交叉引用 (Creating Cross References in the Index)

Word allows us to create different type of index. Here we have an index with sub-entry that is particularly useful when we want to group a set of closely related concepts in our document.

Word允许我们创建不同类型的索引。 在这里,我们有一个带有子条目的索引,当我们要将文档中的一组紧密相关的概念分组时,该索引特别有用。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

The trick of creating a sub-entry is by separating the text in the right column of our concordance document table with a colon (:). Word will treat any words that come after the colon as a sub-entry in the index.

创建子条目的技巧是通过用冒号(:)分隔一致性文档表右栏中的文本。 Word将把冒号后面的所有单词视为索引中的子条目。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Another useful type of index is a cross reference index that usually comes in the form of “See also …”

索引的另一种有用类型是交叉引用索引,通常以“另请参阅……”的形式出现

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Unfortunately we can’t create cross references in our index table using a concordance file, so we have to manually edit the index field by adding “\t” after the indexed word followed by the cross referenced word.

不幸的是,我们无法使用一致性文件在索引表中创建交叉引用,因此我们必须通过在索引词后跟交叉引用词后添加“ \ t”来手动编辑索引字段。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

维护索引 (Maintaining the Index)

One of the challenges with maintaining an index in Word is that Word does not give us a button or menu that we can simply click to clear the index fields if we decide to redo our concordance file.

在Word中维护索引的挑战之一是,Word没有给我们提供按钮或菜单,如果我们决定重做我们的一致性文件,则只需单击即可清除索引字段。

We have to use a Visual Basic script to clear the index fields in our document. Most of you must be thinking “Visual Basic Script, I am not a programmer ! What is that ?”. Don’t worry it’s not as bad as it sounds. Just copy and paste this simple script written by the awesome guys at TechRepublic into Word’s Visual Basic editor and run it to clean your master document’s index fields.

我们必须使用Visual Basic脚本清除文档中的索引字段。 你们大多数人都在思考“ Visual Basic Sc​​ript,我不是程序员! 那是什么 ?”。 不用担心它并不像听起来那样糟糕。 只需将由TechRepublic出色的人编写的这个简单脚本复制并粘贴到Word的Visual Basic编辑器中,然后运行它以清理主文档的索引字段。

Sub DeleteIndexEntries()
Dim doc As Document
Dim fld As Field
Set doc = ActiveDocument
For Each fld In doc.Fields
fld.Select
If fld.Type = wdFieldIndexEntry Then
fld.Delete
End If
Next
Set fld = Nothing
Set doc = Nothing
End Sub

Sub DeleteIndexEntries()
Dim doc As Document
Dim fld As Field
Set doc = ActiveDocument
For Each fld In doc.Fields
fld.Select
If fld.Type = wdFieldIndexEntry Then
fld.Delete
End If
Next
Set fld = Nothing
Set doc = Nothing
End Sub

Open the Visual Basic editor by pressing Alt+F11 and place this script into the editor. Execute the script by clicking the “run button” to clean the master document’s index fields.

通过按Alt + F11打开Visual Basic编辑器,然后将此脚本放入编辑器。 通过单击“运行按钮”来执行脚本,以清理主文档的索引字段。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Your master document should no longer have any index fields. We can now re-index the master document and recreate the index table using the “Insert Index” menu.

您的主文档应该不再具有任何索引字段。 现在,我们可以使用“插入索引”菜单重新索引主文档并重新创建索引表。

应用不同的索引表格式 (Applying Different Index Table Formats)

Yes index is definitely useful for your reader, but most probably some of you are thinking, “Why does the index table look so boring. Can I change the way it looks to make it more appealing ?”. The answer is yes, index table does not have to look plain.

是的,索引绝对对您的读者有用,但您中的大多数人可能会认为:“为什么索引表看起来很无聊。 我可以改变外观使其更具吸引力吗?”。 答案是肯定的,索引表不必看起来很普通。

We can adjust the index table’s style by selecting the one of the available format to adjust the look and feel of the index table.

我们可以通过选择一种可用格式来调整索引表的外观来调整索引表的样式。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Here is an example on how the Classic index format looks like.

这是一个有关经典索引格式的示例。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

We can even apply our own style to the index table by choosing the “From Template” and clicking the “Modify” button.

我们甚至可以通过选择“来自模板”并单击“修改”按钮,将自己的样式应用于索引表。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Choose one of the available index styles and click the “Modify” button to make our own style.

选择一种可用的索引样式,然后单击“修改”按钮以创建我们自己的样式。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

We can adjust the index table’s font style.

我们可以调整索引表的字体样式。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

Gives the index table some borders, or numbering;

给索引表一些边界或编号;

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

… to give the index table a specific look and feel.

…为索引表赋予特定的外观。

微软pro 抖屏_如何使用Microsoft Word创建像Pro一样的索引表

That’s all we have for creating index table with Microsoft Word. Got any more great tips for document construction? Share your expertise in the comments.

这就是使用Microsoft Word创建索引表所需要的。 还有更多有关文档构建的重要提示吗? 在评论中分享您的专业知识。

翻译自: https://www.howtogeek.com/howto/35495/how-to-create-an-index-table-like-a-pro-with-microsoft-word/

微软pro 抖屏