Document Classeselsarticle | Sequential Definitions

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
vitoitov23
Posts: 2
Joined: Mon Dec 10, 2012 5:45 am

elsarticle | Sequential Definitions

Post by vitoitov23 »

Hi,

I'm using the elsarticle class and some packages as shown below.

Code: Select all

\documentclass[final,3p,times]{elsarticle}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{lscape}
Trying to get sequentially numbered definitions, I'm using this.

Code: Select all

\newdefinition{def}{Definition}
\begin{def}
something
\end{def}
The output I get is a list of "Definition 1.". I can't seem to get these "Definition 1., Definition 2.,..." etc

Would someone mind pointing me in the right direction?

Many thanks,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

elsarticle | Sequential Definitions

Post by localghost »

Rename your definition environment def to something else. Internally environments start with \envname and end with \endenvname. In this case your environment would start with \def. But \def is a TeX macro to define commands. Hence you get error messages when trying to compile. See the log file (*.log) for details.

Next time please prepare a minimal example to give an adequate problem description along with eventually occurring error messages.


Best regards and welcome to the board
Thorsten
vitoitov23
Posts: 2
Joined: Mon Dec 10, 2012 5:45 am

Re: elsarticle | Sequential Definitions

Post by vitoitov23 »

Great. Thank you for your help.

J
Post Reply