can I generate a vbox with its natural width?

  • 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

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
Reply Rocky 12/13/2009 10:28:32 AM


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}.

http://groups.google.com/group/comp.text.tex/browse_frm/thread/5164ba0825a4=
f182

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

Donald Arseneau
0
Reply Donald 12/13/2009 10:45:07 AM

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}.
>
> http://groups.google.com/group/comp.text.tex/browse_frm/thread/5164ba...
>
> This was just discussed!  Don't people pay attention, or search with
> google?
>
> Donald Arseneau

Ooops..., I really should search this newsgroup before I posted. Thank
you very much!
0
Reply Rocky 12/13/2009 11:36:11 AM

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}.
> 
> http://groups.google.com/group/comp.text.tex/browse_frm/thread/5164ba0825a4f182
> 
> This was just discussed!  Don't people pay attention, or search with
> google?

a) No :-)

b) Google's newsgroup search is broken.

///Peter
0
Reply Peter 12/13/2009 3:41:36 PM

4 Replies
315 Views

(page loaded in 0.13 seconds)

Similiar Articles:













7/25/2012 6:23:52 AM


Reply: