Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add auto number for mathjax #53

Merged
merged 1 commit into from Apr 15, 2018

Conversation

panda-z
Copy link
Contributor

@panda-z panda-z commented Apr 4, 2018

No description provided.

@olOwOlo
Copy link
Owner

olOwOlo commented Apr 4, 2018

Hi, thank you for your pull request.
Can I use Chinese?

  • 我对 mathjax 不怎么了解,查询了下文档,看起来 extensions 不是必要的?它们是必要的吗?

  • 因为 对于较长的数学公式 #32 的原因,有如下的问题

    snipaste_20180404_225520

    \begin{equation}
      \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
      \label{eq:sample}
    \end{equation}
    

    是我的姿势不对?

@panda-z
Copy link
Contributor Author

panda-z commented Apr 8, 2018

Removed extensions.

@panda-z
Copy link
Contributor Author

panda-z commented Apr 8, 2018

The extra horizontal scroll bar is due to an incorrect margin-left of mjx-itable. A workaround is loop over all mjx-itable and modify their margin-left.

@panda-z
Copy link
Contributor Author

panda-z commented Apr 12, 2018

@olOwOlo I don't see the extra horizontal scroll bar in Firefox. However, it appears in Chromium.

@olOwOlo
Copy link
Owner

olOwOlo commented Apr 15, 2018

I don't see the extra horizontal scroll bar in Firefox. However, it appears in Chromium.

Me too...

For this theme, there is a workaround

.post .post-content .mjx-full-width {
  width: 759px;
}

@olOwOlo olOwOlo merged commit af22a48 into olOwOlo:master Apr 15, 2018
@panda-z panda-z deleted the mathjax-autonumber branch October 16, 2018 10:51
@panda-z
Copy link
Contributor Author

panda-z commented Oct 16, 2018

Another workaround is adding padding-right: 1px; for .MJXc-display

   .MJXc-display {
     overflow-x: auto;
     overflow-y: hidden;
+    padding-right: 1px;
   }

You may want to modify _content.scss to avoid the redundant horizontal scroll bar in Chrome/Chromium.

daymade pushed a commit to daymade/hugo-theme-even that referenced this pull request Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants