texlab icon indicating copy to clipboard operation
texlab copied to clipboard

Feature request: support zref and zref-clever

Open qcts33 opened this issue 1 year ago • 1 comments

First of all, thanks for this excellent work! It would be nice to support the zref and zref-clever package as an alternative reference system. The zref package provides the extensible referencing system with the \zlabel command. The zref-clever package is based on zref and provides the same functions as the old cleveref package, but using the \zcref command.

qcts33 avatar Jan 10 '24 14:01 qcts33

This is somewhat supported already by extending the texlab.settings.experimental.labelReferenceCommands and texlab.settings.experimental.labelDefinitionCommands options in the language server setup. It is worth noting that the zref and zref-clever package documentation says that those packages are to be considered experimental themselves. Nevertheless, supporting the label definition and reference commands for these packages by default should be a relatively easy addition to the code. I'll add a pullrequest for making them default, but I'm unsure if they should be default or not. (or if my PR is missing commands)

DasNaCl avatar Jun 06 '24 09:06 DasNaCl