# Document pane

{% hint style="info" %}
The document title will only be visible if you are editing a document and not a binder. Refer to [binder](/assemble-document-operations-panel/binder-pane.md) for information on the binder pane.
{% endhint %}

Under the document tab, you can edit various properties of the document itself.

## Document title

The document should have a title (e.g. “share purchase agreement”). You can choose whether or not the document title should be printed, i.e. shown in the exported document. The position & formatting of the document title can be adapted in the page section of the [styling ](/styling/styling-overview.md)pane.

## Table of contents (TOC)

Clause9 can automatically generate a table of contents in the exported document. You can choose how many levels such table of contents has…

<figure><img src="/files/N0DV38KLYUDrXfvFm2pu" alt="" width="316"><figcaption></figcaption></figure>

… and also indicate where the TOC should be inserted:

<figure><img src="/files/jfgfM86xUT8dmGEWZebG" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
If you desire more control over how the TOC is inserted (e.g., because you want it to be inserted at a different location — e.g., before a particular subdocument in a Binder — or you want to be able to dynamically define whether a TOC should be inserted, then you should have a look at the `@toc` [special function](/special-functions/introduction.md).

If your users encounter problems when updating the TOC in MS Word, you consider using the `@toc-o1` [special function](/special-functions/introduction.md) instead, which tries to circumvent an unfortunate technical limitation of MS Word.
{% endhint %}

## Document properties

Clicking the Properties button&#x20;

<figure><img src="/files/7SxsWsKBuNA6f9z6Axjm" alt="" width="231"><figcaption></figcaption></figure>

will open the document’s properties as a separate item under the edit tab. Here, you can adjust the file name, description, category, attributes, links, conditions for enabling the document (for use in binders), legal comments, custom styling (which is the same as editing the document’s styling under the styling tab) and access rights.

## Document mapping <a href="#mapping" id="mapping"></a>

Mapping is a feature that gives you more flexibility in using clauses and makes clauses more re-usable. Specifically, document mapping is used to re-map entire concepts or specific datafields used in **an entire document** to other concepts or datafields in that document.&#x20;

{% hint style="info" %}
Mapping of concepts or datafields can also be limited to a specific clause. This is done by selecting the relevant clause and going to the mapping subtab in the advanced pane of the operations panel.
{% endhint %}

For example, suppose we are making a commercial agency agreement with two parties: the principal and the agent. The document contains three concepts: principal, agent and agreement.

Let’s say we need a governing law clause. This clause is already available in our library, but specifically made for a share purchase agreement. The clause makes use of the concepts “buyer” and “seller”:

```
#Buyer and #seller agree that #°agreement will be governed by Belgian law.
```

This will result in the following text: “The Buyer and the Seller agree that this Agreement will be governed by Belgian law.”

Using mapping, we can ensure that **in this document only**, the concepts buyer and seller are replaced by principal and agent by mapping from buyer to principal and from seller to agent as follows:

Click the *Mapping* button.&#x20;

<figure><img src="/files/GR09he9Pi80hZr3YijT8" alt="" width="231"><figcaption></figcaption></figure>

You will see this:

<figure><img src="/files/4WjdSab3I3SIKDHPv6kK" alt="" width="276"><figcaption></figcaption></figure>

In the drop-down list “map from”, choose the concept you wish to **replace**, e.g. “buyer”. Then in the list “map to”, choose the concept that you want to actually be **used in the document**, e.g. “principal”. After clicking the <img src="/files/Ul6GVaKztNZo8wBkvcaA" alt="" data-size="line"> button, all instances (including their datafields) of the “from” concept will be mapped to the “to” concept. In our example, “The Buyer” will be replace by “The Principal”.

{% hint style="success" %}
If a concept that is mapped to another concept contains a datafield that the other concept does not have, that datafield will remain visible under the **old concept** in the data dashboard.
{% endhint %}

**Mapping datafields** works in exactly the same way, but only maps a specific datafield to another.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.clause9.com/assemble-document-operations-panel/document-pane.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
