TransWikia.com

KOMA scripts: scrartcl: How to change the font color of the page number

TeX - LaTeX Asked on January 14, 2021

How can i change only the page number font color in the following latex code

documentclass{scrartcl}
usepackage{pdfpages}
usepackage{geometry}
usepackage[automark,headsepline,footsepline]{scrlayer-scrpage}
begin{document}
CHECK PAGENUMBER FONT
end{document}

One Answer

You can use addtokomafont{pagenumber}{...} to your advantage. Assuming you want a red page number, you can use it as shown in the following example:

documentclass{scrartcl}
usepackage{pdfpages}
usepackage{geometry}
usepackage[automark,headsepline,footsepline]{scrlayer-scrpage}
usepackage{xcolor}
addtokomafont{pagenumber}{color{red}}
begin{document}
CHECK PAGENUMBER FONT
end{document}

Correct answer by leandriis on January 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP