Bug Tracker

ID 168🔗
Date: 2020-10-18 10:42:15
Status Closed (Fixed)
Category jmlr
Version 1.27
Summary Float-only last pages not counted for page numbering

Sign in to subscribe to notifications about this report.

Description

In PMLR, when the last pages contain only floats, the automated page count information is the header is wrong by default as it does not take into acount the float-only pages.

For example in a 4 page document with the last page being only a figure, the default header will read: "Proceedings of Machine Learning Research 1–3".

A workaround is to add a "\clearpage" instruction at the begining of the last page.

MWE

Download (991B)

\documentclass[pmlr]{jmlr} % Include author names

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mwe}

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

\author{
	\Name{Author A \nametag{$^{1}$}} \Email{authora@test.com}\\
	\addr $^{1}$ Address, City, Countryy \AND
	\Name{Author B \nametag{$^{2}$}} \Email{authorb@test.com} \\
	\addr $^{2}$ Address, City, Country
      }


\begin{document}

\maketitle

\begin{abstract}
\blindtext
\end{abstract}

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

\section{Introduction}

\Blindtext[5][2]

\acks{\blindtext}

\appendix
\section{Appendix}

% Uncomment the next line for a work around to get page numbers right when last page is a float
%\clearpage

\begin{figure}[htbp]
 % Caption and label go in the first argument and the figure contents
 % go in the second argument
\floatconts
  {fig:example}
  {\caption{Example Image}}
  {\includegraphics[width=0.5\linewidth]{example-image}}
\end{figure}

\end{document}

Evaluation

Fixed in v1.29 (2022-01-29). Unrelated to the float issue, your MWE has a spurious space (before \nametag) that hides the author surname from the name parser.

Comments

1 comment.

🔗Comment from anonymous
Date: 2020-10-21 17:40:00

Following from [Link] a better workaround seems to be:

\usepackage{placeins}
\let\old@jmlrenddoc\@jmlrenddoc
\renewcommand*\@jmlrenddoc{\FloatBarrier\old@jmlrenddoc}
Replying to Comment #65:

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=168