I want to write a document containing multiple abstracts (texts). Each abstract can have more than one author with maybe different affiliations (institute, address). For the different affiliations the authblk package seems a neat solution. Additionally I use titling for a more suitable
\maketitle
output. This works fine if I only have one abstract.But I need many of those abstracts and each has its own
\maketitle
command. The titling package supports a \killtitle
command for this purpose, but somehow it conflicts with authblk. The second title is completely messed up and overlaps with the text.Is there any way to fix this? Or maybe an alternative way to get similar results?
Minimal Example:
Code: Select all
\documentclass[paper=a5,8pt,DIV=15,BCOR=10mm,twoside]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{amssymb}
\usepackage{titling}
\usepackage{authblk}
\usepackage{setspace}
\usepackage[
top=1cm,
bottom=1.5cm,
inner=2cm,
outer=2cm
]{geometry}
\usepackage{blindtext}
%%% additional options/commands
\newcommand{\sep}{\ --\ }
\setlength{\droptitle}{-1.5cm} % eliminate the default vertical space before title
\date{} % remove date in title
%%% initialize commands containing data
\newcommand{\TheEmail}{}
\newcommand{\TheInst}{}
\newcommand{\TheStreet}{}
\newcommand{\TheUni}{}
\newcommand{\TheCity}{}
\newcommand{\TheCtry}{}
%-------------------------------------------------------------------------------------
\begin{document}
%------------- 1st abstract
%%% title of the abstract
\title{\LARGE{Fany title about really interesting topic}}
%%% author and affiliation information
\author[1]{\small \emph{MainAuthor Abstract1}}
\author[1]{2nd Author}
\author[1]{3rd Author}
\author[1]{4th Author}
% define elements seperately for better overview
\renewcommand{\TheEmail}{main.author@inst1.com}
\renewcommand{\TheInst}{Department of Abstract 1}
\renewcommand{\TheStreet}{Adress1}
\renewcommand{\TheUni}{Name of institution1}
\renewcommand{\TheCity}{City1}
\renewcommand{\TheCtry}{Country1}
% put everything together
\affil[1]{\TheInst\sep \TheStreet \sep \TheUni \sep \TheCity \sep \TheCtry \\ \vspace{5pt} \emph{\TheEmail}}
\maketitle
\vspace{-30pt} % remove space after title
%%% abstract
\blindtext[3]
%------------- 1st abstract finished, clean up before processing next abstract
\killtitle
% \emptythanks
\newpage
%------------- 2nd abstract
%%% title of the abstract
\title{\LARGE{Fany title about even more interesting topic}}
%%% author and affiliation information
\author[1]{\small \emph{MainAuthor Abstract2}}
\author[1]{2nd Author}
\author[1]{3rd Author}
\author[1]{4th Author}
% define elements seperately for better overview
\renewcommand{\TheEmail}{main.author@inst2.com}
\renewcommand{\TheInst}{Department of Abstract 2}
\renewcommand{\TheStreet}{Adress2}
\renewcommand{\TheUni}{Name of institution2}
\renewcommand{\TheCity}{City2}
\renewcommand{\TheCtry}{Country2}
% put everything together
\affil[1]{\TheInst\sep \TheStreet \sep \TheUni \sep \TheCity \sep \TheCtry \\ \vspace{5pt} \emph{\TheEmail}}
\maketitle
\vspace{-30pt} % remove space after title
%%% abstract
\blindtext[3]
\end{document}