It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.

LaTeX2e

Tips and instructions on getting started using the document preparation system LaTeX.

Working with markup document

When you work with a word processor, you see your document on the computer monitor more or less as it looks when printed, with its various fonts, font sizes, font shapes (e.g., roman, italic) and weights (e.g., normal, boldface), interline spacing, indentation, and so on.

Working with a markup language is different. You type the source file of your article in a text editor (such as, overleaf, texmaker, texworks, etc.) , in which all characters appear in the same font. To indicate changes in the typeset text, you must add text markup commands to the source file.

Error messages

In a perfect world, all your documents would compile without problems and give you high-quality output. However, sooner or later you will encouter problems of some kind. Here a few tips for dealing with errors:

Finding the source line of an error

MikTex will log all problems with the document in the Log tab, including the line at which the problem exists

Examples

"Undefined Control Sequence" is created by either making a typo in an actual command, or by having a missing library that contains the definition of the tag.
"Missing $inserted" is triggered by attempting to use tags that are meant to be called within MathMode. To enable MathMode, wrap the text with$ symbols (ex, $5\pi = x$ )

Special Cases

"Emergency Stop" will not have a line number associated with the error because it is an error produced when the compiler has reached the end of the script, but was still waiting on certain commands to appear.  A common way to create this error is to use a \begin tag without closing it with an \end tag.

• The corallary to this would be the error "Missing \begin".  The line number listed is where the first tag that requires the afforementioned \begin tag.