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

This question already has an answer here:

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?

share|improve this question

marked as duplicate by doncherry, Werner, Kurt, T. Verron, Jubobs May 30 '13 at 21:39

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.

Possible duplicate: Best Way to Start Using LaTeX/TeX? – Werner May 30 '13 at 19:08
Did they ask you to use latex to make a document or to use the latex syntax on math.stackexchange in order to show math on the website (using MathJax) these are very different things. – David Carlisle May 30 '13 at 19:10
Please take a look at the provided link above and see whether it suits your needs. It provides a host of ideas around starting with (La)TeX. If it does, we can close this question as a duplicate. If it doesn't, edit your question and update it to reflect why it is different from the linked post. – Werner May 30 '13 at 19:14
Another question that might be helpful/a duplicate: What is the best book to start learning LaTeX? – doncherry May 30 '13 at 19:37
Just to be simple: You need 1. TeX distribution: MikTeX installed. 2. LaTeX Editor:TeXworks. For one stop solution proTeXt:easy to install MiKTeX distribution. 3. Verify TeX installation by typing at command window pdflatex sample2e to see sample2.pdf generated. 4. follow simple tutorial – texenthusiast May 30 '13 at 20:50

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

share|improve this answer
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
@dustin: For hyperref-related loading dependencies, see Which packages should be loaded after hyperref instead of before? – Werner May 30 '13 at 19:35
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
@user31517 look here to find one that you may like. – dustin May 30 '13 at 20:08
@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.