Document (Fields)

目录
索引 🔎︎

# 文档

字段可用于插入有关当前文档的内容，如: 文件名、模板、统计、用户数据、日期与时间。

要访问此命令...

选择「插入 - 字段 - 更多字段 - 文档」选项卡

To insert a field in your document, first select the field Type, then click in the Select list, to choose which information item should be inserted, then click Insert.

## 类型

Lists the available field types.

## 选择

Lists what information can be inserted for a selected field type.

### Available field Types and Select lists

类型 | Select list
作者 | Name or initials of current user (as entered in LibreOffice - PreferencesTools - Options - LibreOffice - User Data).
章 | 插入章节编号和/或章名称。
日期 | Inserts the current date. You can insert the date as a fixed field - Date (fixed) - that does not change, or as a dynamic field - Date - that it is updated automatically. To manually update the Date field, press F9.
文件名 | 插入当前文档的文件名和/或目录路径以及不含扩展名的文件名。
页面 | 插入当前页、上一页或下一页的页码。
Paragraph Signature | Inserts a meta-data field with a digital signature for the paragraph. You must have a digital certificate to sign a paragraph.
发件人 | Inserts fields containing user data. You can change the user-data that is displayed by choosing LibreOffice - PreferencesTools - Options - LibreOffice - User Data.
统计 | Inserts document statistics, such as page and word counts, as a field. To view the statistics of a document, choose File - Properties, and then click the Statistics tab.
模板 | Inserts the filename, the filename without the file extension, the path, or the path and filename of the current template. You can also insert the Template name and Category of the current template.
时间 | Inserts the current time. You can insert the time as a fixed field - Time (fixed) - that does not change, or as a dynamic field - Time - that it is updated automatically. To manually update the Time field, press F9.

To quickly insert a field from the Select list, double-click the field.

## 格式

If a field is displaying a date, time or number, then Format is used to customize the appearance of the date, time, or number. Common formats are shown in the Format window, or click "Additional formats" to define a custom format.

When you click "Additional formats", the Number Format dialog opens, where you can define a custom format.

If you choose "Chapter number without separator" for a chapter field, the separators that are specified for chapter number in Tools - Chapter numbering are not displayed.

在引用栏您可选择章节编号作为「格式」，字段中只显示包含引用对象的章节标题的编号。如果该章节标题的章节样式没有设置编号，字段将留空。

日期与时间字段的 HTML 文档导入与导出应用特殊的 LibreOffice 格式。

### 固定内容

将此字段作为静态内容插入，即字段不会更新。

## 级

Enter outline level of the chapter to be displayed. The inserted field will display the value taken from last paragraph with the specified outline level placed before the inserted field.

## 修改

输入要应用到页码字段的偏移值，例如，"+1"。

With an Offset value of 1, the field will display a number that is 1 more than the current page number, but only if a page with that number exists. On the last page of the document, this same field will be empty.

如果您想要更改实际页码而不是显示的页码，请不要使用「偏移值。要更改页码，请阅读页码」指南。

## 偏移天数/分钟

输入要应用到日期或时间字段的偏移量。