# How do you efficiently make your preamble in LaTeX?

I use Atom frequently but used to use TeXWorks to write my LaTeX documents. In TeXWorks managing templates was relatively nice and easy and kept me from having to write out the preamble (i.e. everything between \documentclass to \begin{document}). But how do you do that kind of thing in another environment like Atom, which doesn't have that kind of built-in management of templates?

I know I could do it with a snippet and I may end up setting that up, but I wanted to check if other people did it a different way in case there's something smarter/better. Doing it with a snippet just kind of seems like hack work and not the easiest to update when I decide on other tweaks that I might want to put in my template. So I'm just digging for ideas.

• Looks like there's several template-related packages for Atom, including Arcath's file-templates. Nothing specific to TeX, but it shouldn't have to be if all you want is a selection of document classes and preambles. – Mike Renfro May 9 '16 at 0:12

I start writing the document (no template/snippet/whatsit business). When I reach a point in the document when I need a feature of <package>, I add \usepackage{<package>} to my preamble.