tabular
is to array
as itemize
is toΒ β¦?
I'd like to have a list like
\documentclass{article}
\begin{document}
\begin{eqlist}
\item E=mc^2
\item e^{i\pi}+1=0
\item \text{ducks} + \text{caffeine}
= \text{\url{http://i.stack.imgur.com/GVksc.gif}}
\end{eqlist}
\end{document}
I'm already using enumitem
, but I don't think that package will be of any help. Of course, any solution will work π
Important variations:
- What about display math?
- What about the other
list
environments β likedescription
andenumerate
?
Use Case
The use-case is pretty trivial, actually β to have a list of equations. You could call this 'for fun', but I have in the past actually hacked something together for class notes that allowed me to do something like this (e.g. listing out and naming the properties of algebraic groups). I had thought the idea was limited to that so I never generalized my (terribly messy) solution, but I'm seeing the pattern pop-up more and more in various documents where it actually doesn't look absolutely awful as you'd expect. Conveniently, I don't have any solid examples except this newbie document that popped up on reddit.com/r/LaTeX.
Best Answer
Here is a solution (it doesn't use, but I hope it will be compatible with
enumitem
)Note: I don't understand what the OP want to do with display math
Limitation: blank lines not supported (this code will not work)
Complete code