I've to put the endnotes at the end of each chapter. This is the code for a MWE:

\documentclass[a4paper,12pt,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}

% notes
\usepackage{endnotes}
\renewcommand\enoteformat{%
\noindent\theenmark.\ \hangindent 0\parindent%
}
\usepackage{etoolbox}
\preto{\theendnotes}{%
\renewcommand{\makeenmark}{\textsuperscript{\theenmark}\enspace}%
}
\renewcommand{\notesname}{Note} % <-------------------------------------
\let\footnote=\endnote
\usepackage{chngcntr}
\counterwithin*{endnote}{chapter}

\usepackage{emptypage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{#1}}

\begin{document}
\chapter{First chapter}
\section{Section one}
\lipsum[1-5]
\footnote{\lipsum[1]}
\footnote{\lipsum[3]}
\section{Section two}
\lipsum[2-7]
\footnote{\lipsum[2]}
\section{Section three}
\lipsum{1-5}
\footnote{\lipsum[8]}
\footnote{\lipsum[9]}
\section{Section four}
\lipsum{1-5}
\footnote{\lipsum[6]}
\markboth{\scshape note}{\scshape note}
\theendnotes
\end{document}


Problem 1: in the header, "NOTE" appears not in scshape as well as the headers of the other pages.

Problem 2: I want to omit the title "Note" before the notes begin. But if I use \renewcommand{\notesname}{} I lack the header too, even if I put the code \markboth{\scshape note}{\scshape note} before the command to print endnotes. Maybe, the troubles are connected... thanx

• You have to add \footnote{\lipsum[6]} \renewcommand{\notesname}{} \addtoendnotes{\protect\markboth{Note}{Note}}
– user11232
Jan 28 '15 at 16:30
• Partially working: on p. 7 of my MWE there is no header at all (on p. 8 it seems all ok) Jan 28 '15 at 16:43
• That is because the markboth is coming late since you are using lipsum. You have to put \addtoendnotes{\protect\markboth{Note}{Note}} some what early.
– user11232
Jan 28 '15 at 23:20

I apply \def\notesname={\relax} to take the notes title way.