Would you kindly give me a help to decorate a title with pgfornment package.
I have the following code
\newcounter{exo}[subsection]
\newenvironment{exo}[1][]
{\edef\@exer{#1}%
\ifx\@exer\empty{}\else{\setcounter{exo}{#1}\addtocounter{exo}{-1}}\fi%
\refstepcounter{exo}%
\begin{center}
\rput[r](-1pt,1pt){\pgfornament[,height=1cm]{21}}
{\Large $\mathscr{E}\mathbf{xercice}$ \shadowbox{\theexo }}%
\end{center}
\@exer
that require code that isn't shown. Please enlarge this to a small compilable example that potential helpers can copy and paste to experiment with. – barbara beeton Dec 25 '20 at 15:01