cotes2020 / jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.
https://chirpy.cotes.page
MIT License
7.39k stars 5.79k forks source link

Long equations do not display completely in digital devices. #760

Closed PoeticGenius closed 1 year ago

PoeticGenius commented 1 year ago

Checklist

Describe the bug

Long equations do not display completely in digital devices.

To Reproduce

Steps to reproduce the behavior:

Just visit my website to find out more.

Expected behavior

Maybe we can scroll horizontally across the equation.

Screenshots

154252706258e43de7813e18d79d7af

Environment

Command Version
ruby -v 2.7.0
gem -v 3.1.2
bundle -v 2.1.2
bundle exec jekyll -v 4.2.2
bundle info jekyll-theme-chirpy 5.2.1

Desktop

Smartphone

Additional context

cotes2020 commented 1 year ago

It seems that you modified the CSS to cause this issue. In the original edition, the mathematical formula supports horizontal scrolling.

PoeticGenius commented 1 year ago

Thanks for your generous reply. It seems that this situation is not caused by customizing css because I just change my css to original and only use another font: PlayFair. The horizontal bar can show but can not be moved. Please dive in and provide a solution.

Maybe you can try this formula in your theme and view it from phones:

$$
\frac{\partial E(\boldsymbol{w})}{\partial w_{kj}^{(2)}} = \frac{\partial E(\boldsymbol{w})}{\partial y_{k}} \frac{\partial y_k}{\partial w_{kj}^{(2)}} = (y_{k}- \hat{y}_k)z_{j} \tag{5.9}
$$

Any help is well appreciated!

DylanDijk commented 1 year ago

@PoeticGenius Was just wondering if you ended up managing to find a solution for this.

cotes2020 commented 1 year ago

So @PoeticGenius I used the formula you provided to reproduce this issue and found that it was caused by the inline style generated by MathJax.