On Mon, 19 Mar 2007 09:06:15 -0700 (PDT) Robert Orr <[EMAIL PROTECTED]> wrote:
> > > I don't remember where I got this but I'm sure it was > asked before and so you may find more details digging > in the archives. > > I use this preamble. > > \usepackage{color} > \usepackage{soul} > \newcommand{\boxit}[1] > > {\leavevmode\thinspace\hbox{\vrule\vtop{\vbox{\hrule\kern1pt > \hbox{\vphantom{\tt/}\thinspace{\tt#1}\thinspace}} > \kern1pt\hrule}\vrule}\thinspace} > > Then, in the text, I put an ERT > \boxit{\hl{TEXT}} > Thanks, but it seems that soul doesn't work with hebrew at all (it emits an error about failing to reconstruct the text) > > If you don't need the box around it, then you can > leave out the newcommand definition for boxit and just > use the hl{TEXT} > > --- "Paul A. Rubin" <[EMAIL PROTECTED]> wrote: > > > Micha Feigin wrote: > > > I'm trying to set a colored background for some > > definitions in my document > > > (course notes and I want to get the effect of > > using a marker to highlight some > > > things). > > > > > > using the package xcolor and the > > \colorbox{gray!30}{text} inside the definition > > > mostly achieves the desired effect, although it > > fails if I have nested > > > environments > > > > > > definition: \colorbox{gray}{ > > > blah balh > > > enumerate: > > > 1. text > > > 2. text > > > \end enumerate > > > } > > > \end definition > > > > > > throws errors (this is not the actual latex ...) > > it says, something wrong, > > > perhaps missing \item > > > > I think the problem is that a colorbox is the wrong > > kind of box (does > > not allow enumerations inside) (maybe). > > > > > > Is there a good way to achieve this? > > > > You can nest a minipage or parbox inside the > > colorbox, but unless you > > want the color to extend to the margin, you'll need > > to fiddle with the > > width of the minipage manually. I've attached a > > small example. > > > > There may be better ways to do this. (I'm no > > TeXpert.) > > > > /Paul > > > > > > > ____________________________________________________________________________________ > Looking for earth-friendly autos? > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > http://autos.yahoo.com/green_center/ >