englianhu/ali-zonghui

data visualization

Closed this issue · 3 comments

Basic LaTEX formula :

$$
\begin{align*}
 Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\\ 
 &= \beta_{0} + \widetilde{\beta_{1}}X_{1} + \beta_{2}X_{2};  \widetilde{\beta_{1}} = \beta_{1} + \beta_{2}X_{2}\\
\end{align*}
$$

$$ \begin{align*} Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\\ &= \beta_{0} + \widetilde{\beta_{1}}X_{1} + \beta_{2}X_{2}; \widetilde{\beta_{1}} = \beta_{1} + \beta_{2}X_{2}\\ \end{align*} $$


Highlighed LaTEX formula :

$$
\begin{align*}
 Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\\ 
 &= \beta_{0} + {\color{Red} \widetilde{\beta_{1}}}X_{1} + \beta_{2}X_{2}; {\color{Red} \widetilde{\beta_{1}}} = \beta_{1} + \beta_{2}X_{2}\\
\end{align*}
$$

$$
\begin{align*}
Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\
&= \beta_{0} + {\color{Red} \widetilde{\beta_{1}}}X_{1} + \beta_{2}X_{2}; {\color{Red} \widetilde{\beta_{1}}} = \beta_{1} + \beta_{2}X_{2}\
\end{align*}
$$

I noticed it doesn't work...
highlight (colorful font)LaTEX formula|690x180
source image : https://www.awesomescreenshot.com/showImage?img_id=5503293

Refrence

---
title: "test"
output:
  html_document: 
    mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
---
$$
\begin{align*}
 Y& = \beta_{0} + \beta_{1}X_{1} + \beta_{2}X_{2} + \beta_{3}X_{1}X_{2}\\ 
 &= \beta_{0} + {\color{Red} \widetilde{\beta_{1}}}X_{1} + \beta_{2}X_{2}; {\color{Red} \widetilde{\beta_{1}}} = \beta_{1} + \beta_{2}X_{2}\\
\end{align*}
$$

866218e398c919597af44979cdc52e13f4efc934 1
solution : https://community.rstudio.com/t/colorised-latex-formula/84115/8?u=englianhu