> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/content-exporter-confluence/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/content-exporter-confluence/user-guides/before-exporting/macros.md).

# Macros

By using different kind of macros, the content and the outlook of the exported document can be enhanced.

## Custom field macros

The custom field macro can be used to put document and/or export specific metadata into the document (also into the cover page).

This metadata can be the following:

* Document title
* Document version
* Page number
* Total page number
* Document created
* Document last modified
* Creator full name
* Creator user name
* Last modifier full name
* Last modifier user name
* Export date

Date fields can be formatted using format strings as described in [Formatting dates](/content-exporter-confluence/user-guides/before-exporting/export-profiles/headers-and-footers.md#headersandfooters-formattingdates). The format string can be put into the format input box.

## Page bottom macro

With the page bottom macro a user can place a block of text to the bottom on cover pages (For example information about the author, the publisher, and so on).

To add a Page Bottom Macro, do the following:

1\. In the Confluence editor, choose **Insert** -> **Other Macros**.

![](/files/Z9vUQoLkYwvUeqnpjP6Y)

2\. In the **Select Macro** page, find and select the **Page Bottom** macro:

![](/files/M2Qd3kA8zXS3f6iSoqj6)

3\. Enter a text:

![](/files/r06sIjK114ftds4koXgw)

Use the `.page-bottom` CSS class to format the macro.

The content will be put at the end of the page.

{% hint style="info" %}
**Note:** It is currently supported for cover pages and for PDF format.
{% endhint %}

## Page break macro

With the page break macro, a page break can be inserted at any place in the document.

To add a Page Break Macro, do the following:

1\. In the Confluence editor, choose **Insert** -> **Other Macros**.

![](/files/Z9vUQoLkYwvUeqnpjP6Y)

2\. In the Select macro page, find and select the **Page break** macro:

![](/files/LVp9SuAWfpNWy3wQ88MK)

3\. Add the **Page break** macro to start a new page in the export:

![](/files/bRQaWz7054YSmMjWJkEw)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.meta-inf.hu/content-exporter-confluence/user-guides/before-exporting/macros.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
