Innehåll

# Dokument

Fields are used to insert information about the current document, for example, file name, template, statistics, user data, date, and time.

Så här använder du det här kommandot...

Välj fliken Infoga - Fält - Annan - Dokument

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.

## Typ

Lists the available field types.

## Urval

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

### Available field Types and Select lists

Typ | Select list
--- | ---
Författare | Name or initials of current user (as entered in LibreOffice - Preferences Tools - Options - LibreOffice - User Data).
Datum | 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.
Filnamn | Infogar filnamn och/eller sökväg för det aktuella dokumentet och filnamnet utan filnamnstillägg.
Heading | Shows the heading number and/or the heading contents of a heading prior to the inserted field.
Sida | Infogar sidnumret för den aktuella, föregående eller följande sidan.
Paragraph Signature | Inserts a meta-data field with a digital signature for the paragraph. You must have a digital certificate to sign a paragraph.
Avsändare | Inserts fields containing user data. You can change the user-data that is displayed by choosing LibreOffice - Preferences Tools - Options - LibreOffice - User Data.
Statistik | 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.
Dokumentmall | 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.
Klockslag | 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.

## Format

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.

For type Heading, choose the format Heading number to display the heading number with the separator specified in Tools - Heading Numbering.

Choose Heading number without separator to display the heading number alone without the separator.

If the selected heading is not numbered, then the field is left blank.

For the HTML export and import of date and time fields, special LibreOffice formats are used.

### Fixera innehåll

Infogar fältet som statiskt innehåll, d.v.s. fältet går inte att uppdatera.

### Up to level

Use this option with type Heading to specify which heading to display. The displayed heading is the first one before the field, whose outline level is equal to or less than the specified value.

### Korrigering

Ange det korrigeringsvärde som du vill använda på ett sidnummerfält, till exempel "+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.

Om du vill ändra faktiskt sidnummer och inte det som visas, ska du inte användaKorrigerings-värdet. Vill du ändra sidnummer, läs guidenSidnummer.

### Korrigering i dagar/- minuter

Ange den korrigering du vill använda på ett datum- eller tidsfält.