mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Allow images in math expressions

Open NSoiffer opened this issue 6 years ago • 4 comments

Description

Math sometimes has images as part of a problem description or solution. It was be useful if mathlive allowed someone to insert (and resize) an image.

Given that images are fixed sizes boxes and are supported in browsers, it seems like this would not be too hard to support (famous last words :-).

NSoiffer avatar Oct 04 '18 21:10 NSoiffer

I would like to argue that handling images is beyond the scope of what a math editor like mathlive should do. While handling images is something you'd normally do in a rich text editor environment, a component like mathlive should stick to handling math expressions. Images, unlike symbols, are never used inside of math expressions.

Alzy avatar Oct 04 '18 22:10 Alzy

I admit it is not common to use images directly as part of an expression, but that does happen. E.g., from a Wikipedia page on knot theory: image

The more common case is when describing a problem, figures show up. mathlive allows one to mix text and math (although the UI is kind of clunky), and as part of that, including images would be useful. For example, one might have something like 'In this figure [image], f(x) is bounded by [math] and has a minimum when x=...'.

NSoiffer avatar Oct 05 '18 19:10 NSoiffer

It might make sense to implement the \inputgraphics command: https://en.wikibooks.org/wiki/LaTeX/Importing_Graphics and https://www.kwasan.kyoto-u.ac.jp/solarb6/usinggraphicx.pdf

arnog avatar Jan 08 '19 22:01 arnog

It might make sense to implement the \inputgraphics command: https://en.wikibooks.org/wiki/LaTeX/Importing_Graphics and https://www.kwasan.kyoto-u.ac.jp/solarb6/usinggraphicx.pdf

Although, handling images is beyond the scope of a math editor like MathLive, I believe this will be a valuable addition to let a user add graphics with \inputgraphics or other ways around. It could be helpful to insert symbols/ strange formulas that LATEX doesn't support natively.

SushantGautam avatar May 17 '21 06:05 SushantGautam

No additional interest expressed in a few years. Closing.

arnog avatar Dec 08 '23 22:12 arnog