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

Possible Duplicate:
how to create a template or document class for latex?

Currently, whenever I create a new document, I add a reference in the header to


where header.tex contains a whole bunch of package imports and default settings I like to use. Is there a way to put all of these settings in a custom document class, or something similar, so that when I create new .tex files, I can simply say, \documentclass{custom_article}, instead of having to copy the same file to a new folder every time and then reference it?

share|improve this question

migrated from stackoverflow.com Sep 28 '12 at 14:21

This question came from our site for professional and enthusiast programmers.

marked as duplicate by lockstep, doncherry, barbara beeton, egreg, Tom Bombadil Sep 28 '12 at 16:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Sep 28 '12 at 14:24
up vote 4 down vote accepted

If you want to create your own class, have a look at Rolling your own Document Class.

You can also find more detailed answers for these similar questions:

share|improve this answer