Suppose that I try to write a test_cls class, in which I want to provided a command \inst, that can be used by the user and also in the class doc itself.

The class file named test_cls.cls looks like:




And the test_cls.tex is


The problem is this can't work and hint me that the command \inst@value is not defined.

I can solve this problem by add the default value by

  %for the default value

But don't know is there any other better way?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.