diff options
Diffstat (limited to 'macros/luatex/latex/luamathalign/README.md')
-rw-r--r-- | macros/luatex/latex/luamathalign/README.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/macros/luatex/latex/luamathalign/README.md b/macros/luatex/latex/luamathalign/README.md new file mode 100644 index 0000000000..0eb7c4d06f --- /dev/null +++ b/macros/luatex/latex/luamathalign/README.md @@ -0,0 +1,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. |