Estou usando ieeecolor.cls
pela primeira vez - compre emhttps://www.embs.org/tmi/authors-instructions/, a saber,https://www.embs.org/wp-content/uploads/2020/04/TMI-Template-LaTeX-2020.zip
O que me incomoda é que as configurações padrão recomendadas pela revista resultam em caixas cheias demais e insuficientes:
Overfull \hbox (109.0pt too wide) has occurred while \output is active
Overfull \hbox (162.0pt too wide) has occurred while \output is active
Underfull \hbox (badness 10000) has occurred while \output is active
Overfull \vbox (21.77283pt too high) has occurred while \output is active []
Tentei corrigi-los, mas realmente não vejo onde a largura máxima está definida, então não tenho ideia de por que algum dos elementos no cabeçalho excede essas larguras. Claramente, elas não excedem as margens padrão da página em 160 pontos. Então tentei suprimi-los, sem sorte.
O que mais posso tentar?
\vfuzz=\maxdimen
\hfuzz=\maxdimen
\hbadness=100000
\vbadness=100000
\documentclass[print]{ieeecolor}
%\usepackage{tmi}
\def\logoname{LOGO-tmi-web}
\definecolor{subsectioncolor}{rgb}{0,0.541,0.855}
\setlength{\firstpagerule}{26.5pc}
\setlength{\logowidth}{16.5pc}
\def\journalname{IEEE Transactions on Medical Imaging}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\title{Long title: foo bar yada yada foo bar yes thank you that's enough.}
\markboth{\journalname}{Short title}
\author{Author one, two, three, four. \thanks{\lipsum[1]}}
\maketitle
\begin{abstract}
\lipsum[2]
\end{abstract}
\lipsum[3]
\end{document}
Responder1
Baseado em parte em @DavidCarlisleComente, esta resposta funciona para mim no preâmbulo. Isto tem três partes: a primeira desativa a maioria dos avisos de caixa na página onde \maketitle
é emitido. O próximo bloco retorna os valores do aviso da caixa aos valores anteriores no final da página onde \maketitle
é emitido.
O terceiro bloco só é necessário para a journal
opção, acredito. Ele substitui a \vbox
do código principal por \parbox[c][15pt][c]
, mantendo todo o espaçamento e ainda removendo o
\vbox muito cheio (5,0pt muito alto)
avisos em páginas posteriores.
% Suppress other "Underfull hbox", "Overfull *box" just before \maketitle
\pretocmd{\maketitle}{%
\newcounter{titlepage}\setcounter{titlepage}{\value{page}}%
\newcount\oldhbadness\oldhbadness=\hbadness\hbadness=10000
\newdimen\oldhfuzz\oldhfuzz=\hfuzz\hfuzz=162pt%
\newdimen\oldvfuzz\oldvfuzz=\vfuzz\vfuzz=22pt%
}{}{Error.}
% Re-enable on following page
\AtBeginShipout{%
\ifnumequal{\value{page}}{\value{titlepage}}{%
\global\hbadness=\oldhbadness%
\global\hfuzz=\oldhfuzz%
\global\vfuzz=\oldvfuzz%
}{}%
}
% Fix "Overfull \vbox (5.0pt too high)" on later pages
\patchcmd{\@evenhead}{%
\vbox{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{%
\parbox[c][15pt][c]{\textwidth}{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{}{Error.}
\patchcmd{\@oddhead}{%
\vbox{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{%
\parbox[c][15pt][c]{\textwidth}{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{}{Error.}
\makeatother
Este MWE completo demonstra o efeito da supressão de avisos e gera avisos de teste que mostram que os avisos são suprimidos apenas na página de título:
\documentclass[journal,twoside,web]{ieeecolor}
\usepackage{tmi}
\usepackage{graphicx}
\usepackage{lipsum}
\newif\ifgeneratetestwarnings
\generatetestwarningstrue
\newif\ifsuppressclasswarnings
\suppressclasswarningstrue
\ifsuppressclasswarnings
\usepackage{etoolbox}
\usepackage{atbegshi}
% Suppress other "Underfull hbox", "Overfull *box" just before \maketitle
\pretocmd{\maketitle}{%
\newcounter{titlepage}\setcounter{titlepage}{\value{page}}%
\newcount\oldhbadness\oldhbadness=\hbadness\hbadness=10000
\newdimen\oldhfuzz\oldhfuzz=\hfuzz\hfuzz=162pt%
\newdimen\oldvfuzz\oldvfuzz=\vfuzz\vfuzz=22pt%
}{}{Error.}
% Re-enable on following page
\AtBeginShipout{%
\ifnumequal{\value{page}}{\value{titlepage}}{%
\global\hbadness=\oldhbadness%
\global\hfuzz=\oldhfuzz%
\global\vfuzz=\oldvfuzz%
}{}%
}
% Fix "Overfull \vbox (5.0pt too high)" on later pages
\makeatletter
\patchcmd{\@evenhead}{%
\vbox{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{%
\parbox[c][15pt][c]{\textwidth}{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{}{Error.}
\patchcmd{\@oddhead}{%
\vbox{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{%
\parbox[c][15pt][c]{\textwidth}{\color{subsectioncolor}\hrule height1pt width43pc depth0pt}%
}{}{Error.}
\makeatother
\fi
\begin{document}
\title{Title}
\author{Author \thanks{Thanks.}}
\maketitle
\lipsum[1-17]
\ifgeneratetestwarnings
This underfuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuull hbox should be a warning.
This \mbox{overfuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuull} hbox, too (4.43956pt).
\parbox[c][2in][s]{4cm}{This underfull vbox, too.}
This overfull vbox, too (2.0pt):\newpage
\begin{minipage}[t][690pt]{\textwidth}\end{minipage}
\fi
\end{document}