[XeTeX] colored background for a paragraph

Cyril Niklaus cyril.niklaus at gmail.com
Sun Sep 23 16:21:16 CEST 2007


On 23 sept. 07, at 19:04, Peter Dyballa wrote:

>
> Am 23.09.2007 um 06:10 schrieb Cyril Niklaus:
>
>> \usepackage{xcolor}
>>
>> \colorbox {lightgray}{paragraph}
>>
>
> In this case it's necessary to use a construct like this:
>
> 	\colorbox{lightgray}{
> 	 \begin{minipage}{\linewidth-3\fboxsep}	% approximation, 2 \fboxsep
> at least because of surrounding background around the mini page
> 	   paragraph
> 	 \end{minipage}
> 	}
>

Ah, I did not think of using a minipage environement, thank you very  
much for this!

> The boxitpara environment does not work with recent versions of
> XeTeX. In SVN versions are available that support PSTricks with
> xdvipdfmx as output driver.
It had been mentionned I think on the list, but I'm not sure I want  
to use SVN just yet!

Danke vielmals
Cyril


More information about the XeTeX mailing list