18

I have the following preamble:

\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{yfonts}
\usepackage[inline]{enumitem}

\newcommand{\subscript}[2]{$#1 _ #2$}

\newtheorem{theorem}{Theorem}

\title{Jumbo}



\author{Frode Alfson Bj\o{}rdal}
\date{}




\begin{document}

How can I get \begin{definition} … \end {definition} here?

3
  • 5
    See how you defined theorem. Also you might want to have a look in the amsthm manual to familiarize yourself with the \newtheorem syntax.
    – daleif
    Aug 10, 2017 at 8:28
  • Also note that your example has no chance to work as \institute and \email is not defined in the article class
    – daleif
    Aug 10, 2017 at 8:29
  • In reality I have %\institute{Affiliation Institute \at Collegium Anonymia \\\email{[email protected]}}, and so I delete this from my MWE. Aug 10, 2017 at 11:19

1 Answer 1

33

Just define it using \newtheorem like you have done for environment theorem:

\documentclass{article}
\usepackage{amsthm}
\newtheorem{definition}{Definition}
\begin{document}
\begin{definition}
  This is a definition.
\end{definition}
\end{document}

enter image description here

See also: How do you number theorems but not definitions?.

For more information about \newtheorem and how to use another style for the new theorem environment definition, e.g., using \theoremstyle{definition} before \newtheorem, see the manual of package amsthm.

1
  • 4
    if upright text is wanted (more usual for a definition), precede the \newtheorem{definition} by \theoremstyle{definition}. (defined by amsthm.) Aug 10, 2017 at 19:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .