Tạo trang mục lục (Table of Contents)
Chuẩn bị
Như các ứng dụng soạn thảo văn bản khác, để tạo trang mục lục bạn phải xài paragraph style theo cấp. Ví dụ
- Chapter 1 --- heading 1
- item 1.1 ---- heading 2
- item 1.1.1 ---- heading 3
- item 1.1.2 ---- heading 3
- item 1.2 ---- heading 2
- item 1.1 ---- heading 2
Chúng ta sẽ sử dụng các style này để áp vào table of content
download file nguyên liệu
Chèn toc
- Click in your document where you want to create the table of contents.
- Choose Insert > Indexes and Tables > Indexes and Tables
- Trong hộp thoại Indexes/Tables: Style. Click
- Select "Table of Contents" in the Type box.
- Select any options that you want.
- Click OK.
Tuỳ chỉnh TOC
Sử dụng style riêng cho TOC
Open Office sẽ sử dụng style mặc định cho TOC. Nếu muốn sử dụng style riêng (không phải style Heading 1, 2, 3) thì kiểm Additional Styles > (...).
Trong danh sách style. Chọn Contents Heading, Content 1, Content 2... click >> or << button to define the outline level for the paragraph style.
Để thêm style vào danh sách. Chọn style trong bảng lệnh paragraph style. Mở hộp thoại Indexes kiểm chọn Additional Styles
To Update a Table of Contents
Chọn 1 trong 2
- Rclick lên table of contents > Update Index/Table.
- Tools > Update > All Indexes and Tables.
Defining Index or Table of Contents Entries
Nếu bạn muốn thêm 1 paragraph bất kỳ vào TOC (thay vì các paragraph style)
- Chọn đoạn text trong page.
- Chọn Insert - Indexes and Tables - Entry, and do one of the following:
- To change the text that appears in the index, type the text that you want in the Entry box. The text that you type here does not replace the selected text in the document.
- To add an index mark to similar words in your document, select Apply to all similar texts.
To add the entries to a custom index, click the New User-defined Index icon, enter the name of the index, and then click OK.
To Use a Custom Paragraph Style as a Table of Contents Entry
1. Choose Tools - Outline Numbering and click the Numbering tab.
2. Select the paragraph style that you want to include in your table of contents in the Paragraph Style box.
3. In the Level list, click the hierarchical level that you want to apply the paragraph style to.
4. Click OK. You can now apply the style to headings in your document and include them in your table of contents.
----------
Updating, Editing and Deleting Indexes and Tables of Contents
1. Place the cursor in the index or table of contents.
If you cannot place your cursor in the index or table of contents, choose OpenOffice - Preferences - OpenOffice Writer - Formatting Aids, and then select Enable in the Cursor in protected areas section.
2. Right-click and choose an editing option from the menu.
You can also make changes directly to an index or table of contents. Right-click in the index or table of contents, choose Edit Index/Table, click Index/Table tab, and then clear the Protected from manual changes check box.
---------
Formatting an Index or a Table of Contents
You can apply different paragraph styles, assign hyperlinks to entries, change the layout of indexes, and change the background color of indexes in the Insert Index dialog.
To Apply a Different Paragraph Style to an Index Level
1. Right-click in the index or table of contents, and then choose Edit Index/Table.
2. Click the Styles tab.
3. Click an index level in the Levels list.
4. Click the style that you want to apply in the Paragraph Style list.
5. Click the assign button <.
6. Click OK.
To Assign Hyperlinks to Entries in a Table of Contents
You can assign a cross-reference as a hyperlink to entries in a table of contents.
1. Right-click in the table of contents, and then choose Edit Index/Table.
2. Click the Entries tab.
3. In the Level list click the heading level that you want to assign hyperlinks to.
4. In the Structure area, click in the box in front of E#, and then click Hyperlink.
5. Click in the box behind the E, and then click Hyperlink.
6. Repeat for each heading level that you want to create hyperlinks for, or click the All button to apply the formatting to all levels.
--------------
Editing or Deleting Index and Table Entries
Index entries are inserted as fields into your document. To view fields in your document, choose View and ensure that Field Shadings is selected.
1. Place the cursor immediately in front of the index entry in your document.
2. Choose Edit - Index Entry, and do one of the following:
To change the entry, enter different text in the Entry box.
To remove the entry, click Delete.
To cycle through the index entries in your document, click the next or the previous arrows in the Edit Index Entry dialog.