Deutsch   English   Français   Italiano  
<vqn0e8$1dnuf$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Jinsong Zhao <jszhao@yeah.net>
Newsgroups: comp.text.tex
Subject: Re: Overfull \hbox (78.88861pt too wide) in paragraph
Date: Mon, 10 Mar 2025 23:28:04 +0800
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <vqn0e8$1dnuf$1@dont-email.me>
References: <vqln1n$1213q$1@dont-email.me>
 <vtop-20250310101507@ram.dialup.fu-berlin.de>
 <m383e4FpofcU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 10 Mar 2025 16:28:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6cb4d6729130ccae8c7684d5ebe7458b";
	logging-data="1499087"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/3AwyqWsrKDA2SfqmzaBYl"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:X36YR5NbUU/vE3TjLOMa6EXpOOU=
In-Reply-To: <m383e4FpofcU1@mid.individual.net>
Content-Language: en-US
Bytes: 2150

On 2025/3/10 20:15, Peter Flynn wrote:
> On 10/03/2025 09:17, Stefan Ram wrote:
>> Jinsong Zhao <jszhao@yeah.net> 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

Thank you so much. Your solution is exactly what I need. I am trying to 
use a minted environment in the \vtop. Since minted environment could 
not be used in LR mode, so \hbox could not be used.

Best,
Jinsong