I was asked to use LaTeX (on math stack exchange), and I downloaded a large number of files (called Miktex).

However all the tutorials seem to assume that you have already started a a document of some sort.

Where is that document?


Miktex holds your packages for compiling LaTeX documents. You can either write you .tex files in a plain tex editor or from programs such as Emacs, Vim, Texnic Center, etc list of tex editors. You need to start a document called name.tex in either one of those programs or a plain tex editor.

Now you are ready write a LaTeX document. At this point, you set up what you need.

\usepackage{packages you will use to compile your file(this what miktex has)}

Here is my preamble as an example:

\documentclass[11pt, dvipsnames]{article}

\usepackage{amsmath, amssymb, eucal, pxfonts, setspace, enumerate, amscd,           
  dsfont, wasysym, tikz, tikz-qtree, mathtools, kurier, pgfplots, listings,         
  etoolbox, tikz-3dplot, float, wrapfig, multirow, array, tkz-fct, graphicx,        
  datetime, fancyhdr, amsfonts, xcolor, microtype, marvosym,       
\usepackage[caption = false]{subfig}


11pt is the size of the font

dvipsnames allow you use extended color names such as Cyan, Aquamarine, etc

The tikz and pgf packages are need for creating graphics so that doesn't need to be a standard setup

wasysym, starfont, marvosym produce symbols for planets so this isn't a package that needs to be loaded unless you are working in orbital mechanics or aero engineering.

enumerate is useful for numbering since the program will keep track for you when you use \item

  • 6
    You should be ready for questions like: Why do you load mathtools and amsmath? mathtools loads amsmath by default. Why load xcolor and color? xcolor loads color by default... Also, is this your preamble for everything you use? What about enumitem over enumerate? Why do you load hyperref so early? ... – Werner May 30 '13 at 19:21
  • 3
    @dustin: For hyperref-related loading dependencies, see Which packages should be loaded after hyperref instead of before? – Werner May 30 '13 at 19:35
  • 6
    The reason for asking these questions is based on the original post. A newbie without knowledge of (La)TeX sees your answer and assumes it's the correct way of starting every document, and therefore loads things as is. However, it's perhaps not optimal, nor would it suit the needs of everyone. Sure you mention it as "an example", but you should at least explain this in more detail so the OP can understand. For example, what's 11pt,dvipsnames doing in your example when it's not included in your "basic structure"? – Werner May 30 '13 at 19:37
  • 1
    @user31517 look here to find one that you may like. – dustin May 30 '13 at 20:08
  • 1
    @dustin For a first time user,the preamble above is more overwhelming and Note: Although \usepackage{bunch of list} works, it will be difficult when you have to debug during errors and package conflicts hack down or hackup for a MWE creation. It is not recommended practice in my view. – texenthusiast May 30 '13 at 20:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.