1

I want to write a report-like class (maybe based on KOMA-Script). My problem is that the layout will be evolving and maybe the features of the package to. I would like to know if there is an easy way of writing a package that is backward compatible. For instance that has different macro definitions for different versions of the package.

EDIT

More specifically, I would like to know if there is already a package that can help/support this task:

  • Some way to define the current version of the class.
  • A way to check the version of the document.
  • This question is a little bit broad, in my point of view. I would advise to use an option interface to the package/class file such that it is configured depending on the state of the options – user31729 Feb 12 '15 at 10:41
  • @ChristianHupfer I look for a package that has macros to handle this kind of options, or somewhere to see "standard" ways of programming this things. – TeXtnik Feb 12 '15 at 11:08
  • I have answered recently a 'similar' question, perhaps my answer provides some clue/hint how to proceed: tex.stackexchange.com/questions/224405/…. xkeyval is just one possibility – user31729 Feb 12 '15 at 11:35
  • @ChristianHupfer Thanks for the link. I found a similar one here (tex.stackexchange.com/questions/215872/…) – TeXtnik Feb 13 '15 at 11:38
  • Are there any news here? Maybe you can provide a self answer? – Johannes_B Dec 20 '15 at 9:59