Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

# Find a way to support custom Math expressions

See original GitHub issue

Sample output of the english Wiktionary parsing:

[itex] ERROR with \begin{align}\frac{\pi}{2} & = \prod_{n=1}^{\infty} \frac{ 4n^2 }{ 4n^2 - 1 } = \prod_{n=1}^{\infty} \left(\frac{2n}{2n-1} \cdot \frac{2n}{2n+1}\right) \\[6pt]& = \Big(\frac{2}{1} \cdot \frac{2}{3}\Big) \cdot \Big(\frac{4}{3} \cdot \frac{4}{5}\Big) \cdot \Big(\frac{6}{5} \cdot \frac{6}{7}\Big) \cdot \Big(\frac{8}{7} \cdot \frac{8}{9}\Big) \cdot \; \cdots \\\end{align} in [Wallis product]

[itex] ERROR with f:\Z_2^n \to \Z_2 in [bent function]

[itex] ERROR with \frac = \frac in [circle of Apollonius]

[itex] ERROR with \and in [conjunction]

[itex] ERROR with n\in\N in [elementary symmetric polynomial]

[itex] ERROR with (x_1, x_2, \ldots, x_m, y)\in\R^{m+1} in [graph]

[itex] ERROR with f: \R^m\rightarrow\R in [graph]

[itex] ERROR with a_i \isin R in [group ring]

[itex] ERROR with \R^3 in [halfway model]

[itex] ERROR with \begin{align}\rho(g, h) (0,x_1,\ldots,x_k) &= g(x_1,\ldots,x_k) \\\rho(g, h) (y+1,x_1,\ldots,x_k) &= h(y,\rho(g, h) (y,x_1,\ldots,x_k),x_1,\ldots,x_k)\,\end{align} in [primitive recursion]

[itex] ERROR with \isin in [supermodular]


I guess Mediawiki is using custom symbols somehow. We should find a way to handle them.

### Issue Analytics

• State:
• Created 2 years ago
• Comments:9 (3 by maintainers)

#### Top GitHub Comments

1reaction
lasconiccommented, Feb 3, 2022

I found why the few words using \begin{align} don’t work.

render_expr = f"{expr}" if expr.startswith("\\begin{align}") else f"${expr}$"


would fix it but we need to change the IMAGE_CSS… Needs more work.

1reaction
lasconiccommented, Dec 18, 2021

Note for later, to debug latex output, add "-d -1" in dvioptions

#### Top Results From Across the Web

Examples of using math expression smart values
You can use math expressions as smart values to insert or set values of numeric custom fields. These can be used anywhere where...
Equatio - Equation Writer to Create Accessible Digital Math ...
Create complex maths, chemistry and physics expressions and formulas using keyboard, touchscreen or voice recognition. Try it for free.
Writing mathematical expressions - GitHub Docs
Use Markdown to display mathematical expressions on GitHub. ... MathJax supports a wide range of LaTeX macros, and several useful accessibility extensions.
Math Expressions | Pre-K-6 Common Core Math Curriculum
Math Expressions is a proven HMH Pre-K–6 common core curriculum that helps make sense of math by exploring and demonstrating understanding of key......
Creating a CloudWatch alarm based on a metric math ...
To create an alarm based on a metric math expression, choose one or more CloudWatch metrics to use in the expression. Then, specify...

#### Troubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free