On 2025/3/10 20:15, Peter Flynn wrote:
On 10/03/2025 09:17, Stefan Ram wrote:
Jinsong Zhao <[email protected]> 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
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)