CTAN Comprehensive TeX Archive Network

Directory macros/luatex/generic/luaalignstate

README.md

luaalignstate

This is a Lua package that provides a hack to access the alignment brace counter (aka "master counter", align_state).

Intended only for low-level programming and debugging; not for ordinary documents.

Building

  • Extract the Lua and packages:
```bash
tex luaalignstate.dtx
```
  • Extract the Lua and packages and also typeset the documented code:
```bash
pdflatex luaalignstate.dtx
```
The auxiliary file `support/fancyvrbx.sty` must be either in the TeX search path, or in a subdirectory of the current directory named `support/` (it is not needed to use the package, only to typeset the documentation).
  • Only typeset the interface documentation:
```bash
pdflatex '\PassOptionsToClass{onlydoc}{l3doc}\input' luaalignstate.dtx
```
  • l3build doc in the source repository will typeset both versions of the documentation.

Note: the file support/fancyvrbx.sty is a collection of ad-hoc macros used by the documentation. It is not meant to be installed or broadly usable.

License and repository

Download the contents of this package in one zip archive (875.0k).

Luaalignstate – Access the alignment counter in Lua

This Lua package provides a means to inspect and modify the alignment brace counter (also known as the master counter, align_state). It is based on a memory allocation hack, and is intended only for low-level programming and debugging purposes, not for ordinary documents.

There is an underlying format-independent Lua module, as well as an expl3-style wrapper package.

PackageLuaalignstate
Bug tracker
Repository
Version1.0
LicensesMIT License
Copyright2026 Ruiyuan Chen
MaintainerRuiyuan Chen
TopicsAlignment Support
Debug support
Macro support
Lua
...
Guest Book Sitemap Contact Contact Author