13
votes
1answer
137 views

testing for a documentclass option

I know that there are lots of similar question, but none of those have helped me so far - and I did google a lot. So my question is: I have a document class (emulateapj) which accepts a few options. ...
9
votes
1answer
242 views

How to detect whether “I'm on arXiv.org”?

I write a class. I'm interested in having a different page headers (and eventually make some other small differences) based on whether the class is used on the site arXiv.org or not. Minimal example ...
5
votes
2answers
175 views

Two different text outputs depending on some parameter definition

I am using the astronomy and astrophysics class aa.cls. I use it with either of the two options: structabstract or referee. The first produces 2-column text, the second one-column text. I have some ...
13
votes
2answers
865 views

How do I conditionally execute something based on a documentclass option?

I'd like to conditionally do some things (like input a file) depending on if a specific class option was passed. For example, I'd like to have an "instructor" option to the class that would input a ...