Directory macros/luatex/latex/luamathaccents
luamathaccents
Version 1.0 (2026/07/26)
Type accented mathematical symbols directly in your source file using Unicode combining characters. With luamathaccents loaded, the two-character sequence x + U+0302 (combining circumflex accent) — which your editor displays as an accented letter — is rewritten on input to \hat x, and likewise for two dozen other combining characters (grave, acute, tilde, macron, breve, dot, diaeresis, caron, vector arrow, harpoons, and more).
The package uses LuaTeX's process_input_buffer callback, so it requires the LuaTeX engine (lualatex). Some of the rarer generated commands (\ovhook, \candra, \annuity, ...) are provided by the unicode-math package.
Usage
\usepackage{luamathaccents}
The rewriting is active from that point on. \LuaMathAccentsOff and \LuaMathAccentsOn disable and re-enable it mid-document.
See luamathaccents-doc.pdf for the full list of supported combining characters and some caveats.
Development happens at https://github.com/NittanyLion/luamathaccents; please report bugs there.
Installation
The package is contained in luamathaccents.sty and luamathaccents.lua; both must be findable by LuaLaTeX. For a TDS-compliant installation, place the files as:
tex/lualatex/luamathaccents/luamathaccents.stytex/lualatex/luamathaccents/luamathaccents.luadoc/lualatex/luamathaccents/luamathaccents-doc.texdoc/lualatex/luamathaccents/luamathaccents-doc.pdfdoc/lualatex/luamathaccents/README.md
The documentation is built with lualatex luamathaccents-doc.tex (run twice).
License
Copyright 2026 Joris Pinkse.
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. This work has the LPPL maintenance status "maintained"; the current maintainer is Joris Pinkse (pinkse@gmail.com).
Download the contents of this package in one zip archive (144.1k).
luamathaccents – Use Unicode combining accents in math input with LuaLaTeX
This package lets you type accented mathematical symbols directly in your source file using Unicode combining characters. With the package loaded, a base character followed by a supported combining character (for instance “x” + U+0302, combining circumflex accent) is rewritten on input to the corresponding accent command (\hat x), and likewise for two dozen other combining characters. The package uses LuaTeX’s process_input_buffer callback and therefore requires LuaLaTeX. Some of the rarer generated commands are provided by unicode-math.
| Package | luamathaccents |
| Repository | |
| Version | 1.0 2026-07-26 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Joris Pinkse |
| Maintainer | Joris Pinkse |
| Topics | Unicode Maths LuaTeX |