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?
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.
\documentclass{article}
\usepackage{packages you will use to compile your file(this what miktex has)}
\begin{document}
body
\end{document}
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,
starfont}
\usepackage[margin=0.75in]{geometry}
\usepackage[caption = false]{subfig}
\usepackage[all]{hypcap}
Annotations:
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
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
hyperref-related loading dependencies, see Which packages should be loaded after hyperref instead of before?
– Werner
May 30 '13 at 19:35
11pt,dvipsnames doing in your example when it's not included in your "basic structure"?
– Werner
May 30 '13 at 19:37
pdflatex; typically there is an editor button or shortcut for this. This will create a PDF document from your .tex file.
– marczellm
May 30 '13 at 19:54
.tex does your dos editor not support this? If it does, can you do latex to pdf with a dos editor? If the answer are no, you will need to get an editor that supports this file type and compilation.
– dustin
May 30 '13 at 20:04
mathtools without amsmath, it wont compile so I need both. How can that be if mathtools is supposed to improve on amsmath?
– dustin
May 30 '13 at 20:13
\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
\RequirePackage{amsmath}[2000/07/18] inside mathtools.dtx leads me to believe that you're doing something else as well.
– Werner
May 30 '13 at 20:38
proTeXt:easy to install MiKTeX distribution. 3. Verify TeX installation by typing at command windowpdflatex sample2eto seesample2.pdfgenerated. 4. follow simple tutorial – texenthusiast May 30 '13 at 20:50