Re: fbox with a predefined width

2006-01-16 Thread Paul Smith
On 1/16/06, Herbert Voss <[EMAIL PROTECTED]> wrote: > LyX isn't made for TeX code, this is the reason why you > shouldn't mix ERT and LyX text. Write the > \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} > _only_ in ERT. At least you need a % > > \fbox{\makebox[\widthof{Exercise 23}][l]{% > E

Re: fbox with a predefined width

2006-01-16 Thread Herbert Voss
Paul Smith wrote: On 1/16/06, Herbert Voss <[EMAIL PROTECTED]> wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebo

Re: fbox with a predefined width

2006-01-16 Thread Paul Smith
On 1/16/06, Herbert Voss <[EMAIL PROTECTED]> wrote: > >>\fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} > >> > >>\fbox{Exercise 23} > > > > Thanks, Herbert. Is it possible to use left alignment (only inside the > > box) for the two boxes? I tried \raggedleft, but with no success. > > \fbox{\make

Re: fbox with a predefined width

2006-01-16 Thread Herbert Voss
Paul Smith wrote: \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23} Thanks, Herbert. Is it possible to use left alignment (only inside the box) for the two boxes? I tried \raggedleft, but with no success. \fbox{\makebox[\widthof{Exercise 23}][l]{Exercise 1}} Herbert

Re: fbox with a predefined width

2006-01-16 Thread Paul Smith
On 1/16/06, Herbert Voss <[EMAIL PROTECTED]> wrote: > > I would like to box the text > > > > Exercise 1 > > > > in such a way that the box of the text > > > > Exercise 23 > > > > has the same width of the one surrounding "Exercise 1". I tried \fbox, > > but with no success. > > with package calc >

Re: fbox with a predefined width

2006-01-16 Thread Herbert Voss
Paul Smith wrote: I would like to box the text Exercise 1 in such a way that the box of the text Exercise 23 has the same width of the one surrounding "Exercise 1". I tried \fbox, but with no success. with package calc \fbox{\makebox[\widthof{Exercise 23}]{Exercise 1}} \fbox{Exercise 23}