nsk@BlockIDLast
Retrieve identifiers of previously defined blocks based on their relative creation order.
This is an unstable API, only used internally. Deprecated in favor of \nskID
Overview
The \nskBlockIDLast macro returns the identifier of the nth-last defined block within the current nskFigure, where 1 corresponds to the most recently created block, 2 to the second most recent, and so on. This enables precise referencing and positioning relative to any previously defined element in your diagram.
Usage
n(number, required): Relative index counting backwards from the latest block, with1indicating the most recent,2the second most recent, etc.
Referencing an index larger than the number of existing blocks triggers a LaTeX compilation error. Always ensure the requested block exists.
Alias: \nskLastBlockID
For convenience, the alias \nskLastBlockID is provided, which returns the ID of the block immediately preceding the latest defined block (equivalent to \nskBlockIDLast{2}).
Examples
Reference Table
| Prop | Type | Default |
|---|---|---|
| n | number | {} |
