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

Plot2Latex not working with Matlab2023a #1

Closed
Krib89 opened this issue May 25, 2023 · 2 comments
Closed

Plot2Latex not working with Matlab2023a #1

Krib89 opened this issue May 25, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Krib89
Copy link

Krib89 commented May 25, 2023

Hi Chris,

Plot2Latex is not working properly for me with Matlab 2023a. When the function comes to "Restoring text in .svg file." The warning "Plot2LaTeX.m: No text elements found and updated. Please check if no text is used or if the Renderer is "painters"." pops up. Using Plot2Latex with Matlab 2020b and the same code, which I used in the 2023 version, works perfectly fine for me. I attached the command window outputs for you.
Matlab2023a
Matlab2020b

Do you know what the problem is?

Thanky you very much and best regards!

@Don-Chris
Copy link
Owner

I had the same problem with some figures in Matlab 2016b and it worked in Matlab 2020b. Unfortunately, I haven't found a solution. The underlying problem is that the exported svg file doesn't have the text as -elements, and that's why the program can't modify it. It seems like a bug in the svg-exporter. It should be fixed when using the painters option but it doesn't always work as expected.

@Don-Chris
Copy link
Owner

Don-Chris commented May 27, 2023

I found the issue. If text elements in the figure are using non supported characters such as "\" the text can't be exported correctly. This bug is fixed In the new version. Thank you for reporting :)

@Don-Chris Don-Chris self-assigned this Dec 22, 2023
@Don-Chris Don-Chris added the bug Something isn't working label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants