Code: Select all
\fancyhead[RE]{\color{Gray}{\bfseries\nouppercase{\rightmark}}}
Code: Select all
\fancyhead[RE]{\color{Gray}{\bfseries\nouppercase{\rightmark}}}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass[11pt,a4paper,twoside,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[dvipsnames]{xcolor}
\usepackage[pagestyles,raggedright]{titlesec}
\usepackage{blindtext}
\titleformat*{\section}{\Large\bfseries\color{Maroon}}
%\titleformat*{\subsection}{\large\bfseries\color{Maroon}}
%\titleformat*{\subsubsection}{\normalsize\bfseries\color{Maroon}}
\newpagestyle{main}{%
\sethead[\thepage][][\thesection\ \sectiontitle]{\thesubsection\ \subsectiontitle}{}{\thepage}
\headrule
}
\pagestyle{main}
\begin{document}
\tableofcontents
\blinddocument
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis