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}
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 (changep{13cm}
to the value you need):Command
>{\centering}
is used to get a centered list of authors and affiliations. You have to call packagearray
for this.With the following MWE
you get the result: