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
\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
proTeXt
:easy to install MiKTeX distribution. 3. Verify TeX installation by typing at command windowpdflatex sample2e
to seesample2.pdf
generated. 4. follow simple tutorial – texenthusiast May 30 '13 at 20:50