Results 1 to 6 of 6

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

  1. #1
    Member
    Joined
    Dec 2008
    Posts
    228

    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}
    \linespread{1.3}
    \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}\
    \begin{equation}$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$\end{equation}
    \begin{equation}$\v&=&v_{o}+at\$\end{equation}
    \begin{equation}$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\ $\end{equation}
    \begin{equation}$\F&=&ma\$\end{equation}
    \title{Einstein's Formula}\
    \begin{equation}$\E=MC^{2}\$\end{equation}
    \end{document}
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    Mar 2008
    Posts
    182
    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....
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Kaitosan View Post
    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}
    \linespread{1.3}
    \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}\
    \begin{equation}$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$\end{equation}
    \begin{equation}$\v&=&v_{o}+at\$\end{equation}
    \begin{equation}$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\ $\end{equation}
    \begin{equation}$\F&=&ma\$\end{equation}
    \title{Einstein's Formula}\
    \begin{equation}$\E=MC^{2}\$\end{equation}
    \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
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member
    Joined
    Dec 2008
    Posts
    228
    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}
    \begin{equation}$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$\end{equation}
    \begin{equation}$\v&=&v_{o}+at\$\end{equation}
    \begin{equation}$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\ $\end{equation}
    \begin{equation}$\F&=&ma\$\end{equation}
    $\title{Einstein's Formula}\$
    \begin{equation}$\E&=&MC^{2}\$\end{equation}
    \end{document}
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Kaitosan View Post
    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}
    \begin{equation}$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$\end{equation}
    \begin{equation}$\v&=&v_{o}+at\$\end{equation}
    \begin{equation}$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\ $\end{equation}
    \begin{equation}$\F&=&ma\$\end{equation}
    $\title{Einstein's Formula}\$
    \begin{equation}$\E&=&MC^{2}\$\end{equation}
    \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
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Member kjchauhan's Avatar
    Joined
    Nov 2009
    Posts
    137
    Thanks
    2
    Quote Originally Posted by Kaitosan View Post
    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}
    \linespread{1.3}
    \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}\
    \begin{equation}$\v^{2}&=&v_{o}^{2}+2a(x-x_{o}\$\end{equation}
    \begin{equation}$\v&=&v_{o}+at\$\end{equation}
    \begin{equation}$\x&=&\dfrac{1}{2}at+v_{o}t+x_{o}\ $\end{equation}
    \begin{equation}$\F&=&ma\$\end{equation}
    \title{Einstein's Formula}\
    \begin{equation}$\E=MC^{2}\$\end{equation}
    \end{document}

    Try this program..

    \documentclass{article}
    \usepackage{latexsym}
    \usepackage{amsmath}
    \usepackage{amssymb}
    \linespread{1.3}
    \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}
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: April 29th 2011, 03:35 AM
  2. Replies: 2
    Last Post: April 28th 2011, 07:41 PM
  3. Replies: 6
    Last Post: August 12th 2009, 02:15 AM
  4. Replies: 6
    Last Post: April 1st 2008, 01:45 PM
  5. Homework Assignment
    Posted in the Calculus Forum
    Replies: 3
    Last Post: December 1st 2005, 09:02 AM

Search Tags


/mathhelpforum @mathhelpforum