Re: create white box (multiple lines) which adapts to the text width?

Otfried Cheong <[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Organization Ipe Headquarters
Message-ID <[email protected]>
On 10/27/2011 04:00 AM, M wrote:
>
> @Otfried:
> thank you, yes that's exactly what I want:
> Linebreaks are set manually and the width is adapted to the longest line.
>
> (It's about labels which contain only 1..3 words to explain the different
> parts of a photograph.
> As the width of them shall not be "too long", I want to set linebreaks
> manually.
> And the white box in the background shall make them better readable.)
>
> Any idea how to do that with LaTeX?

The obvious solution I can think of - make a label object and put:

\colorbox{white{\begin{tabular}{l}line 1\\line 2\\line 3 is 
longer\end{tabular}}

You may have to tinker with the spacing.

Cheers,
  Otfried
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.