I have a document containing my course notes, and am attempting to alter the fancyhdr header as in the images below:
Current
Wanted
Here is my current header code, with irrelevant parts omitted.
\documentclass[english, 11pt]{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usetikzlibrary{decorations.pathmorphing}
\chead{\coursename}
\lhead{\semester}
\begin{document}
\section{Lecture 1}
.
.
.
\end{document}
What I would like is for the right header to contain the section name (and only the section name) of the current page, the actual section titles in the document to contain only the section name, but the table of contents to retain the section number. Please note I have only limited TeX experience (self-taught), so this is a fairly steep learning curve for me. Thank you in advance.
\usepackage{fancyhdr}
in your MWE. Please edit your question so that it corresponds to Minimal Working Example.