hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.12k stars 418 forks source link

Math enviroment not supported in .drawio.svg files #439

Open YiDingg opened 2 months ago

YiDingg commented 2 months ago

When inserting .drawio.svg file into .tex file, math formulars can not be rendered and displayed properly (I am sure that "mathematical typesetting" is openned).

For example, here are my .drawio.svg file and the .tex code to insert svg graphics:

image

% code to insert svg in .tex file
\begin{figure}[H]\centering
\includesvg[width=0.7\textwidth]{assets/受控电源电路符号.drawio.svg}
\caption{\textbf{受控电源电路符号}}\label{受控电源电路符号}
\end{figure}

The svg file is displayed as below:

image

And I am sure "mathematical typesetting mode" is openned.

image

It would be appreciated if this problem can be fixed.

YiDingg commented 2 months ago

I also tried the .drawio.svg file whose name was completely in English, but it doesn't work.