[Tex/LaTex] Author names running over margins

affiliationauthblkmarginstitles

I am trying to write a paper that looks similar to the one in this question. I am using the naaclhlt2016 template (required), available here. Below is an MWE of what I have:

%
% File naaclhlt2016.tex
%

\documentclass[11pt,letterpaper]{article}
\usepackage{authblk}
\usepackage{naaclhlt2016}
\usepackage{times}
\usepackage{latexsym}

\naaclfinalcopy % Uncomment this line for the final submission

\newcommand\BibTeX{B{\sc ib}\TeX}


\title{Instructions for NAACL HLT 2016 Proceedings - This stays within the margins}


\author[1]{Author 1 who has a very very long name}
\author[2]{Author 2 who also has a very very very long name}
\author[1]{Author 2 who has a very very very long name}
\affil[1]{Department of Linguistics, University}
\affil[2]{School of Medicine, University}

\renewcommand\Authands{ and }

\date{}

\begin{document}

\maketitle

\end{document}

The output looks as follows:
resulting pdf

How can I get the author names to stay within the margins?

EDIT: My actual article has the following libraries loaded.

\documentclass[11pt,letterpaper]{article}
\usepackage{authblk}
\usepackage{naaclhlt2016}
\usepackage{times}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{apacite}

Best Answer

You can redefine the used command \outauthor to print the author(s). Add to your preamble the following code (change p{13cm} to the value you need):

\makeatletter
\renewcommand\outauthor{
    \begin{tabular}[t]{>{\centering}p{13cm}} % <========================
    \ifnaaclfinal 
         \bf\@author
    \else 
        % Avoiding common accidental de-anonymization issue. --MM
            \bf Anonymous NAACL submission
    \fi
    \end{tabular}}
\makeatother

Command >{\centering} is used to get a centered list of authors and affiliations. You have to call package array for this.

With the following MWE

\documentclass[11pt,letterpaper]{article}
\usepackage{authblk}
\usepackage{naaclhlt2016}
\usepackage{times}
\usepackage{latexsym}
\usepackage{array} % for >{\centering}

\naaclfinalcopy % Uncomment this line for the final submission

\makeatletter
\renewcommand\outauthor{
    \begin{tabular}[t]{>{\centering}p{13cm}} % <==========================
    \ifnaaclfinal 
         \bf\@author
    \else 
        % Avoiding common accidental de-anonymization issue. --MM
            \bf Anonymous NAACL submission
    \fi
    \end{tabular}}
\makeatother

\newcommand\BibTeX{B{\sc ib}\TeX}


\title{Instructions for NAACL HLT 2016 Proceedings - This stays within the margins}


\author[1]{Author 1 who has a very very long name}
\author[2]{Author 2 who also has a very very very long name}
\author[1]{Author 2 who has a very very very long name}
\affil[1]{Department of Linguistics, University}
\affil[2]{School of Medicine, University}

\renewcommand\Authands{ and }

\date{}

\begin{document}

\maketitle

\end{document}

you get the result:

resulting pdf