Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\input{header.tex} 

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
add comment

1 Answer 1

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
add comment