GeneralDocument with multiple Abstracts from multiple Authors

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
feodoran
Posts: 4
Joined: Wed Nov 20, 2013 8:49 pm

Document with multiple Abstracts from multiple Authors

Post by feodoran »

Hi,

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}

Recommended reading 2024:

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

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

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

Document with multiple Abstracts from multiple Authors

Post by localghost »

I think the confproc package is what you need here.


Best regards and welcome to the board
Thorsten
feodoran
Posts: 4
Joined: Wed Nov 20, 2013 8:49 pm

Re: Document with multiple Abstracts from multiple Authors

Post by feodoran »

Thank you for the hint, but at first sight this looks a bit overpowered. I was hoping for an easier solution, but I will give it a chance anyway.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Document with multiple Abstracts from multiple Authors

Post by localghost »

feodoran wrote:Thank you for the hint, but at first sight this looks a bit overpowered. […]
According to your descriptions of what you want to to, I'd consider this package as the optimal tool.
feodoran wrote:[…]I was hoping for an easier solution, but I will give it a chance anyway.
As it looks to me, your method seems much more complicated.
feodoran
Posts: 4
Joined: Wed Nov 20, 2013 8:49 pm

Re: Document with multiple Abstracts from multiple Authors

Post by feodoran »

The example in the confproc package includes already existing pdf's into the final document. I want to include only the .tex file, is that possible too?

Additionally the documentation explains a number of steps you need to perform to get the final document from your latex-source. This seems to be rather complex. I don't want to start new from scratch, when I already have something that works, besides the described problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Document with multiple Abstracts from multiple Authors

Post by localghost »

Then perhaps combine or subfiles can help in this case.
feodoran
Posts: 4
Joined: Wed Nov 20, 2013 8:49 pm

Document with multiple Abstracts from multiple Authors

Post by feodoran »

I tried both packages. subfiles works in principle, but cannot resolve my issue. It is just a nicer way to get the same result as before.

With the combine package I have some problems to get it working properly. I prepared two really easy .tex-files (placed within the same folder):

main.tex
\documentclass{combine}
\begin{document}
MAIN FILE
\import{subfile}
\end{document}


subfile.tex
\documentclass{article}
\begin{document}
SUBFILE
\end{document}


Now running 'latex main.tex' returns 'LaTeX Error: Two \documentclass or documentstyle commands.' What am I doing wrong?

And I have another question about combine: The documentation mentions only the standard classes (article, report, etc.). What about the KOMA-Script classes (scrartcl, etc.). Are they compatible to the combine package?
Post Reply