54 LaTeX Support – Villy Christensen
Book: https://pressbooks.bccampus.ca/ewemodel
Date: October 14th, 2023
Issue:
- Can't see Big Integral in MathJax settings (doesn't even show un-rendered code)
- Having rendering issues with LaTeX
- Can't use AsciiMath - doesn't render?
- Doesn't know how to label equations
Afflicted chapters:
- https://pressbooks.bccampus.ca/ewemodel/chapter/predicting-consumption/
- https://pressbooks.bccampus.ca/ewemodel/chapter/ecosim-introduction/
Other chapters with LaTeX:
- https://pressbooks.bccampus.ca/ewemodel/chapter/tutorial-time-series-fitting/
- https://pressbooks.bccampus.ca/ewemodel/chapter/fleet-effort-dynamics/
- https://pressbooks.bccampus.ca/ewemodel/chapter/lotka-volterra/
Solution:
[Enter email to him here]
Testing
1. Can't see Big Mathjax Integral
Unsure why he can't. He doesn't even see the un-rendered LaTeX equation. It's just not there.
2. Having rendering issues in MathJax
Predicting Consumption
| Code | Render | |
|---|---|---|
| Using singular subscript | [latex]C_{ij}= \frac{a_{ij} v_{ij} B_i P_j}{2v_{ij} + a_{ij} P_j}[/latex] |
[latex]\Large C_{ij}= \frac{a_{ij} v_{ij} B_i P_j}{2v_{ij} + a_{ij} P_j}[/latex] |
| Using double subscript | [latex]C_{i_j}= \frac{a_{i_j} v_{i_j} B_i P_j}{2v_{i_j} + a_{i_j} P_j}[/latex] |
[latex]\Large C_{i_j}= \frac{a_{i_j} v_{i_j} B_i P_j}{2v_{i_j} + a_{i_j} P_j}[/latex] |
| Original | Solution |
|---|---|
[latex]C_i_j=\frac{a_i_j v_i_j B_i P_j}{2v_i_j+a_i_j P_j}[/latex] |
[latex]C_{ij}= \frac{a_{ij} v_{ij} B_i P_j}{2v_{ij} + a_{ij} P_j}[/latex] |
[latex]C_i_j=\frac{a_i_j v_i_j B_i P_j T_i T_j S_i_j M_i_j/D_j}{v_i_j + v_i_j T_i M_i_j + a_i_j M_i_j P_j S_i_j T_j /D_j}[/latex] |
[latex]C_{i_j}=\frac{a_{i_j} v_{i_j} B_i P_j T_i T_j S_{i_j} \frac{M_{i_j}}{D_j}}{v_{i_j} + v_{i_j} T_i M_{i_j} + a_{i_j} M_{i_j} P_j S_{i_j} \frac{T_j}{D_j}}[/latex] |
| [latex]D_j=\frac{h_j T_j}{1+\sum_k a_k_j B_k T_k M_k_j}[/latex] | |
| [latex]C_i_j=a_i_j \times B_i \times T_j \times S_i_j[/latex] | |
| [latex]T_{i,j}=T_{i,j}+(1-a+\frac{a \times c_{i,opt}}{c_{i,t-1}})}[/latex] |
An introduction to Ecosim
3. Can't use AsciiMath
4. Doesn't know how to label equations
Using \tag{label}
| Equation rendered | Code |
|---|---|
| [latex]x -5 = 2 \tag{1}[/latex] [latex]x - 4 = 8 \tag{2}[/latex] [latex]x - 4 = 9 \tag{3}[/latex] |
[latex]x -5 = 2 \tag{1}[/latex][latex]x - 4 = 8 \tag{2}[/latex][latex]x - 4 = 9 \tag{3}[/latex] |
Using \begin{equation} ... \end{equation} - only in QuickLaTeX
[latex]\begin{equation} x - 5 = 2 \end{equation}[/latex]
[latex]\begin{equation} x - 4 = 8 \end{equation}[/latex]
[latex]\begin{equation} x - 4 = 9 \end{equation}[/latex]