TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like a package that defines nice things by default like:

  1. Theorem environments like definition, property, example etc.
  2. Standard includes like subfloats, the amsmath family
  3. Reference functions like \sectionref, \algorithmref etc.
  4. Math functions like \argmin, \trace, etc.

Essentially, I would like all the settings of the JMLR class, but be able to use it in a separate class (something for a thesis). I have tried modifying the secondary class (thesis.cls) to use JMLR as the base (\LoadClassWithOptions), however it complains because I need to use chapters.

share|improve this question
up vote 7 down vote accepted

environment names used for theorem-class objects are usually very subjective, which is one reason they aren't usually predefined.

if you like the ones in the jmlr class, you can just create your own package by copying into it the \theoremstyle and \newtheorem definitions from jmlr, call the package mydefs.sty, and then \usepackage{mydefs}.

be prepared, however, to be requested to incorporate the actual definitions in your source file if you submit an article for publication. publishers don't like to mess with home-grown packages, for very good reasons.

share|improve this answer
Alright. I usually save all these commands into a single file and include them using \input. Is there any reason to prefer a pacakge to this approach? – arunchaganty Apr 23 '12 at 6:32
@arunchaganty -- if you have any need to define commands that involve @ signs, the mechanism for \usepackage invokes \makeatletter and \makeatother automatically. of course, if you then have to incorporate your definitions into your source file, you'd have to include those commands explicitly. – barbara beeton Apr 23 '12 at 12:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.