Page LayoutAuthor Text exceeding Margin and Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mklb1
Posts: 1
Joined: Mon Sep 17, 2012 3:36 pm

Author Text exceeding Margin and Page

Post by mklb1 »

Hello,

I'm having a problem with writing my paper. I have multiple authors, and only one single affiliation. The thing is, that when I write the names of all the authors, and the name of the institution, the text runs to the right end of the page exceeding the margin and the page, and is not centered.

Code: Select all

\documentclass[10pt]{article}
\usepackage[a4paper]{geometry}

\usepackage{adjustbox}
\usepackage{epsfig}
\usepackage{float}
\usepackage{graphicx}
\usepackage{setspace}
\linespread{1.3}

\title{\textbf{Title Title Title Title Title Title Title Title Title Title Title Title Title Title Title Title}}

\author{Author 1, Author 2, Author 3, Author 4, Author 5, Author 6, Author 7, Author 8, Author 9, and Author 10 \\ \\
Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution Institution}

\date{\today}

\begin{document}
  \maketitle
\end{document}
Any help would be very much appreciated. Thank you in advance.
Last edited by localghost on Mon Sep 17, 2012 6:51 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Author Text exceeding Margin and Page

Post by localghost »

Usually authors are separated by the \and command to ensure an appropriate formatting for the document title by the \maketitle command. This will take care that all authors fit on the page. The additional affiliation has to be formatted by hand (see below code).

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{setspace}
\setstretch{1.3}

\title{\textbf{The Document Title that is so long that it occupies two Lines}}

\author{
  Author 1,\and
  Author 2,\and
  Author 3,\and
  Author 4,\and
  Author 5,\and
  Author 6,\and
  Author 7,\and
  Author 8,\and
  Author 9,\and
  and Author 10 \\[1ex]
  Institution Institution Institution Institution Institution Institution Institution \\
  Institution Institution Institution Institution Institution Institution Institution
}
\date{\today}

\begin{document}
  \maketitle
\end{document}
But the resulting output might not be what you want. So the authblk package can help here with formatting the list of authors as well as adding an affiliation (see code below).

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{authblk}

\title{\textbf{A long list of Authors with on single Affiliations and a Document Title that needs two Lines}}
\author{Author A}
\author{Author B}
\author{Author C}
\author{Author D}
\author{Author E}
\author{Author F}
\author{Author G}
\author{Author H}
\author{Author I}
\author{Author J}
\affil{A very long affiliation that might occupy two Lines if the chossen type area requires this to make it appear well.}

\renewcommand\Authands{ and }

\begin{document}
  \maketitle
\end{document}
By the way, with epsfig your code example uses an obsolete package. Furthermore it sets the line spacing not correctly. You may take a look at l2tabu for more information.


Best regards and welcome to the board
Thorsten
Post Reply