I am trying to create a new theorem in a tex document, but I keep getting an error. Here is the code I am currently using
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{hyperref}
\usepackage{enumerate}
\usepackage{wasysym}
\usepackage{lipsum}
\usepackage{amssymb}
\usepackage{amsthm}
\setlength{\oddsidemargin}{.25in}
\setlength{\evensidemargin}{.25in}
\setlength{\textwidth}{6in}
\setlength{\topmargin}{-0.4in}
\setlength{\textheight}{9.5in}
\newtheorem{theorem}[Theorem]
\begin{document}
\begin{theorem}
My Tex doesn't work
\end{theorem}
\end{document}
When I try to compile this, I get three errors.
Paragraph ended before \@ynthm was complete.
Environment theorem undefined. \begin{theorem}
\begin{document} ended by \end{theorem}. \end{theorem}
I am assuming the last error is a direct consequence of \begin{theorem}
not being recognized, so if I can solve the first two errors, I think I will be okay.
I have tried changing \newtheorem{theorem}[Theorem]
to \newtheorem{theorem}{Theorem}[Theorem]
to no avail, and changed \begin{theorem}
to \begin{theorem}[Theorem]
again with no positive result.
Any ideas would be very helpful, thanks!
\oddsidemargin
etc. directly. Use thegeometry
package for this! – user31729 Jul 20 '16 at 15:52