2

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
    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 '17 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 '17 at 8:29
  • In reality I have %\institute{Affiliation Institute \at Collegium Anonymia \\\email{clancularius@collegium.com}}, and so I delete this from my MWE. – Frode Bjørdal Aug 10 '17 at 11:19
5

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
    if upright text is wanted (more usual for a definition), precede the \newtheorem{definition} by \theoremstyle{definition}. (defined by amsthm.) – barbara beeton Aug 10 '17 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.