Skip to content

how do I include a .tex macros file inside every ipynb file/ chapter? #739

Answered by mmcky
murphyk asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @murphyk.

This has recently been updated in the docs but it is currently only reflected in the latest version and not reflected on stable yet.

https://jupyterbook.org/en/latest/advanced/sphinx.html (tag: latest bottom right)

mathjax v3 has updated some internal tag definitions so the TeX and Macros should all be lower case in the _config.yml

sphinx:
  config:
    mathjax_config:
      tex:
        macros:
          "N": "\\mathbb{N}"
          "floor": ["\\lfloor#1\\rfloor", 1]

Would you mind giving that a try to see if that fixes your issue?

P.S. Machine Learning: A Probabilistic Perspective is a core member of my machine learning book library -- a beautiful book ❤️

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@patel-zeel
Comment options

@mmcky
Comment options

@patel-zeel
Comment options

@mmcky
Comment options

@patel-zeel
Comment options

Answer selected by murphyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants