Add mathematical formulas to the experiment notebook
- Christophe Chazot
- 2 days ago
- 2 min read
FizziQ's Text Input module is a sophisticated component that allows users to enter and display rich text, with special support for mathematical formulas in LaTeX. This user guide will guide you through the various features available.
1. Standard text entry
The interface offers a text field where you can enter comments, observations or explanations.
The text is automatically formatted and displayed in a readable font.
In display mode, if no text is present, a "Write a comment" message is displayed.
2. Support for mathematical formulas (LaTeX)
Manually inserting formulas
You can insert mathematical formulas directly using LaTeX syntax, either using the $$formula$$ format or the [formula] format
Automatic conversion of formulas
The module has an automatic converter that detects and transforms simple mathematical expressions into LaTeX code.
For example, if you write [x_1^2], it will automatically be converted to $$x_{1}^{2}$$.
Types of expressions recognized automatically:
Indices: x_1 → $$x_{1}$$
Exponents: x^2 → $$x^{2}$$
Fractions: (a+b)/(c+d) → $$\frac{a+b}{c+d}$$
Square roots: sqrt(x) → $$\sqrt{x}$$
Greek letters: alpha, beta, etc. → $$\alpha$$, $$\beta$$, etc.
3. Formula Editor Interface
The formula editor offers an intuitive interface organized into tabs:
"Basic" tab
Fractions
Square root
Exhibitors
Clues
nth root
"Advanced" tab
Integrals
Are
Products
Boundaries
Matrices
Derivatives
Systems of equations
Vectors
"Symbols" tab
Complete collection of Greek symbols (lowercase and uppercase)
Alpha, Beta, Gamma, etc.
4. Display and Editing Modes
Display mode: displays text with correctly rendered LaTeX formulas
Edit mode: allows you to modify text and formulas
"Validate" button: saves the changes and returns to display mode
Support for PDF export: the module can adjust its display for PDF export
Conclusion
The text input module makes it easy to create scientific documents with complex mathematical formulas, making your observations and analyses more accurate and professional.
Comments