Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be great if mathtext.py supported LaTeX environments #5169

Closed
moorepants opened this issue Oct 2, 2015 · 6 comments
Closed

It would be great if mathtext.py supported LaTeX environments #5169

moorepants opened this issue Oct 2, 2015 · 6 comments

Comments

@moorepants
Copy link

Matrices and array environments would be useful to display with matplotlib.

Here is a stackoverflow question that is related: http://stackoverflow.com/questions/26329177/how-to-display-a-matrix-in-the-matplotlib-annotations

We'd also like support for our SymPy printing backends. See #5162 for some related info.

@tacaswell tacaswell added this to the unassigned milestone Oct 2, 2015
@tacaswell
Copy link
Member

attn @mdboom

I assume this will require a pretty major effort to implement more of latex in our mathtex engine?

@moorepants
Copy link
Author

It may not be worth doing this, as opposed the user installing LaTeX. I'm not sure how much demand there may be for this functionality. We are working on solutions for SymPy that work around this. And it could be a perpetual request from us to implement new renderings for various SymPy objects. FYI.

@mdboom
Copy link
Member

mdboom commented Oct 6, 2015

Historically, it's always been hard to know where to draw the line on this kind of functionality. I'd love to have it do "everything", but we have finite time and all that.

@moorepants: Do you have a good sense of what would be the most useful features that mathtext currently doesn't do? \begin{matrix}\end{matrix} is probably high on the list, I would guess. Any others?

@moorepants
Copy link
Author

Yes, the various matrix commands from amsmath would be most helpful, or simply array.

@cesss
Copy link

cesss commented Feb 11, 2017

I need to display matrices without having LaTeX installed, so consider me as another one hit by this mathtext limitation. I agree that fully supporting environments could be a huge effort, but some array-like workaround would be great. Note that my matrices are not numeric, each matrix element is another mathtext expression, which can have fractions, integrals, etc...

@dstansby dstansby modified the milestones: 3.0 (future), unassigned Feb 11, 2017
@dstansby dstansby modified the milestones: v3.0, needs sorting Jul 26, 2018
@anntzer
Copy link
Contributor

anntzer commented Mar 22, 2019

I'm going to close this as essentially a duplicate of #321 (the main issue is with general environment support, not what the specific environments we need to support are).

@anntzer anntzer closed this as completed Mar 22, 2019
@story645 story645 removed this from the future releases milestone Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants