# equation positioning problem

With this code:

\documentclass{article}

\begin{document}

\rm \setlength{\parindent}{1cm} Estimatorul nonparametric pentru functia de distributie cumulative, $F(x)$, in punctul $x$ este raportul de puncte intermediare care sunt mai mici sau egale cu $x$.
$$\mathop{F}\limits^{\wedge } (x)=\frac{\# \{ x^{t} \le x\} }{N}$$

\end{document}


The equation is positioned at the center, but why? How can I align it to the left? And that (1) is automatically inserted?

-
In addition to prettygully's answer below, take a look at this question for more on the left-alignment: tex.stackexchange.com/q/16840/86 –  Loop Space Apr 28 '11 at 12:11

I would use \documentclass[fleqn]{article} -- this will place the equation a certain distance from the left margin; you can modify this by using something like \setlength{\mathindent}{1cm}.

-

The equation environment singles the start of a numbered and displayed mathematical environment. It is the "numbered" part that is putting the (1) in your display, to remove that replace the by $ and by $. Alternatively, you could use the amsmath package (\usepackage{amsmath} in the preamble) and use the equation* environment.

The "displayed" part is putting it on in the middle of the page. To put it on the left depends slightly on what you mean by that. A fairly crude method would be the following:

\documentclass{article}

\begin{document}

\rm \setlength{\parindent}{1cm} Estimatorul nonparametric pentru functia de distributie cumulative, $F(x)$, in punctul $x$ este raportul de puncte intermediare care sunt mai mici sau egale cu $x$.

$$\displaystyle \mathop{F}\limits^{\wedge } (x)=\frac{\# \{ x^{t} \le x\} }{N}$$

\end{document}


(note the blank line between the paragraph and the mathematics).

I say "crude" because this doesn't do anything fancy with the spacing between the paragraphs before and after the mathematics and the mathematics. There may well be a package which does exactly what you want ... if so, someone will no doubt stop by soon to share it!

-
Thanks.I don't know why the output .pdf is not generated. I have build the .tex document with Ctrl+F7 but i cannot see the pdf. Where it's generated, in which folder? –  qwerty Apr 28 '11 at 8:04
@qwerty: That sounds like something to do with the exact way in which you are producing your documents. For that, the best reference is the help or user guide from whatever program it is. I can't guess that from what you say - I've never used a program that uses Ctrl+F7 as a shortcut. –  Loop Space Apr 28 '11 at 8:36
It sounds like TeXnicCenter. It is most probably in the same folder as the source file which you compiled. But Andrew is right, we can only troubleshoot problems with LaTeX code. –  ipavlic Apr 28 '11 at 9:05
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 2, "mathjax_display_tex": 1, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 1, "x-ck12": 0, "texerror": 0, "math_score": 0.801713228225708, "perplexity": 2507.456447644799}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-27/segments/1435375095671.53/warc/CC-MAIN-20150627031815-00138-ip-10-179-60-89.ec2.internal.warc.gz"}