summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/luamathalign/README.md
blob: 0eb7c4d06f78a3618d5c96e8fffa2c59ad4e9c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# The `luamathalign` package for LuaLaTeX

With `amsmath`'s `align` environment simple equations can be aligned easily, e.g.

```tex
2  &=1+1\\
2-1&=1
```

but even just adding an underline makes this much more complicated. E.g.

```tex
2  &=1+1\\
\underline{2-1&=1}
```

is not allowed. Similarly alignment points surrounded by `\left` and `\right`
or points nested in other environments do not work.

For LuaLaTeX this can be solved with luamathalign. It adds a command `\AlignHere`
which behaves mustly like `&` except that it's allowed almost anywhere. E.g.

```
                      2 &= 1+1\\
\underline{2-1 \AlignHere= 1}
```


Licensed under the LPPL v1.3c or later.