Shifting from the LaTeX Pressbooks Plugin to MathJax

If you have created your book using the LaTeX Plugin in Pressbooks, and you wish to convert to MathJax, you can do the following:

  1. Disabled the WP Latex plugin in the plugins menu. Once you disable this plugin, MathJax is automatically enabled.
  2. Under “Tools”  select “Search and Replace.”
  3. First, replace the beginning code.
    • In “search for” type in: \)
    • In “replace with” type in: [latex]
    • Then “previewed replacements” to make sure there are not any add in spaces accidentally.
    • Click “Replace and Save.”
  4. Next,  replace the end code.
    • In “search for” type in: \)
    • In “replace with” type in:[/latex]
    • You should select “previewed replacements” to make sure there are not any additional spaces accidentally.
    • Next click “Replace and Save.”
  5. Check a chapter to make sure the math is rendering properly.
  6. Then remove the [latexpage] from the beginning of each chapter.
    • In “search for” type in: [latexpage]
    • In “replace with” , leave blank
    • Then click “Replace and Save.”

 

 

 

License

Icon for the Creative Commons Attribution 4.0 International License

LaTeX in Pressbooks: An Introduction and Workflow Copyright © by Caroline Daniels and Arianna is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book