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

Document how to overload rich mime types with Latexify #94

Open
ChrisRackauckas opened this issue Apr 12, 2020 · 4 comments
Open

Document how to overload rich mime types with Latexify #94

ChrisRackauckas opened this issue Apr 12, 2020 · 4 comments

Comments

@ChrisRackauckas
Copy link
Contributor

In Jupyter notebooks and such I would like to have Latexify be the output by default. Is there a nice way to do that? It would be nice to have the solution documented.

@korsbo
Copy link
Owner

korsbo commented Apr 13, 2020

I'm not sure what you mean. Do you essentially want display(my_ode_network) to hook in to latexify?

@korsbo
Copy link
Owner

korsbo commented Apr 13, 2020

If so, then I guess that something like

Base.show(io::IO, ::MIME"text/latex", ode::DiffEqBase.AbstractParameterizedFunction) = Base.show(io, latexify(ode))

should work.

@ChrisRackauckas
Copy link
Contributor Author

Yeah, that's good. I started thinking though... maybe if it's huge I need to set it to only print a bit of it? Is that possible?

@korsbo
Copy link
Owner

korsbo commented Apr 14, 2020

It's possible to leave out vector/matrix rows in the latexrecipe but this does not leave any ... or something to indicate that the results have been truncated. It's a feature that I would like to add but it will have to wait until I have a little bit of free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants