Don't export toc macro in pdf

When exporting in pdf, the toc macro is exported.
It is then duplicated in the pdf document (toc macro + table of contents).

I just want to keep the table of contents.
How do I disable macro export?


Hi, I’ve added a FAQ entry for you at:

Thanks for the answer. It works.

You can use another way: create a pdf.css:

.floatinginfobox {
  display: "none";

I use Css Class .floatinginfobox because my TOC is in:
{{box cssClass="floatinginfobox" title="**Nice TOC**"}}

You can use your custom Class/Id from “Cleaned XHTML” generated.
See: Debuging style in PDF export in xwiki 8.4.4