MIDL-Conference / MIDLLatexTemplate

Latex template for the MIDL Conference
http://midl.io
52 stars 81 forks source link

Large number of authors and affiliations does not show correctly #8

Closed codingS3b closed 4 years ago

codingS3b commented 4 years ago

In my draft, 25 coauthors and 23 affiliations are involved which caused the template to behave strangely: in the pdf, a first, empty page is generated, followed by a full titlepage with author names and affiliations typed straight to the bottom of the page (without respecting margins). The rest of the authors and affiliations disappears instead of showing up on a second page.

I hope this can be fixed before the submission deadline arises.

tvercaut commented 4 years ago

Can you provide a MWE? We are relying on the JMLR / PMLR template meaning we have little leeway to modify the template but we will try our best.

codingS3b commented 4 years ago

Of course. This reproduces the problem on my system:

\documentclass{midl} % Include author names
%\documentclass[anon]{midl} % Anonymized submission

% The following packages will be automatically loaded:
% jmlr, amsmath, amssymb, natbib, graphicx, url, algorithm2e
% ifoddpage, relsize and probably more
% make sure they are installed with your latex distribution

\usepackage{mwe} % to get dummy images
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

%\usepackage{amsmath}
%\usepackage{amssymb}
\usepackage{bbm}
%\usepackage{graphicx}
\usepackage{caption}
\usepackage{float}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{multirow}
%\usepackage{hyperref}
\usepackage{enumitem}
%\usepackage{pdflscape}
%\usepackage{authblk}
%\usepackage{tikz}

% Header for extended abstracts
\jmlrproceedings{MIDL}{Medical Imaging with Deep Learning}
\jmlrpages{}
\jmlryear{2020}

% to be uncommented for submissions under review
\jmlrworkshop{Short Paper -- MIDL 2020 submission}
\jmlrvolume{-- Under Review}
\editors{Under Review for MIDL 2020}

