When I asked my first question on this site, I was asked to provide "a complete small document that demonstrates the problem." What is "a complete small document" and how do I make one?


1 Answer 1


Although texenthusiast already mentioned the question might be duplicate of I've just been asked to write a minimal example, what is that?, it is worth to make some remarks.

Many new users of TeX.SX start with a question about a desired feature or post some fragment(s) of code almost unusable, since this is how TeX (a placeholder for TeX/LaTeX/XeTeX/LuaLaTeX) does not work, as almost any 'programing' language. It has grammar/syntax rules.

And as such, a small complete document starts with a


uses some packages (most probably), say


and eventually some other preamble commands (omitted here).

Finally the true document code, beginning (sic!) and ending with

  % Some content in between.

This *.tex file should reproduce the error or the efforts what has done so far, not more and not less. This means, that all unnecessary code has to be omitted (preferably) or at least commented out.

So, if your problem has nothing do with

  • mathematical markup --> drop all packages concerning math (amsmath etc.)

  • font issues --> drop all packages using fonts

  • hyperlinks --> omit hyperref


Only the really experienced TeX users know or can guess which class/packages should be loaded and sometimes this is even ambiguous since there are varities of possible solutions to a problem. A fragment of a code is a starting point, but most time a very crude one.

Finally, this a skeleton of a complete small document:

%%% \usepackage statements here

%%% Other necessary statements here

%%% Code for **your** document 

Change the documentclass article to one you really use.

Not the answer you're looking for? Browse other questions tagged .