---
title: "Work with Word Bookmarks"
canonical: "https://docs.getxray.app/space/XRAY/301678250/Work%20with%20Word%20Bookmarks"
format: markdown
---
Document Generator is compatible with Word Bookmarks.

You can use bookmarks on your templates and they will be present in the resulting document.

## Bookmarks on iterations

You can use bookmarks inside any iteration.

These bookmarks can't include the iteration opening/closing tags. Examples:

<details>
<summary>Expand to see the sample code</summary>

```
#{for ...}
#{end}
&{for ...}
&{end}
```
</details>

The bookmark will be duplicated over the iteration.

##### Template example:

![image](media://a2a4cc9c-0d84-4e85-aea4-73bcd7aafae0)

##### Output result:

![image](media://7a659f4b-f669-4290-8021-4b2a94ffc3d4)

### Be careful, if you want to add a bookmark to the full iteration content, you must not include the last *end line*.

![image](media://fe307f19-d6c2-4f07-b3cc-e8d14036396f)

> ℹ️ **Tip**
> ℹ️ 
> ℹ️ You can use the "Show or hide formatting marks" Word option so you can see the last ¶ before the #{end} mapping and not include it.