0

Would you kindly give me a help to decorate a title with pgfornment package.

enter image description here

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}
1
  • 1
    Welcome to tex.sx. There are some things here, like \@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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.