COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

can I generate a vbox with its natural width?

• Email
• Follow

For example, the following command
\vbox{abc\\def\\ghijkl}
would generate a vbox that its width is \hsize (i.e. the current
linewidth).
Can I generate a vbox that its width is the maximum of natural width
of all of its rows.
Specifically, here I want to generate a vbox that its width is the
maximum of the natural width of
\hbox{abc},\hbox{def},\hbox{ghijkl}.

 0
Reply rockyzhz (6) 12/13/2009 10:24:11 AM

See related articles to this posting

On 12=D4=C213=C8=D5, =CF=C2=CE=E76=CA=B124=B7=D6, Rocky Zhang <rocky...@gma=
il.com> wrote:
> For example, the following command
> \vbox{abc\\def\\ghijkl}
> would generate a vbox that its width is \hsize (i.e. the current
> linewidth).
> Can I generate a vbox that its width is the maximum of natural width
> of all of its rows.
> Specifically, here I want to generate a vbox that its width is the
> maximum of the natural width of
> \hbox{abc},\hbox{def},\hbox{ghijkl}.

In other words, if I send the string 'abc\\def\\ghijkl' as the
parameter #1, how to get the maximum natural width of all of its rows?

 0

On Dec 13, 2:24=A0am, Rocky Zhang <rocky...@gmail.com> wrote:
> Specifically, here I want to generate a vbox that its width is the
> maximum of the natural width of
> \hbox{abc},\hbox{def},\hbox{ghijkl}.

f182

This was just discussed!  Don't people pay attention, or search with

Donald Arseneau

 0

On 12=D4=C213=C8=D5, =CF=C2=CE=E76=CA=B145=B7=D6, Donald Arseneau <a...@tri=
umf.ca> wrote:
> On Dec 13, 2:24 am, Rocky Zhang <rocky...@gmail.com> wrote:
>
> > Specifically, here I want to generate a vbox that its width is the
> > maximum of the natural width of
> > \hbox{abc},\hbox{def},\hbox{ghijkl}.
>
>
> This was just discussed!  Don't people pay attention, or search with
>
> Donald Arseneau

Ooops..., I really should search this newsgroup before I posted. Thank
you very much!

 0

Donald Arseneau wrote:
> On Dec 13, 2:24�am, Rocky Zhang <rocky...@gmail.com> wrote:
>> Specifically, here I want to generate a vbox that its width is the
>> maximum of the natural width of
>> \hbox{abc},\hbox{def},\hbox{ghijkl}.
>
>
> This was just discussed!  Don't people pay attention, or search with

a) No :-)

b) Google's newsgroup search is broken.

///Peter

 0