\title[Short Title]{Full Title of Article}

 % Use \Name{Author Name} to specify the name.
 % If the surname contains spaces, enclose the surname
 % in braces, e.g. \Name{John {Smith Jones}} similarly
 % if the name has a "von" part, e.g \Name{Jane {de Winter}}.
 % If the first letter in the forenames is a diacritic
 % enclose the diacritic in braces, e.g. \Name{{\'E}louise Smith}

 % Two authors with the same address
 % \midlauthor{\Name{Author Name1} \Email{abc@sample.edu}\and
 %  \Name{Author Name2} \Email{xyz@sample.edu}\\
 %  \addr Address}

 % Three or more authors with the same address:
 % \midlauthor{\Name{Author Name1} \Email{an1@sample.edu}\\
 %  \Name{Author Name2} \Email{an2@sample.edu}\\
 %  \Name{Author Name3} \Email{an3@sample.edu}\\
 %  \addr Address}

% Authors with different addresses:
% \midlauthor{\Name{Author Name1} \Email{abc@sample.edu}\\
% \addr Address 1
% \AND
% \Name{Author Name2} \Email{xyz@sample.edu}\\
% \addr Address 2
% }

%\footnotetext[1]{Contributed equally}
%very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country
% More complicate cases, e.g. with dual affiliations and joint authorship
\midlauthor{
    \Name{Author A \nametag{$^{1,2,3}$}} \\
    \addr $^{1}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{2}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{3}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name{Author B \nametag{$^{2,3,4}$}} \Email{} \\
    \addr $^{4}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name{Author C \nametag{$^{2,3,4}$}} \Email{} \\
    \Name{Author D \nametag{$^{2,3,4,5}$}} \Email{} \\
    \addr $^{5}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name{Author E \nametag{$^{2,3,4,5}$}} \Email{} \\
    \Name{Author F \nametag{$^{2,3,4,5}$}} \Email{} \\
    \Name[6,7]{Author G \nametag{$^{6,7}$}} \Email{} \\
    \addr $^{6}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{7}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[6,7]{Author H \nametag{$^{6,7}$}} \Email{} \\
    \Name[8]{Author I \nametag{$^{8}$}} \Email{} \\
    \addr $^{8}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[9,10]{Author J \nametag{$^{9,10}$}} \Email{} \\
    \addr $^{9}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{10}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[9,10]{Author K \nametag{$^{9,10}$}} \Email{} \\
    \Name[11,12]{Author L \nametag{$^{11,12}$}} \Email{} \\
    \addr $^{11}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{12}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[13,14]{Author M \nametag{$^{13, 14}$}} \Email{} \\
    \addr $^{13}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{14}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[13,14]{Author N \nametag{$^{13,14}$}} \Email{} \\
    \Name[15,16,17]{Author O \nametag{$^{15,16,17}$}} \Email{} \\
    \addr $^{15}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \\
    \addr $^{16}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country\\
    \addr $^{17}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[15,16,17]{Author P \nametag{$^{15,16,17}$}} \Email{} \\
    \Name[15,18]{Author Q \nametag{$^{15,18}$}} \Email{} \\
    \addr $^{18}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[15,18,19]{Author R \nametag{$^{15,18,19}$}} \Email{} \\
    \addr $^{19}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[20,21]{Author S \nametag{$^{20,21}$}} \Email{} \\
    \addr $^{20}$ German Cancer Research Center (DKFZ), Heidelberg and German Cancer Consortium (DKTK) partner site Tübingen, Germany \\
    \addr $^{21}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country\AND
    \Name[20,21]{Author T \nametag{$^{20,21}$}} \Email{} \\
    \Name[2,3,5,22]{Author U \nametag{$^{2,3,5,22}$}} \Email{} \\
    \addr $^{22}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[2,3,4,5,22]{Author V \nametag{$^{2,3,4,5,22}$}} \Email{} \\
    \Name[2,3,4,5,22]{Author W \nametag{$^{2,3,4,5,22}$}} \Email{} \\
    \Name[2,3,4,5,22,23]{Author X \nametag{$^{2,3,4,5,22,23}$}} \Email{} \\
    \addr $^{23}$ very long affiliation which needs probably from two to three lines or maybe more on a rendered pdf and is honestly very long indeed, City, Country \AND
    \Name[2,3,5]{Author Y \nametag{$^{2,3,5}$}} \Email{}
}

\begin{document}

\maketitle

\begin{abstract}
This is a great paper and it has a concise abstract.
\end{abstract}

\begin{keywords}
List of keywords, comma separated.
\end{keywords}

\section{Introduction}

This is where the content of your paper goes.  Some random notes:

% Acknowledgments---Will not appear in anonymized version
\midlacknowledgments{We thank a bunch of people.}

%\bibliography{midl-samplebibliography}

\end{document}
HKervadec commented 4 years ago

I hope this can be fixed before the submission deadline arises.

Bear in mind that this year, the review process is double blind, so this will be a problem only for the final version. This means we have a bit more time to fix that.

tvercaut commented 4 years ago

An ugly hack for now:

%\begin{comment}
\makeatletter
% hack the footer of the title page as it doesn't seem to automatically use the et al. version when spanning acros multiple pages
\renewcommand*{\@titlefoot}{\scriptsize\copyright\space\@jmlryear
    \space \@firstauthor\space \emph{et al}.\hfill
    \@reprint
  }
\makeatother
%\end{comment}

% \begin{comment}
\makeatletter
% remove the vbox in @jmlrmaketitle which prevents the text to be split across several pages
\renewcommand{\@jmlrmaketitle}{
  % specify the page style in case it spans over several pages. Not sure why this is needed
  \thispagestyle{jmlrtps}%
  % define a new label for the first page as otherwise it starts from 2 in the header
  \label{jmlrstartnew}%
  % hack the spacing to mimick what happens with a vbox
  \null\vspace{-\parindent}\vspace{-2pt}{
  \hsize\textwidth
  \linewidth\hsize
 \jmlrpretitle
  {%
    \def\titletag##1{##1}%
    \@title
  }%
 \jmlrposttitle
 \jmlrpreauthor \@author \jmlrpostauthor
}
% hack the spacing to mimick what happens with a vbox
\vspace{2pt}
}
\makeatother
%\end{comment}

%\begin{comment}
\makeatletter
% hack the footer to use the new counter
\renewcommand*\@jmlrpages{\pageref{jmlrstartnew}--\pageref{jmlrend}}
\makeatother
%\end{comment}

This can be put in a file such as many-authors-hack.tex and this file can then be used in your own tex sources using \input{many-authors-hack}

codingS3b commented 4 years ago

Thanks, this seems to work for me :) Should I close the issue or leave it open until a less hacky solution exists?

tvercaut commented 4 years ago

Let's leave it open for now. I created a bug report upstream: https://www.dickimaw-books.com/bugtracker.php?action=view&key=141