Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Peter Flynn Newsgroups: comp.text.tex Subject: Re: Overfull \hbox (78.88861pt too wide) in paragraph Date: Mon, 10 Mar 2025 12:15:00 +0000 Organization: Usenet Labs Bozon etector Facility Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net to8WQLEeiCIYVTLEgs0jcQ3iYFX+CQXlWCLWsqZ4WX8l8HViei Cancel-Lock: sha1:hujxXi6r6s5aXXpGm5agvxMkppc= sha256:HBjV2ZJvhmtcOUUAphJyK8SDFCDFHc2wPhrgYXkJSSc= User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: Bytes: 1627 On 10/03/2025 09:17, Stefan Ram wrote: > Jinsong Zhao wrote or quoted: >> The \TeX{} way: \vtop{some codes here} >> Overfull \hbox (78.88861pt too wide) in paragraph at lines 3--4 > > Inside the "vtop" there's a paragraph that wraps to the current > page width. That's way too wide! But we can nip that in the bud > by first tucking the text into an "hbox". > > \documentclass{article} > \begin{document} > The \TeX{} way: \vtop{\hbox{some codes here}} > \end{document} Or you can set the desired width inside the \vtop, eg The \TeX{} way: \vtop{\hsize3cm some codes here} But it's hard to know because you don't say what you are trying to do. Peter