Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbered equations #1821

Closed
wants to merge 13 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/math/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,16 @@ Finally, here is a little secret. This notation:

\noindent In other words, the notation using \code{&} and \code{\\\\} is only a syntactic sugar for a two-dimensional array constructed with braces.

\paragraph{Equations numbering}
Equations can be numbered in display mode adding the options \code{numbering} and \code{counter}.
Omikhleia marked this conversation as resolved.
Show resolved Hide resolved
When \code{numbering=true}, the equations are numbered using a default "equation" counter.
A different counter may be set by using the option \code{counter=id}, and this setting will also enable numbering.
The default numbering format is '(xx)', but this style may be overriden by defining a custom math-counterstyle function, e.g.

\begin[type=autodoc:codeblock]{raw}
\define[command=math-counterstyle]{(\show-counter[id="equation"])}
\end{raw}

\paragraph{Missing features}
This package still lacks support for some mathematical constructs, but hopefully we’ll get there.
Among unsupported constructs are: decorating symbols with so-called accents, such as arrows or hats, “over” or “under” braces, and line breaking inside a formula.
Expand Down