# How to center the title, the author, and the date in Tufte handout?

I am using tufte-handout. I have centered parts and sections using sectsty. How can I center the title, the author, and the date?

%%%%%%%%%%%%%%%%%%%%
\documentclass[]{tufte-handout}

\usepackage{sectsty}
\allsectionsfont{\centering}

\usepackage{lipsum}
%%%%%%%%%%%%%%%%%%%%
% How to center them?
\title{Homework}
\author{hengxin}
\date{\today}
%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
%%%%%%%%%%%%%%%%%%%%
\begin{abstract}
Abstract here~\footnote{footnote}.
\lipsum[10]
\end{abstract}
%%%%%%%%%%%%%%%%%%%%
\begin{center}
\fbox{\begin{tabular}{@{}c@{}}
Note 1: 123456789\\
Note 2: 123456789
\end{tabular}}
\end{center}
%%%%%%%%%%%%%%%%%%%%
\part{Part I}

\lipsum[2]~\footnote{problems}

$a + b = c$

\section{Section 1}
%%%%%%%%%%%%%%%%%%%%
\end{document}


I've copied the source code from the tufte-common.def and modified to meet the centered alignment, here are the modified tags:

%%%%%%%%%%%%%%%%%%%%
\documentclass[]{tufte-handout}

\usepackage{sectsty}
\allsectionsfont{\centering}

\usepackage{lipsum}
%%%%%%%%%%%%%%%%%%%%
% How to center them?

\makeatletter
\renewcommand{\maketitle}{%
\newpage
\global\@topnum\z@% prevent floats from being placed at the top of the page
\begingroup
\setlength{\parindent}{0pt}%
\setlength{\parskip}{4pt}%
\let\@@title\@empty
\let\@@author\@empty
\let\@@date\@empty
\ifthenelse{\boolean{@tufte@sfsidenotes}}{%
\gdef\@@title{\sffamily\LARGE\allcaps{\@title}\par}%
\gdef\@@author{\sffamily\Large\allcaps{\@author}\par}%
\gdef\@@date{\sffamily\Large\allcaps{\@date}\par}%
}{%
\gdef\@@title{\LARGE\itshape\centering\@title\par}%
\gdef\@@author{\Large\itshape\centering\@author\par}%
\gdef\@@date{\Large\itshape\centering\@date\par}%
}%
\@@title
\@@author
\@@date
\endgroup
\tuftebreak% add some space before the text begins
\@afterindentfalse\@afterheading% suppress indentation of the next paragraph
}
\makeatother

\title{Homework}
\author{hengxin}
\date{\today}

%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
%%%%%%%%%%%%%%%%%%%%
\begin{abstract}
Abstract here~\footnote{footnote}.
\lipsum[10]
\end{abstract}
%%%%%%%%%%%%%%%%%%%%
\begin{center}
\fbox{\begin{tabular}{@{}c@{}}
Note 1: 123456789\\
Note 2: 123456789
\end{tabular}}
\end{center}
%%%%%%%%%%%%%%%%%%%%
\part{Part I}

\lipsum[2]~\footnote{problems}

$a + b = c$

\section{Section 1}
%%%%%%%%%%%%%%%%%%%%
\end{document}


Output

• Thanks. However, when I replaced the \renewcommand{\maketitle} with your code \makeatletter ... \makeatother in tufte-common.def, I got the error info Error: Command \@ already defined. – hengxin Sep 13 '19 at 15:18