Take the 2-minute tour ×

In a comment to my answer to Drawing a rectangle along the border of a circle, Peter Grill said that he read that the minimal class should not be used for a Minimal Working Example. I wonder why, and which class should I use instead?

BTW: Is it preferable to use article or scrartcl, i.e. the standard classes or the ones form the KOMA-Script bundle?

share|improve this question
Ah. Thanks. Shall I delete this question or vote to close it as duplicate? –  Tobi Jan 24 '12 at 8:58
If the subject is not KOMA-Script specific, better use article, as not everybody has the KOMA-Script bundle installed. For normal use I recommend scrartcl though. –  Stefan Kottwitz Jan 24 '12 at 8:58
@Tobi Let's close it as duplicate, so it would point to the other question, so a user can find the way to there if his search query matches your words, not the other question. –  Stefan Kottwitz Jan 24 '12 at 9:00
20974 in my humble opinion is about why to use the minimal class. Not why not to use it, which I now have started to wonder about... Did I miss something perhaps? –  jonalv Jan 24 '12 at 9:02
show 4 more comments

2 Answers

up vote 31 down vote accepted

The minimal class doesn't define size changing commands, so any example that relies on them won't work. It doesn't set \parindent, nor many other useful parameters, among which \tabcolsep: tabular environments will not show properly.

The "really minimal" class for typesetting purposes is article.

As David Carlisle and Joseph Wright remark, the minimal class was written just for testing, so it doesn't feature anything for typesetting real documents (other than setting \normalsize as any class should do).

share|improve this answer
I would add to this that the minimal class exists for historical reasons (it was useful in 1993/4 when computers were much less powerful than they are today). The name of the class has regrettably led people to believe that it is intended for minimal examples, which was never the case. –  Joseph Wright Jan 24 '12 at 9:34
How depressing it is to be old enough to have been involved in implementing historical artifacts:-) Yes, actually the main motivating use for that class was testing the design of the latex2e package and class loading mechanism, just to check that there were not implied hidden dependencies on the standard article/report/book classes (which were of course the only ones existing for a while). –  David Carlisle Jan 24 '12 at 11:53
You mean, such as the pyramids? Did you draw the plans, or were you just in charge of the hieroglyphs? –  Michael Palmer Jan 24 '12 at 18:11
add comment

Having read through the answers at the thread that Joseph linked to in the comments, I think that a practical answer to this question is:

If you're not sure whether to use minimal or not, don't use minimal.

A corollary of that for this site (and other places where your code may be viewed by others less Knowledgeable in the Ways of TeX) would be:

If there's a possibility that someone who doesn't know about the minimal class might, from reading your code, start using it, don't use it.

share|improve this answer
is one allowed to generalise that last "rule"? it would seem to me a good precept for never publishing any code (for example, .dtx files, which use a class which is widely inappropriate). –  wasteofspace Jan 24 '12 at 13:46
I have been posting code with minimal, because I saw others do it. Maybe moderators(and other high profile/friendly users) could make comments when newbies does it!? (just like they need constantly to tell people to make MWE and not to say; Thank you) –  Hans-Peter E. Kristiansen Mar 9 '13 at 17:48
add comment

Your Answer


