[Tex/LaTex] How to remove numbering from section title in header

header-footersectioning

The code below generates a section title, which is what I want, but it also includes the section number. Because it's in the header, and the header also includes the page number, this becomes somewhat confusing to the reader. How do I remove the section number while keeping the section title?

enter image description here

\documentclass[11pt,a4paper,twoside]{article}
\usepackage[latin1]{inputenc}
\usepackage[centering]{geometry}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{tocloft}

%for alternating title with author and page number
\fancyhf{}
\renewcommand\headrulewidth{0pt}
\fancyhead[CO]{\nouppercase\leftmark}
\fancyhead[CE]{\hdrtitle}
\fancyhead[LE,RO]{\thepage}
\pagestyle{fancy}
\title{MY TITLE}
\author{MY NAME}
\makeatletter
\let\hdrtitle\@title
\makeatother
\begin{document}

\tableofcontents
\section{Part A}
\lipsum[1-5]
\subsection{Part A1}
\lipsum[1-5]
\section{Part B}
\lipsum[1-5]
\end{document}

Best Answer

Redefine \sectionmark to suppress the section numbering:

\renewcommand\sectionmark[1]{\markboth{#1}{}}

A complete example:

\documentclass[11pt,a4paper,twoside]{article}
\usepackage[latin1]{inputenc}
\usepackage[centering]{geometry}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{tocloft}

%for alternating title with author and page number
\fancyhf{}
\renewcommand\headrulewidth{0pt}
\fancyhead[CO]{\nouppercase\leftmark}
\fancyhead[CE]{\hdrtitle}
\fancyhead[LE,RO]{\thepage}
\pagestyle{fancy}

\renewcommand\sectionmark[1]{\markboth{#1}{}}

\title{MY TITLE}
\author{MY NAME}
\makeatletter
\let\hdrtitle\@title
\makeatother
\begin{document}

\tableofcontents
\section{Part A}
\lipsum[1-5]
\subsection{Part A1}
\lipsum[1-5]
\section{Part B}
\lipsum[1-5]
\end{document}