[Tex/LaTex] How to number and reference to “definitions” in latex


I want the following format in LaTeX:

Definition 1 [apple]:
apple is a fruit.

Definition 2 [cat]:
cat is a fluffy animal. 

Best Answer

Without using any packages you could use inbuilt theorem environment


%use next two lines instead for non-italic alternative

Here is a new definition

Here is another new definition

That was Definition~\ref{def:def444} and Definition~\ref{def:def555}


enter image description here

Related Question