# [LON-CAPA-users] Strike through LaTex

Itay itayf at nospammail.net
Mon Mar 23 14:52:47 EDT 2015

Perhaps something like this? (not tested in Capa)

<m>$$\LARGE \newcommand*{\strikethrough}{\rule[0.5ex]{3em}{0.5pt}\hspace{-3em}} \frac{(x-2)\strikethrough(x+2)}{(x+2)\strikethrough(x+2)}$$</m>

I added '$$' and '$$' at the beginning and end of the element. I believe
they are required.

If it works for you, use the parameters of the \rule command to adjust
the display of the stroke.

Best, Itay

On Mon, Mar 23, 2015, at 08:29 PM, Bayu Irjanto wrote:
> Hi,
>
> I have been having difficulty to display a strike through line in a
> math LaTex formula on a html page. The picture attached is how I want
> it to look like.
>
> Below is the Math Latex form that I have and I am trying to make it
> look like the picture attached.
>
> <m>\LARGE
\frac{\left(x-2\right)\left(x+2\right)}{\left(x+2\right)\left(x+2\right)}\</m>

>
> Thanks,
>
> Bayu
> _________________________________________________
> LON-CAPA-users mailing list LON-CAPA-users at mail.lon-capa.org