Text Formattingenumerating equations/formulas

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
denommenator
Posts: 1
Joined: Wed Jan 13, 2016 1:04 am

enumerating equations/formulas

Post by denommenator »

Imagine this scenario: you are writing a homework assignment and many of the questions are multi-part, e.g. `find the derivative of the following functions,'

Now when it comes to listing the equations to differentiate I want to use an enumerate kind of format so that the functions are listed with a number before each one. The functions should be left justified, so I could just use enumerate and put dollar signs around each function (which is already tedious), but for readability, I also need all the equations to be displaystyle, they aren't inline text anyway.

How can I accomplish this? Is there an enumerate hack like the one for tabular where you can make a specific column in mathmode:

Code: Select all

\begin{tabular}{c | >{$}c <{$}} ... %First col textmode, 2nd col mathmode

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

enumerating equations/formulas

Post by Johannes_B »

Usually, displayed math environments are used for such a purpose, they are automatically numbered.

Code: Select all

\documentclass[leqno]{article}
\usepackage{mathtools}
\begin{document}
\begin{gather}
	a+b \\
	c+d\\
	\sum_{i}^{k}
\end{gather}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

enumerating equations/formulas

Post by Stefan Kottwitz »

Hi,

and welcome to the forum!

There are further ways, such as align if you would like to have left alignment for the functions:

Code: Select all

\documentclass[leqno]{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
  & a+b+c \\
  & c+d\\
  & \sum_{i}^{k}
\end{align}
\end{document}
More can be read in the amsmath manual. Or let us know, if something needs to be adjusted.

Stefan
LaTeX.org admin
Post Reply