regards
my name is carlos eduardo valencia urbina, and as I am physicist, I use much the package "physics", then I found the task of creating an autocomplete file (. cwl) for this package, I Annex(a txt file), I like their review and tell me if I have any errors, and it was placed next TeXStudio, I tried it on mine.
documentation package was http://ctan.uniminuto.edu/macros/latex/contrib/physics/physics.pdf
thank you very much
Anonymous
You are not classifying any of the commands. Though for example many seem to be valid only in math environments. This is not strictly an error because classification is optional. However your are not using the capabilities of the cwl format. Have you read the manual section on the cwl format?
yes,all are valid only in math environments, I have to classify it, thank you very much
Last edit: Carlos Eduardo Valencia Urbina 2014-04-05
regards
and perform classification file, everything was within the mathematical environment (# m) will annex the new file (txt) warns me if there is a problem.
thank you very much
Since there are many commands in the list you may consider marking some as unusual (completion only in with the "all" tab). This keeps the completer from overcrowding with commands that are not often used.
Try to make a judgement indepentent on your particular usecase (you may never need \laplacian, but it may be a common symbol for others). For example I'd assume that the commands to access the original trigonometric functions like
\sine
will be rarely used. But there will probably more.regards
thank you very much for the suggestion, and the new manual cwl, was right there were many commands, but do not select the same and the most common as I said, the rest place \ command # * # m, let me know if something even this bad.
thank you very much
Thanks. I've added the cwl to the repository. Note for the future: There is only one # that separates the command from the classification, so it's e.g
\cmd{arg}#*m
and not\cmd{arg}#*#m
. I've correct that.