1

within a tex file, I'd like to know if a given argument has been passed to a class. E.g., suppose in my main tex file:

\documentclass[optionA]{myClass}

How can I check if optionA has been passed to myClass ? And is there a way to know its value / type ?

Sergio
  • 303

1 Answers1

2

You can use

\@ifclasswith{myClass}{optionA}{yes}{no}

In the standard option processing code, options are just names, they never have a "value".

David Carlisle
  • 757,742