Re: create white box (multiple lines) which adapts to the text width?
M <Elwood151-S0/[email protected]>
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Message-ID | <CACDC21E.D5AD%[email protected]> |
Otfried, thank you very much. That sounds great, but it does not work as expected - maybe there's a misunderstanding? What's a "paragraph" object? Type = label or type = minipage? If I use \textwidth as width in a label, I get a width of 345pt (must be defined somewhere in my document, however, my "canvas" is larger in IPE). But the box does not adjust to the width of the content. And if I use a type: minipage object, I have to define the width by hand (that's what I want to avoid). @Tim: same behavior for your example, \the\columnwidth gives 345.0 pt. Is this an error I built in in a style sheet?! Kind regards Martin > Von: Otfried Cheong <[email protected]> > Datum: Wed, 26 Oct 2011 20:22:10 +0900 > An: M <Elwood151-S0/[email protected]> > Cc: <[email protected]> > Betreff: Re: [Ipe-discuss] create white box (multiple lines) which adapts to > the text width? > > On 10/26/2011 08:16 PM, M wrote: >> When I place >> \colorbox{white}{text \par test} >> in a label, it is already pretty close to what I need - I just do not manage >> to get the linebreak. > > What about > > \colorbox{white}{\begin{minipage}{\textwidth} > text \par \text > \end{minipage}} > > Inside a paragraph object, \textwidth is automatically the width you > assigned to the paragraph object. > > Otfried > > _______________________________________________ > Ipe-discuss mailing list > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected] > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss