mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 11 forks source link

TeXstudio autocomplete is not supported by svg package #54

Open jpmjpmjpm opened 1 year ago

jpmjpmjpm commented 1 year ago

I'm using TeXstudio to edit LaTeX documents and svg package to include images edited with Inkscape. It works well... thanks for that!

However, I noticed that commands from the svg package, like \includesvg are not recognized within TeXstudio application.

I suspect that this has something to do with the fact that there is no CWL file associated with svg package. I say I suspect as I'm only an amateur about LaTeX packages.

Let me know what you think about this enhancement request. Does it make sense? If so, I may volunteer to work on a pull request.

Thanks.

jpmjpmjpm commented 1 year ago

In fact, when I also used \svgpath, it solved the issue.

mrpiggi commented 1 year ago

Maybe, some day...

mbertucci47 commented 1 year ago

There is a cwl for svg: https://github.com/texstudio-org/texstudio/blob/127327d7b45f3d7dea6d4be8f340b030b89ec6d6/completion/svg.cwl Commands from the package should be recognized after any instance of \usepackage{svg}

mrpiggi commented 1 year ago

Great. Nevertheless, I'll leave this open in order to review once I am finished with v2.03 (which won't happen in a foreseeable future).

jpmjpmjpm commented 1 year ago

There is a cwl for svg: https://github.com/texstudio-org/texstudio/blob/127327d7b45f3d7dea6d4be8f340b030b89ec6d6/completion/svg.cwl Commands from the package should be recognized after any instance of \usepackage{svg}

Thanks for this information. What I don't understand is why this is not loaded in my TeXstudio installation.

I'm on

But svg.cwlis not part of the TeXstudio completion files.

image

I may miss something...

mrpiggi commented 1 year ago

This is definitely not the right tracker for this issue. Nevertheless, the current version of TeXstudio is 4.6.3