# [OS X TeX] colorbox

Alan Munn amunn at msu.edu
Sun Jul 27 23:36:18 EDT 2008

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.

\settoheight{\foo}{$\dfrac{x}{x-1}$}
$\dfrac{x}{x-1}$\colorbox{yellow}{$\left.\rule{0pt}{\foo}\right|_{x:=-3}$}
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.880359947681427, "perplexity": 5241.231901687499}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-40/segments/1600400198942.13/warc/CC-MAIN-20200921050331-20200921080331-00559.warc.gz"}