2

I encounter this error, happening at least 6 times in my document. It happens either at the end of a section (e.g. on the line where I have \section{Related Works}) or at the end of paragraph before an equation (e.g. ... is calculated by the formula: \begin{equation} ), and also at the end of the document \end{document}. But I also have ends of sections and many equations where this does not occur. I also noticed the warning "Underfull \hbox" on every section that comes before the problematic error point. The compiled pdf file looks fine, but I cannot create a submission file for my article using overleaf without fixing the errors.

I tried:

  • adding \\ or even \\ \\ at the ends of sections
  • Removing any \\ from any paragraph in the section
  • Adding manual empty lines at the line before the new section, then the error was pointing to the empty line
  • removing many packages from the beginning of the document that I thought might be relevant, e.g. enumitem
  • Removing the \label{} command that comes after the \section{} command.

All of those didn't affect the errors at all. When I tried adding \par at the end of the section where the error occurs, the same error now occured on the paragraph above the last. When I added \par on every paragraph in the section, the error occured on the first line of the section.

When changing the document type at the beginning from twocolumns to singlecolumn, the errors vanish but the article is intended to be in two columns.

\documentclass[10pt,twocolumn,letterpaper]{article}

%\usepackage{wacv}
\usepackage{times}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{lipsum}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\usepackage{physics}
\usepackage{mathtools}
\usepackage{appendix}

\definecolor{codegreen}{rgb}{0.0,0.6,0.0}
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{codegreen}{#1}}
\SetCommentSty{mycommfont}
\usepackage{float} 
\usepackage{nidanfloat}
\usepackage{caption}
\usepackage{datetime}

\makeatletter
\makeatother

% \usepackage[utf8]{inputenc}

\usepackage{tabulary}
\usepackage{colortbl}
\usepackage[
    backend=bibtex,
    style=ieee,
  ]{biblatex}
\addbibresource{export.bib}

%box color commands in table
\newcommand{\gb}{\cellcolor{green!12}}
\newcommand{\ob}{\cellcolor{orange!12}}
\newcommand{\rb}{\cellcolor{red!12}}
\newcommand{\bb}{\cellcolor{black!12}}
\newcommand{\dc}[1]{\textbf{\textsc{#1}}}

% Include other packages here, before hyperref.
\usepackage[breaklinks=true,colorlinks,bookmarks=false]{hyperref}

%\wacvfinalcopy % *** Uncomment this line for the final submission

%\def\wacvPaperID{****} % *** Enter the wacv Paper ID here
\def\httilde{\mbox{\tt\raisebox{-.5ex}{\symbol{126}}}}

% Pages are numbered in submission mode, and unnumbered in camera-ready
% \ifwacvfinal\pagestyle{empty}\fi


\setcounter{page}{1}


\title{text text text text text}

\begin{document}

\author{
author0\thanks{Corresponding author.} \hspace{1cm} author1 \hspace{1cm} author2 \vspace*{1mm}\\
affiliation University \\
{\tt\small author0@email \{author1,author2\}@email}
}
\date{\vspace{-5ex}} % Remove date

\twocolumn[{%
\renewcommand\twocolumn[1][]{#1}%
\maketitle
\begin{minipage}{1.0\linewidth}
\begin{center}
    \vspace{-5mm}
    \captionsetup{type=figure}
    \framebox(350,200){}
    \captionof{figure}{text text text text text.}
    \label{fig:1}
\end{center}
\end{minipage}
}]
%%%%%%%%% ABSTRACT
\begin{abstract}
text text text text text.
\noindent The code is publicly available at: \url{https://address}
\end{abstract}

%%%%%%%%% BODY TEXT
% ------------------ Introduction-----------------
\section{Introduction} \label{introduction}% 
text text text text text. 
text text text text text. text text text text text.
text text text text text. text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.text text text text text. text text text text text.
\section{Related Work} \label{related_work}
\noindent \textbf{subtitle.}`
text text text text text
\end{document}

I saw this issue but in my case I don't have the nameref package. Adding it didn't change anything.


Minimal Example

\documentclass{article}
\usepackage{nidanfloat}

\usepackage{lipsum}
\begin{document}
\twocolumn[\rule{2cm}{300pt}]
\lipsum
\end{document}
26
  • 1
    you will have to provide a small but complete example. Without code it is impossible to debug this. Oct 24, 2022 at 10:26
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Oct 24, 2022 at 10:26
  • 1
    the error is about having infinite shrink, so most likely a mis-placed \vss but your decription is about removing \\ or \par but neither of those commands should be in document paragraphs at all, and are unrelated to vertical shrink Oct 24, 2022 at 10:37
  • If you have \\ at ends of paragraph you will get underfull box warning and you should remove the \\ but that is not the cause of an infinite shrink error Oct 24, 2022 at 10:39
  • text text text text text\\\section never use \\ like this Oct 24, 2022 at 10:47

1 Answer 1

1

As suggested by @UlrikeFischer and @DavidCarlisle in the comments, the package nidanfloat caused the issue. Removing \usepackage{nidanfloat} solved the issue for me as the package was apparently not needed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .