Code: Select all
\fancyhead[RE]{\color{Gray}{\bfseries\nouppercase{\rightmark}}}
Code: Select all
\fancyhead[RE]{\color{Gray}{\bfseries\nouppercase{\rightmark}}}
NEW: TikZ book now 40% off at Amazon.com for a short time.
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}
NEW: TikZ book now 40% off at Amazon.com for a short time.