bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overfull box in printed toc with @/


From: Gavin Smith
Subject: Re: overfull box in printed toc with @/
Date: Tue, 19 Sep 2023 21:08:45 +0100

On Tue, Sep 19, 2023 at 10:51:26AM -0600, Karl Berry wrote:
> Hi Gavin - with this input file:
> 
> \input texinfo
> @contents
> @chapter Test
> @section Sec
> @subsection 
> foofoo@code{\DeclareRobustCommand@{@var{cmd}@}[@var{num}][@var{default}]@/@{@var{definition}@}
>  }
> @bye
> 
> I get an overfull box in the toc (texinfo.tex version 2023-09-12.17):
> 
> Overfull \hbox (65.62492pt too wide) in paragraph at lines 3--3
>  [][][]@textrm foofoo@texttt \DeclareRobustCommand{@textttsl cmd@texttt 
> }[@text
> ttsl num@texttt ][@textttsl default@texttt ] |
> 
> The subsection title is painfully long, but it has to be, so I inserted
> an @/ to allow a line break. The break happens but the line before the
> break gets an overfull box, although no text is near the margin.
> I'll attach the pdf I got (and .log, what the heck). --thanks, karl.
> 

I had a change to this code sitting waiting to make, and when I tried
it, it fixed this problem.  It removed some code (which I'd added
myself in the past), and in this case simpler is evidently better.

So I've commited the change, rather than waiting until after the next
release, as I'd previously intended.

Please let us know if the change works ok with your manual and if there
are any regressions.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]