Skip to content

Several svg for one equation (feature request) #58

@pozitron57

Description

@pozitron57

May it be possible to output several svg files instead of one for an equation?

May be useful for printing long equations (that can break) inline with normal text. For example, if $x+2=a+b+c+d$ will output the first svg containing x+2=, and the second svg containing a+b+c+d, the text in the paragraph may be aligned better when the second svg goes to the next line.

In some cases such behavior is undesirable. Here are some ideas:

  • Perhaps, a config option break=True/False is a good thing to have.
  • Also, it could be useful to be able to configure something like break_after=[+,-,=,...] to specify elements after which equations can break.
  • Possibility to set break option (True/False) for a single equation. (E.g. $x+d=a+b+c+d\nobreak$)

One problem I don't see a way to solve is the height.
For example, a "tall" fraction is left on one line and the rest ("short") goes to the next line. Two svg files for $\dfrac{x^2}{A_{1_2}} = a+b$ differ a lot in height. But in html page you don't know whether both svg will stay on the same line or not, it depends on user.

It is just a raw idea, I am not sure if it is possible to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions