0

I want to create a new environment that uses a counter which automatically numbers the sentences in my document.

For example,

Definiton 1.1. lorem ipsum dolor amet. Definiton 1.2. The quick brown fox...

And so on...

1
  • Are you using (or willing to use) the AMS classes/packages?
    – Teepeemm
    Commented Aug 20, 2020 at 17:46

1 Answer 1

2
\newcounter{defn}[section]
\newenvironment{defn}{%
   \refstepcounter{defn}%
   \textbf{Definition \thedefn}
  }{%
}

...

\begin{defn}
lorem ipsum dolor emt.
\end{defn}
\begin{defn}
The quick brown fox...
\end{defn}

You must log in to answer this question.

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