LaTeX Questions Answered

44 How do you write a LaTeX equation in Pressbooks?

The simplest and best way to write a LaTeX equation in Pressbooks is to use the delimiters [latex]…[/latex] to mark the boundaries between LaTeX and regular text. If you are using the British Columbia/Yukon Open Authoring Platform (pressbooks.bccampus.ca), MathJax will be activated and ready to render whatever you write between these shortcodes into clean, readable mathematical expressions. You can write a LaTeX equation both in running text and on its own line.

For example, we all know that [latex]a^2+b^2=c^2[/latex] is the Pythagorean theorem. Here it is again, centred and on its own line:

[latex]a^2+b^2=c^2[/latex]

License

Icon for the Creative Commons Attribution 4.0 International License

Pressbooks Guide by BCcampus is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book