| % set up page styles for mainmatter, page headers and normal footer |
| \renewcommand{\chaptermark}[1]{ |
| \markboth{\chaptername |
| \ \thechapter.\ #1}{}} |
| \renewcommand{\sectionmark}[1]{ |
| \markright{\thesection.\ #1}{}} |
| \fancyhf{} |
| \fancyhead[RO]{\slshape \rightmark} |
| \fancyhead[LE]{\slshape \leftmark} |
| \fancyfoot[CO,CE]{JAX-RS} |
| \fancyfoot[LE,RO]{\thepage} |
| \fancyfoot[RE,LO]{\today} |
| \fancypagestyle{plain}{ |
| \fancyhf{} |
| \fancyfoot[CO,CE]{JAX-RS} |
| \fancyfoot[LE,RO]{\thepage} |
| \fancyfoot[RE,LO]{\today} |
| \renewcommand{\footrulewidth}{0pt} |
| \renewcommand{\headrulewidth}{0pt} |
| } |
| \renewcommand{\headrulewidth}{0.4pt} |