Control: retitle -1 LaTeX assumes overfull hboxes due to changed font in 
verbatim environmen
Control: tags -1 help
Thanks

Hi,

I inspected the issue and found that the problem is not causes by make
but rather that the number of overfull hboxes are over the limit.  In
the attached snippet text.tex the problem can be reproduced.  LaTeX
claims three overfull haboxes which is actually not true since only
one text is reaching over the box boundary (see test.pdf).

The reason for these false positives is, that the authors of this LaTeX
file replaced the font that is usually used in verbatim environments by
`fontfamily=times`.  The reason is that the spacing of the fortunes
should be kept while a nicely readable font should be printed.

It seems that the length of the lines is calculated with the usual
verbatim font since all overfull hboxes have perfectly the same lenth.

The attached log file test.log also contains a hint about a problem
with the spacing:

  LaTeX Font Info:    Trying to load font information for OT1+times on input 
line 22.
  LaTeX Font Info:    No file OT1times.fd. on input line 22.
   
  LaTeX Font Warning: Font shape `OT1/times/m/n' undefined
  (Font)              using `OT1/cmr/m/n' instead on input line 22.
 
Any hints how to solve this problem are welcome.

Kind regards
    Andreas.

PS: I wonder whether the PDF might be needed at all.  Finally most
    users are using the fortunes database via fortune.  We could
    turn this bug into wishlist and skip the PDF creation step.

-- 
https://fam-tille.de
\documentclass[brazil,twoside,a4paper,12pt]{book}
\usepackage[brazil]{babel}
\usepackage{indentfirst}
% #\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{fancyvrb}
\usepackage{url}
\usepackage{float}
\usepackage{afterpage}
\usepackage{amsfonts,amsmath,amssymb}
\usepackage{calc}

\makeindex

\begin{document}
\setlength{\overfullrule}{5pt}

\newcommand{\separador}{\centering\huge$\sim\backsim$\vspace{10\lineskip}}

\begin{minipage}{\textwidth}
\begin{Verbatim}[fontfamily=times]
Comecei uma dieta. Cortei a bebida e comidas. Em quatorze dias
perdi duas semanas.
                -- Joe E. Lewis
\end{Verbatim}
\separador
\end{minipage}

\afterpage{\clearpage}
\begin{minipage}{\textwidth}
\begin{Verbatim}[fontfamily=times]
Deus, para a felicidade do homem, inventou a fé e o amor. O Diabo,
invejoso, fez o homem confundir fé com religião e amor com casamento.
                -- Machado de Assis
\end{Verbatim}
\separador
\end{minipage}

\afterpage{\clearpage}
\begin{minipage}{\textwidth}
\begin{Verbatim}[fontfamily=times]
Nunca tive problemas com droga. Só com a polícia...
                -- Keith Richards, guitarrista da banda Rolling Stones
\end{Verbatim}
\separador
\end{minipage}

\afterpage{\clearpage}
\begin{minipage}{\textwidth}
\begin{Verbatim}[fontfamily=times]
Não é que eu tenha medo de morrer. É que eu não quero estar lá na hora que
isso acontecer.
                -- Woody Allen
\end{Verbatim}
\separador
\end{minipage}


\end{document}
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2025/dev/Debian) 
(preloaded format=pdflatex 2025.5.6)  6 MAY 2025 13:40
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2024-11-01> patch level 2
L3 programming layer <2025-01-18>
(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
Document Class: book 2024/06/29 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk12.clo
File: bk12.clo 2024/06/29 v1.4n Standard LaTeX file (size option)
)
\c@part=\count196
\c@chapter=\count197
\c@section=\count198
\c@subsection=\count199
\c@subsubsection=\count266
\c@paragraph=\count267
\c@subparagraph=\count268
\c@figure=\count269
\c@table=\count270
\abovecaptionskip=\skip49
\belowcaptionskip=\skip50
\bibindent=\dimen141
)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2025/02/14 v25.4 The multilingual framework for pdfLaTeX, LuaLaT
eX and XeLaTeX
\babel@savecnt=\count271
\U@D=\dimen142
\l@unhyphenated=\language33

(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@readstream=\read2
\bbl@dirlevel=\count272

(/usr/share/texlive/texmf-dist/tex/generic/babel-portuges/brazil.ldf
Language: portuges 2021/07/09 v1.2t Portuguese support from the babel system
Package babel Info: Hyphen rules for 'brazil' set to \l@portuguese
(babel)             (\language15). Reported on input line 111.
Package babel Info: Making " an active character on input line 143.
))
(/usr/share/texlive/texmf-dist/tex/latex/tools/indentfirst.sty
Package: indentfirst 2023/07/02 v1.03 Indent first paragraph (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2024/02/08 v1.3d Input encoding file
\inpenc@prehook=\toks17
\inpenc@posthook=\toks18
)
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
Package: fancyhdr 2025/02/07 v5.2 Extensive control of page headers and footers

\f@nch@headwidth=\skip51
\f@nch@offset@elh=\skip52
\f@nch@offset@erh=\skip53
\f@nch@offset@olh=\skip54
\f@nch@offset@orh=\skip55
\f@nch@offset@elf=\skip56
\f@nch@offset@erf=\skip57
\f@nch@offset@olf=\skip58
\f@nch@offset@orf=\skip59
\f@nch@height=\skip60
\f@nch@footalignment=\skip61
\f@nch@widthL=\skip62
\f@nch@widthC=\skip63
\f@nch@widthR=\skip64
\@temptokenb=\toks19
)
(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Package: fancyvrb 2024/01/20 4.5c verbatim text (tvz,hv)

(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks20
)
\FV@CodeLineNo=\count273
\FV@InFile=\read3
\FV@TabBox=\box52
\c@FancyVerbLine=\count274
\FV@StepNumber=\count275
\FV@OutFile=\write3
)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip17
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
)
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count276
\float@exts=\toks21
\float@box=\box53
\@float@everytoks=\toks22
\@floatcapt=\box54
)
(/usr/share/texlive/texmf-dist/tex/latex/tools/afterpage.sty
Package: afterpage 2023/07/04 v1.08 After-Page Package (DPC)
\AP@output=\toks23
\AP@partial=\box55
\AP@footins=\box56
)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks24
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2024/11/05 v2.17t AMS math features
\@mathmargin=\skip65

