I am relatively new to LaTeX and I'm having a few issues with the document I am writing.
I have managed to add a header and footer to my document, however the main body of the document runs into my header (The footer is not affected). The header and footer does not appear on every page (in some cases this is desirable in others it is not.
- Header+footer appear on title page - Not desired (I do not want them on this page).
- Header + Footer are not on table of contents page or first page of chapters - Not desired (I would like them to appear on here as well) [Ideally I would only like the name and Id number in the header and the confidential and page number at the bottom].
Code: Select all
\documentclass[oneside,12pt,a4paper]{memoir}
\usepackage{lipsum} % dummy text
\setlrmarginsandblock{3cm}{2.5cm}{*}
\setulmarginsandblock{2.5cm}{2.5cm}{*}
\checkandfixthelayout
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{subfigure}
\usepackage{float}
\usepackage[cm]{fullpage}
\usepackage{titlesec}
\titlespacing*{\chapter}{0pt}{-0.5cm}{20pt}
\titleformat{\chapter}[hang]{\bf\huge}{\thechapter}{0.5cm}{}[\hrule]
\usepackage{pifont}
\author{Name}
\title{Artifices Report}
%Header/Footer
\makepagestyle{myruled}
\makeheadrule {myruled}{\textwidth}{\normalrulethickness}
\makefootrule {myruled}{\textwidth}{\normalrulethickness}{\footruleskip}
\makeevenhead {myruled}{}{\small\itshape\leftmark}{{\small \textbf{Name}}\\[-0.15cm]{\tiny \textit{ID}}}
\makeoddhead {myruled}{}{\small\itshape\rightmark}{{\small \textbf{Name}}\\[-0.15cm]{\tiny \textit{ID}}}
\makeevenfoot {myruled}{Confidential}{} {\small Page \thepage}
\makeoddfoot {myruled}{Confidential}{} {\small Page \thepage}
\makeatother
\pagestyle{myruled}
\begin{document}
\begin{titlepage}
\begin{top}
\begin{center}\\[2.5cm]
% Upper part of the page
\textsc{\LARGE MPI001}\\[0.5cm]
\textsc{\Large Industrial Training Placement}\\[1.5cm]
% Title
\hrule\\[0.4cm]
{ \huge \bfseries TITLE}\\[0.4cm]
\hrule\\[1cm]
\textsc{\large Company}\\[0.5cm]
% Author and supervisor
\begin{minipage}{0.5\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
First \textsc{Name}\\
\emph{ID}
\vspace*{10pt}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\begin{flushright} \large
\emph{For:}\\
Dr. First \textsc{NAME}\\
Mr. First \textsc{NAME}
\end{flushright}
\end{minipage}
\end{top}
\begin{center}
{\large \today}\\[0.5cm]
\textit{Confidential}\\
\end{center}
\vfill
% Bottom of the page
\begin{flushleft}
\section*{Abstract}
lorum ipsum
\end{flushleft}
\end{titlepage}
\pagebreak
\tableofcontents
\pagebreak
\chapter{Introduction}
\end{document}
I also seem to be getting a T in the top left corner of my first page. I have deduced that it is coming from between the lines
Code: Select all
\begin{document}
\begin{titlepage}
Code: Select all
\begin{document}
dd
\begin{titlepage}
I hope this helps you help me
Cheers
conjoa