
I've got a quick question :
I don't have numbers with my definitions using this :
Code: Select all
\newenvironment{definition}[1][Definition]{\begin{trivlist}
Thanks

Code: Select all
\newenvironment{definition}[1][Definition]{\begin{trivlist}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\documentclass{article}
\usepackage{lipsum}% just to generate some dummy text
\usepackage{amsmath}
\newtheorem{definition}{Definition}
\newcommand{\mydef}[1]{\begin{definition}#1\end{definition}}
\begin{document}
\section{A section}
\begin{definition}
\lipsum[1]
\end{definition}
\mydef{\lipsum[2]}
\section{Another section}
\mydef{\lipsum[3]}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p