Neural Sketch
Commands/preloaded

nsk@BlockID

Retrieve the identifier of the current block in Neural Sketch diagrams.

Overview

The \nskBlockID command expands to the identifier of the currently being drawn block in your Neural Sketch diagram. This allows you to programmatically reference or inspect the current block’s ID for positioning, connecting, or annotation.

Usage

Since \nskBlockID takes no arguments, you simply invoke it wherever you need the current block’s ID:

\nskBlock[
  id=myBlock,
  text-center={Block A},
  text-north=\nskBlockID, % debug
]

On this page