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

TeXstudio autocomplete is not supported by svg package #54

Open
jpmjpmjpm opened this issue Sep 19, 2023 · 6 comments
Open

TeXstudio autocomplete is not supported by svg package #54

jpmjpmjpm opened this issue Sep 19, 2023 · 6 comments
Assignees

Comments

@jpmjpmjpm
Copy link

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 jpmjpmjpm reopened this Sep 19, 2023
@jpmjpmjpm
Copy link
Author

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

@mrpiggi
Copy link
Owner

mrpiggi commented Sep 19, 2023

Maybe, some day...

@mrpiggi mrpiggi reopened this Sep 19, 2023
@mrpiggi mrpiggi self-assigned this Sep 19, 2023
@mbertucci47
Copy link

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
Copy link
Owner

mrpiggi commented Sep 19, 2023

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
Copy link
Author

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

  • Ubuntu 22.04.3 LTS
  • TeXstudio 4.2.1 (Build: 4.2.1+ds-1) / Using Qt Version 5.15.3, compiled with Qt 5.15.2 R
  • Using MiKTeX

But svg.cwl is not part of the TeXstudio completion files.

image

I may miss something...

@mrpiggi
Copy link
Owner

mrpiggi commented Sep 19, 2023

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

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