# Math Help - LaTex homework assignment - What's wrong?

1. ## LaTex homework assignment - What's wrong?

Hello! For one of my classes, I was assigned to form a 2-paged work in Latex. This work refers to the title page with introductory information while the 2nd page refers to 5 valuable equations. Now, I've never learned LaTex until just now and it was basically my first programming experience. Even then, I did not fully comprehend the LaTex system.

Anyways, is there anything systemically wrong with the following code? It won't compile for some reason.

\usepackage{amssymb}
\usepackage{fullpage}
\textwidth=14cm
\textheight=20.6cm

\begin{document}
\documentclass{article}
\author{Tyler Swob}
\title{Useful Mathematical Formulas}
\maketitle
\end{document}
\newpage
\begin{document}
\title{Physics Formulas}\
$$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$$
$$\v&=&v_{o}+at\$$
$$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\$$
$$\F&=&ma\$$
\title{Einstein's Formula}\
$$\E=MC^{2}\$$
\end{document}

2. I'm certainly no expert with Latex, but I don't think you should have that first "end document" or second "begin document" in there. You don't finish a document to go on to a new page....

3. Originally Posted by Kaitosan
Hello! For one of my classes, I was assigned to form a 2-paged work in Latex. This work refers to the title page with introductory information while the 2nd page refers to 5 valuable equations. Now, I've never learned LaTex until just now and it was basically my first programming experience. Even then, I did not fully comprehend the LaTex system.

Anyways, is there anything systemically wrong with the following code? It won't compile for some reason.

\usepackage{amssymb}
\usepackage{fullpage}
\textwidth=14cm
\textheight=20.6cm

\begin{document}
\documentclass{article}
\author{Tyler Swob}
\title{Useful Mathematical Formulas}
\maketitle
\end{document}
\newpage
\begin{document}
\title{Physics Formulas}\
$$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$$
$$\v&=&v_{o}+at\$$
$$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\$$
$$\F&=&ma\$$
\title{Einstein's Formula}\
$$\E=MC^{2}\$$
\end{document}
For how to have a separate or differently formatted title page see Title Page or LaTeX/Title Creation - Wikibooks, collection of open-content textbooks

CB

4. Ok guys, I've adjusted my LaTex code a bit....... what is your feedback now?

\documentclass{article}
\title{Useful Mathematical Formulas}
\author{Tyler Swob}
\begin{document}
\maketitle
\newpage
\title{Physics Formulas}
$$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$$
$$\v&=&v_{o}+at\$$
$$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\$$
$$\F&=&ma\$$
$\title{Einstein's Formula}\$
$$\E&=&MC^{2}\$$
\end{document}

5. Originally Posted by Kaitosan
Ok guys, I've adjusted my LaTex code a bit....... what is your feedback now?

\documentclass{article}
\title{Useful Mathematical Formulas}
\author{Tyler Swob}
\begin{document}
\maketitle
\newpage
\title{Physics Formulas}
$$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$$
$$\v&=&v_{o}+at\$$
$$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\$$
$$\F&=&ma\$$
$\title{Einstein's Formula}\$
$$\E&=&MC^{2}\$$
\end{document}
You don't need our feedback, complile it, does it complie? If it compiles look at the result, is it what you want?

CB

6. Originally Posted by Kaitosan
Hello! For one of my classes, I was assigned to form a 2-paged work in Latex. This work refers to the title page with introductory information while the 2nd page refers to 5 valuable equations. Now, I've never learned LaTex until just now and it was basically my first programming experience. Even then, I did not fully comprehend the LaTex system.

Anyways, is there anything systemically wrong with the following code? It won't compile for some reason.

\usepackage{amssymb}
\usepackage{fullpage}
\textwidth=14cm
\textheight=20.6cm

\begin{document}
\documentclass{article} This line is not proper.
\author{Tyler Swob}
\title{Useful Mathematical Formulas}
\maketitle
\end{document}
\newpage
\begin{document}
\title{Physics Formulas}\
$$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$$
$$\v&=&v_{o}+at\$$
$$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\$$
$$\F&=&ma\$$
\title{Einstein's Formula}\
$$\E=MC^{2}\$$
\end{document}

Try this program..

\documentclass{article}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fullpage}
\textwidth=14cm
\textheight=20.6cm
\begin{document}
\author{Tyler Swob}
\title{Useful Mathematical Formulas}
\maketitle
\title{Physics Formulas}\
\begin{align*}
v^{2} &= v_{o}^{2}+2a(x-x_{o}\\
v &= v_{o}+at\\
x &= \frac{1}{2}at+v_{o}t+x_{o}\\
F &= ma
\end{align*}
\title{Einstein's Formula}\\
$E=MC^{2}$
\end{document}