I want to just place simple object on the corners of each page (and to be able to exclude some pages. I can even do it manually for each page as they are really few), with the usual notation:
\newpgfornamentfamily{pgfhan}
\pgfornament[width = 2cm, color = black!]{5}
or
\newpgfornamentfamily{pgfhan}
\begin{tikzpicture}
\tikzset{pgfornamentstyle/.style={
fill=black!,
fill opacity=1,
line width=0.1pt}}%
\pgfornament[color=black!,scale=0.45,anchor=south, symmetry=v]{5}%
\end{tikzpicture}
An example of working code:
\documentclass{article}
\usepackage{pgfornament}
\begin{document}
\newpgfornamentfamily{pgfhan}
\begin{tikzpicture}
\tikzset{pgfornamentstyle/.style={
fill=black!,
fill opacity=1,
line width=0.1pt}}%
\pgfornament[color=black!,scale=0.45,anchor=south]{5}%
\end{tikzpicture}
\renewcommand{\contentsname}{
\begin{center}
Contenuti
\end{center}}
\tableofcontents
\section{a}
\end{document}
I read online a lot of stuff, but most are inside convolved examples I can't split in little parts and identify what I need.
Can you help me?


\AddToHook{shipout/background}and place atikzpictureat the background of the page. See: https://tex.stackexchange.com/q/642020/47927 – Jasper Habicht Feb 26 '24 at 19:01