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

inconsistent behavior for special libraries #8

Open
mbertucci47 opened this issue May 19, 2023 · 2 comments
Open

inconsistent behavior for special libraries #8

mbertucci47 opened this issue May 19, 2023 · 2 comments

Comments

@mbertucci47
Copy link

For some packages with package-specific libraries, texstudio supports special prefixes. In particular there are cwls named <prefix><library>.cwl for prefixes tikz, pgfplots, tcolorbox, and tabularray. Querying commands from tikz and tcolorbox libraries seems to work. For example

texfindpkg query -c calendar

produces

found package file tikzlibrarycalendar.code.tex with command \calendar

and

texfindpkg query -c tcbvignette

produces

found package file tcbvignette.code.tex with command \tcbvignette

But for pgfplots and tabularray libraries, it looks for .sty files with the cwl name:

texfindpkg query -c cellGetText

produces

found package file tabularraylibraryfunctional.sty with command \cellGetText

and builds the dependency tree from the cwl file, but of course one would also like it to recognize that you need tabularry installed for it to work. Similarly for pgfplots:

texfindpkg query -e groupplot

produces

found package file pgfplotslibrarygroupplots.sty with environment {groupplot}
@lvjr
Copy link
Owner

lvjr commented May 19, 2023

I will fix this in next release. But I could not understand well why tabularray libraries are treated in this way. In the future, there will be a keyvalue library which also load functional package, and maybe a verbatim library which loads codehigh package.

@mbertucci47
Copy link
Author

But I could not understand well why tabularray libraries are treated in this way.

Do you mean from the texstudio side? If so, it's so that the commands from those libraries are only added to the autocompletion and syntax checker lists if the library is loaded via \UseTblrLibrary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants