Closed englianhu closed 4 years ago
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*}
$$
I noticed it doesn't work... source image : https://www.awesomescreenshot.com/showImage?img_id=5503293
Refrence
RStudio Comunity : https://community.rstudio.com/t/colorised-latex-formula/84115/6?u=englianhu
Error Screenshot Video : https://www.youtube.com/watch?v=DOEK8VqWcP0
---
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*}
$$
solution : https://community.rstudio.com/t/colorised-latex-formula/84115/8?u=englianhu
https://community.rstudio.com/t/colorised-latex-formula/84115?u=englianhu https://tinyurl.com/y6fo99bu