For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text

(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks25
\ex@=\dimen143
))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen144
)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2022/04/08 v2.04 operator names
)
\inf@bad=\count277
LaTeX Info: Redefining \frac on input line 233.
\uproot@=\count278
\leftroot@=\count279
LaTeX Info: Redefining \overline on input line 398.
LaTeX Info: Redefining \colon on input line 409.
\classnum@=\count280
\DOTSCASE@=\count281
LaTeX Info: Redefining \ldots on input line 495.
LaTeX Info: Redefining \dots on input line 498.
LaTeX Info: Redefining \cdots on input line 619.
\Mathstrutbox@=\box57
\strutbox@=\box58
LaTeX Info: Redefining \big on input line 721.
LaTeX Info: Redefining \Big on input line 722.
LaTeX Info: Redefining \bigg on input line 723.
LaTeX Info: Redefining \Bigg on input line 724.
\big@size=\dimen145
LaTeX Font Info:    Redeclaring font encoding OML on input line 742.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 743.
\macc@depth=\count282
LaTeX Info: Redefining \bmod on input line 904.
LaTeX Info: Redefining \pmod on input line 909.
LaTeX Info: Redefining \smash on input line 939.
LaTeX Info: Redefining \relbar on input line 969.
LaTeX Info: Redefining \Relbar on input line 970.
\c@MaxMatrixCols=\count283
\dotsspace@=\muskip18
\c@parentequation=\count284
\dspbrk@lvl=\count285
\tag@help=\toks26
\row@=\count286
\column@=\count287
\maxfields@=\count288
\andhelp@=\toks27
\eqnshift@=\dimen146
\alignsep@=\dimen147
\tagshift@=\dimen148
\tagwidth@=\dimen149
\totwidth@=\dimen150
\lineht@=\dimen151
\@envbody=\toks28
\multlinegap=\skip66
\multlinetaggap=\skip67
\mathdisplay@stack=\toks29
LaTeX Info: Redefining \[ on input line 2953.
LaTeX Info: Redefining \] on input line 2954.
)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
)
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2023/07/08 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count289
\calc@Bcount=\count290
\calc@Adimen=\dimen152
\calc@Bdimen=\dimen153
\calc@Askip=\skip68
\calc@Bskip=\skip69
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count291
\calc@Cskip=\skip70
)
\@indexfile=\write4
\openout4 = `test.idx'.


Writing index file test.idx
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2024-05-08 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count292
\l__pdf_internal_box=\box59
)
(./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Trying to load font information for OT1+times on input line
 22.
LaTeX Font Info:    No file OT1times.fd. on input line 22.


LaTeX Font Warning: Font shape `OT1/times/m/n' undefined
(Font)              using `OT1/cmr/m/n' instead on input line 22.

LaTeX Font Info:    Trying to load font information for U+msa on input line 27.

(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info:    Trying to load font information for U+msb on input line 27.


(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
Overfull \hbox (17.62482pt too wide) in paragraph at lines 21--29
[]$[]$ |
 []


Overfull \hbox (17.62482pt too wide) in paragraph at lines 31--39
[]$[]$ |
 []


Overfull \hbox (17.62482pt too wide) in paragraph at lines 41--48
[]$[]$ |
 []


Overfull \hbox (17.62482pt too wide) in paragraph at lines 50--58
[]$[]$ |
 []



[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}

] (./test.aux)
 ***********
LaTeX2e <2024-11-01> patch level 2
L3 programming layer <2025-01-18>
 ***********


LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 ) 
Here is how much of TeX's memory you used:
 3862 strings out of 474571
 61050 string characters out of 5753386
 458196 words of memory out of 5000000
 27012 multiletter control sequences out of 15000+600000
 568472 words of font info for 73 fonts, out of 8000000 for 9000
 311 hyphenation exceptions out of 8191
 56i,5n,65p,217b,233s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr
/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share
/texlive/texmf-dist/fonts/type1/public/amsfonts/symbols/msam10.pfb>
Output written on test.pdf (1 page, 34186 bytes).
PDF statistics:
 23 PDF objects out of 1000 (max. 8388607)
 13 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Attachment: test.pdf
Description: Adobe PDF document

Reply via email to