LeFred
I’ve posted a question on Texnique, a few days ago (https://texnique.fr/osqa/questions/6788/jolie-numerotation-de-pages/12601).
I would like to insert the page numbers in a red triangle.
@samcarter has proposed an answer in 2019, with blue circles: https://texnique.fr/osqa/questions/6788/jolie-numerotation-de-pages/6791
```
\documentclass{scrartcl}
\usepackage{scrlayer-scrpage}
\usepackage{tikz}
\cfoot{%
\begin{tikzpicture}[remember picture, overlay]
\fill[blue] (current page.south) circle (2em);
\node[anchor=south,text=white] at (current page.south) {\thepage};
\end{tikzpicture}}
\pagestyle{scrheadings}
\begin{document}
text
\end{document}
```
I tried it: that’s OK for the red color, but I don’t know how to get triangle (an inverted triangle: please see example below).

Top Answer
samcarter
You could modify the code like this:
```
\documentclass{scrartcl}
\usepackage{scrlayer-scrpage}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\cfoot{%
\begin{tikzpicture}[remember picture, overlay]
\node[
text=white,fill=red,font=\upshape,
regular polygon, regular polygon sides=3,shape border rotate=180,
text width=1em,align=center,inner sep=0pt
] at ([yshift=3em]current page.south) {\thepage};
\end{tikzpicture}}
\pagestyle{scrheadings}
\begin{document}
text
\end{document}
```

Answer #2
LeFred
I got it! I've just insert `above=3pt`. Which gives us:
```
\usepackage{scrlayer-scrpage}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\cfoot{%
\begin{tikzpicture}[remember picture, overlay]
\node[text=white, fill=red, font=\upshape, regular polygon, regular polygon sides=3, shape border rotate=180, text width=1em,align=center,inner sep=0pt, above=3pt]
at (current page.south) {\thepage};
\end{tikzpicture}}
\pagestyle{scrheadings}
```