I want to add an ornament (provided by the pgfornament package) after the section title's body. Here is a MWE which produces the error I get (the document compiles correctly if I remove \pgfornament[width=0.25\textwidth]{70}):


\section{A section}

I want it to look like :

                                                section number
                                                section title

1 Answer 1


You need to use \protect


enter image description here

  • Awesome lovely answer! For my case, how do I place the Number before the Section Title (on the same line) and how do I modify the spacing between Title and ornament?
    – Leon
    Dec 2, 2022 at 15:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .