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

Print tables in LaTeX #85

Open
napaalm opened this issue Feb 24, 2024 · 3 comments
Open

Print tables in LaTeX #85

napaalm opened this issue Feb 24, 2024 · 3 comments
Assignees

Comments

@napaalm
Copy link

napaalm commented Feb 24, 2024

When I print a table in a MATLAB notebook I would like to render it in LaTeX, but it is not currently possible.
The following is an example of a code that doesn't get LaTeX output.

syms x y;
eq = cos(x)*cos(y) == 0;
struct2table(solve(eq, [x y]))
ans = 2x2 table
     x       y  
    ____    ____

    pi/2    0   
    0       pi/2

With complex expression it is evident that a LaTeX table would be easier to read.

@rashedmyt
Copy link
Member

Hi @napaalm

With R2024a, we support displaying tables as HTML tables. You can learn more about it here. Below is how the example you have given looks in R2024a.

image

Does this work for you?

@napaalm
Copy link
Author

napaalm commented Apr 5, 2024

@rashedmyt I guess this is a step forward, but I think the real issue here is that the formulas inside table cells are not rendered as LaTeX. If we had more complex expressions inside the cells the difference in readability would be very noticeable.

@rashedmyt
Copy link
Member

Thank you for the feedback. I'll forward this enhancement request to the development team.

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

3 participants