¿Cómo centrar el título en un título personalizado?

¿Cómo centrar el título en un título personalizado?

En este momento mi título se ve así ingrese la descripción de la imagen aquí

Como puede ver, el centrado está un poco desviado. Lo que realmente me gustaría que se viera es que no tuviera el elemento 1 y el elemento 3 y que tuviera "CS 2800" y "Tarea 1" centrados.

Si alguien pudiera decirme cómo hacerlo, ¡se lo agradecería mucho! El código de látex que estoy usando es este:

% Use this template to write your solutions

\documentclass[12pt]{article}
\usepackage[intlimits, sumlimits]{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{enumerate}
\usepackage{microtype}

% Set the margins
%
\setlength{\textheight}{8.5in}
\setlength{\headheight}{.25in}
\setlength{\headsep}{.25in}
\setlength{\topmargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}

% Macros
\newcommand{\myN}{\hbox{N\hspace*{-.9em}I\hspace*{.4em}}}
\newcommand{\myZ}{\hbox{Z}^+}
\newcommand{\myR}{\hbox{R}}

\newcommand{\myfunction}[3]
{${#1} : {#2} \rightarrow {#3}$ }

\newcommand{\myzrfunction}[1]
{\myfunction{#1}{{\myZ}}{{\myR}}}


% Formating Macros

\newcommand{\myheader}[6]
{\vspace*{-0.5in}
\noindent
{#1} \hfill {#2} \hfill {#3}

\noindent
{#4} \hfill {#5} \hfill {#6}

\noindent
\rule[8pt]{\textwidth}{1pt}

\vspace{1ex} 
}  % end \myheader 

\newcommand{\myalgsheader}[0]
{\myheader
{ {}}
{ {\Large CS 2800}}
{ {}}
{ {Monica}}
{ {Homework 1}}
{ {February 8, 2015}}
}

%%%%%% Begin document with header and title %%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\myalgsheader

\pagestyle{plain}

% \myhwtitle{x}{y}{clem, Lee, Clement}
% Example : \myhwtitle{1}{4}{Your name here}

\bigskip

% begin Solution 
Your problem solution.
% end Solution 

\end{document}

Respuesta1

Cargaría el fancyhdrpaquete y colocaría el siguiente código en el preámbulo:

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{Monica}
\chead{\begin{tabular}[b]{c}
       \Large CS2800 \\ Homework 1
       \end{tabular}}
\rhead{February 8, 2015}

El cuerpo del documento comenzaría así:

\begin{document}
\pagestyle{plain}
\thispagestyle{fancy}
...

ingrese la descripción de la imagen aquí

Respuesta2

Un poco diferente de@Mico solucióny un poco más tarde.

\documentclass{report}
\usepackage{lipsum}
\usepackage[showframe,head=2.5em]{geometry}
\usepackage{fancyhdr}
\lhead{%
\begin{tabular}{@{}l}
Element 1\\Monica
\end{tabular}%
}
\rhead{%
\begin{tabular}{r@{}}
Element 3\\\today
\end{tabular}%
}
\chead{%
\begin{tabular}{c}
{\large CS 2800}\\Homework 1
\end{tabular}%
}

\begin{document}
\pagestyle{fancy}
\lipsum[1]
\end{document}

ingrese la descripción de la imagen aquí

información relacionada