Sujet : Re: Overfull \hbox (78.88861pt too wide) in paragraph
De : jszhao (at) *nospam* yeah.net (Jinsong Zhao)
Groupes : comp.text.texDate : 10. Mar 2025, 16:28:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqn0e8$1dnuf$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
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