I have just installed MikTeX and WinEdt and i try this code in WinEdt:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts,amssymb}
\usepackage{amsthm}
\usepackage[electronic]{ifsym}
\usepackage[cp1251]{inputenc}
\usepackage[matrix,arrow,curve,frame,poly,arc]{xy}
\usepackage[english, russian]{babel}
\usepackage[final]{graphicx}
\usepackage{mathrsfs}
\usepackage{color}
\usepackage{tikz}
\pagestyle{empty}
\begin{document}
\sum x
\end{document}`
Then i press on TeX button (Shift+Ctrl+T) and it says a lot of errors of the same type: "Undefined Control Sequence".
Then i press on DVI button and see something like this:
article amsmath amsfonts,amssymb amsthm [electronic]ifsym [cp1251]inputenc [matrix,arrow,curve,frame,poly,arc]xy [english, russian]babel [¯nal]graphicx mathrsfs color tikz empty document
x
What should i do? Whats the problem?
pdftexinstead ofpdflatex. The only error you should get from that code ismissing $ inserted, because\summust be in math mode, i.e.\[ \sum x \]or$ \sum x $. – Torbjørn T. Apr 06 '14 at 09:22\( \sum x \)or\begin{math} \sum x \end{math}work too. – Apr 06 '14 at 09:24\( .. \)then you should also add\usepackage{fixltx2e}(see http://tex.stackexchange.com/a/542/586), and themathenvironment is basically the same as$ .. $I believe. – Torbjørn T. Apr 06 '14 at 09:40fixltx2efix actually? I never heard of that before? – Apr 06 '14 at 09:43\( .. \)so they can be used in moving arguments, e.g. section titles and captions. Try for example\documentclass{book} \begin{document} \chapter{\( x \)} \newpage abc \end{document}which doesn't work withfixltx2e. – Torbjørn T. Apr 06 '14 at 09:49\( ... \)and try to prevent chapter (etc) titles with mathematical markup, but your proposition does even allow for using this style. – Apr 06 '14 at 10:25