jupyter-matlab-proxy icon indicating copy to clipboard operation
jupyter-matlab-proxy copied to clipboard

Print tables in LaTeX

Open napaalm opened this issue 1 year ago • 3 comments

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.

napaalm avatar Feb 24 '24 16:02 napaalm

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?

rashedmyt avatar Apr 05 '24 13:04 rashedmyt

@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.

napaalm avatar Apr 05 '24 16:04 napaalm

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

rashedmyt avatar Apr 08 '24 11:04 rashedmyt