englianhu / ali-zonghui

🚄东方快车,🚄一带一路。分析财务产品盈亏报告、购物篮分析 https://gitee.com/englianhu
https://englianhu.wordpress.com
GNU General Public License v3.0
2 stars 1 forks source link

data visualization #6

Closed englianhu closed 4 years ago

englianhu commented 4 years ago

https://community.rstudio.com/t/colorised-latex-formula/84115?u=englianhu https://tinyurl.com/y6fo99bu

englianhu commented 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*}
$$

$$ \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

englianhu commented 4 years ago

RStudio Comunity : https://community.rstudio.com/t/colorised-latex-formula/84115/6?u=englianhu

Error Screenshot Video : https://www.youtube.com/watch?v=DOEK8VqWcP0

englianhu commented 4 years ago
---
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