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:

<math> 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]

<math> ERROR with f:\Z_2^n \to \Z_2 in [bent function]

<math> ERROR with \frac = \frac in [circle of Apollonius]

<math> ERROR with \and in [conjunction]

<math> ERROR with n\in\N in [elementary symmetric polynomial]

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

<math> ERROR with f: \R^m\rightarrow\R in [graph]

<math> ERROR with a_i \isin R in [group ring]

<math> ERROR with \R^3 in [halfway model]

<math> 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]

<math> ERROR with \isin in [supermodular]

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

Issue Analytics

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

github_iconTop GitHub Comments

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.

lasconiccommented, Dec 18, 2021

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

Read more comments on GitHub >

github_iconTop 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...
Read more >
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.
Read more >
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.
Read more >
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......
Read more >
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...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

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

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found