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).
![triangle_amMvJvk.png](/image?hash=4bd2cccdd201ccad26e6d4d75f8ea48cdf45a90282067466593a4181bd0d2e18)
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}
```
![Screenshot 2024-05-23 at 15.22.23.png](/image?hash=60ea1685d55d2b6c0b88ac4984af4eb40e2e6d09ff198be848d88737f1ac5204)
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}
```