[OS X TeX] colorbox

Franck Pastor franck.pastor at skynet.be
Mon Jul 28 09:02:37 EDT 2008


Le 28-juil.-08 à 14:47, Alain Schremmer a écrit :

>
> On Jul 28, 2008, at 3:12 AM, Alain Matthes wrote:
>
>>
>> Le 28 juil. 08 à 05:36, Alan Munn a écrit :
>>
>>> At 10:28 PM -0400 7/27/08, Alain Schremmer wrote:
>>>> This is just a LaTeX question but I have already wasted a couple  
>>>> of hours on it. So, I hope, Š
>>>>
>>>> I would like to have the same highlighting effect as in
>>>>
>>>> 	$f(x)$\colorbox{yellow}{$\left.\right|_{x:=-3}$}
>>>>
>>>> but of course, since the delimiters do not take the height of  
>>>> the front into account, with
>>>>
>>>> 	$\dfrac{x}{x-1}$\colorbox{yellow}{$\left.\right|_{x:=-3}$}
>>>>
>>>> the vertical bar is too short and I am not able to move \left.  
>>>> to the left of the fraction.
>>>
>>> How about:
>>>
>>> \newlength{\foo}
>>> \settoheight{\foo}{$\dfrac{x}{x-1}$}
>>>
>>> $\dfrac{x}{x-1}$\colorbox{yellow}{$\left.\rule{0pt}{\foo}\right|_ 
>>> {x:=-3}$}
>>>
>>
>> Why not :
>>
>> $\dfrac{x}{x-1}$\colorbox{yellow}{$\bigg|_{x:=-3}$}
>
> That would work well enough for me too except that I can't remember  
> the LaTeX succession \Bigg, \bigg, etc and would have to pull out  
> the LaTeX companion each time and, by now, (a) it is falling apart,  
> (b) I don't use it enough to warrant buying another one

Is there not any contradiction between (a) and (b)? ;-)

> and (c) I don't know how to reconstruct books.
>
> Grateful regards
> --schremmer

Here is this succession as I remember it (with a little mnemotechnic  
help):

\big < \Big < \bigg (as in "bigger") < \Bigg…

HTH,

Franck Pastor






More information about the MacOSX-TeX mailing list