Support Team
posted this
25 December 2024
Hello Michel,
Thank you for your feedback.
We understand the importance of having the ability to format text with superscripts and subscripts, such as r2 for mathematical equations or H2O for chemical formulas.
Currently, Nicepage does not directly support these formatting options. However, we value your suggestion and will forward it to our development team for consideration. In the meantime, you may consider using images or embedding custom HTML/CSS for such specialized formatting.
1. Superscript and Subscript Tags
HTML provides for superscripts and for subscripts:
<!-- Superscript Example -->
The area of a circle is r<sup>2</sup>.
<!-- Subscript Example -->
Water is represented as H<sub>2</sub>O.
Output:
The area of a circle is r2
Water is represented as H2O
2. Using LaTeX with MathJax
For advanced mathematical typesetting, you can use MathJax, a JavaScript library for rendering LaTeX in web pages.
Step 1: Include MathJax in Your HTML
Add the MathJax script in the Site Settings >> Additional head HTML section :
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
Step 2: Write LaTeX Inline
Use LaTeX notation for formulas in HTML text box:
<p>The area of a circle is \( r^2 \).</p>
<p>Water is represented as \( H_2O \).</p>
We appreciate your understanding and patience. If you have any questions or suggestions, please feel free to reach out.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team
Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp