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 to jump into the cold waters of LaTeX package creation, mostly for procrastination reasons...but I haven't a clue how to start. For example, a previous question of mine got some nice answers. I would like to take one of these answers and create a package from it.

  • How do I start?
  • If others find it useful, how should I document it?
  • How do I publish it?

Perhaps I should say, I do not want anyone to do the work for me...I would much prefer an explanation on how I could do it myself!

share|improve this question
Well creating a simple package isn't difficult. Actually putting everything in a .sty file is already enough. See Make your own .sty files for the minimal set of headers (which are also technically optional, but should be added to any real package). – Martin Scharrer Nov 8 '11 at 23:06
To get an overview about packages to create a key-value-syntax see: tex.stackexchange.com/questions/26771/… – Marco Daniel Nov 8 '11 at 23:09
Then have a look at clsguide and dtxtut. They show the classic way to write package files. You should upload your new package to CTAN when it is finished, see What is good practice when preparing a package for CTAN. – Martin Scharrer Nov 8 '11 at 23:09

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.