Don't export toc macro in pdf

Hello,
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?

Thanks,
Lionel

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:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HOverridetheCSSrules
with

.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