jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

How to config displaymath auto number? #54

Closed hexsix closed 3 years ago

hexsix commented 3 years ago

I wanna auto number the displaymath. Can I do that?

jeffreytse commented 3 years ago

Hi @hexsix

Do you mean automatically number all equations entered in display mode?

Thanks and regards

hexsix commented 3 years ago

@jeffreytse Yes, that's it

jeffreytse commented 3 years ago

Hi @hexsix

The TeX input processing in MathJax can be configured to add equation numbers to displayed equations automatically. This functionality is turned off by default, but it is easy to configure. You can get the detail by this document.

For reaching out this functionality, you should add the related configuration for this plugin, the following snippet in _config.yml is convenient for you:

# Where things are
jekyll-spaceship:
  mathjax-processor:
    config:
      tex:
        tags: 'ams'

If you want to learn more about the configuration of this plugin, please see here.

Thanks and regards

hexsix commented 3 years ago

Thank you @jeffreytse It works.

jeffreytse commented 3 years ago

Hi, @hexsix

You're welcome. And welcome to star this project for further updates in the future. : )

Thanks and regards