Neural Sketch
Commands/preloaded

nsk@UseModule

Selectively load Neural Sketch modules with `\\nskUseModule`

Overview

The \nskUseModule command provides precise control over which Neural Sketch modules are activated in your document. By loading only the modules you need, you can optimize compilation performance and maintain clarity about your diagram dependencies.

Usage

Invoke \nskUseModule in the preamble of your document (before any diagrams):

\nskUseModule{<module_list>}
  • Single module:

    \nskUseModule{containers}
  • Multiple modules (comma-separated):

    \nskUseModule{bridges, coords, groups}
  • All modules:

    \nskUseModule{*}

Avoid calling \\nskUseModule multiple times with different lists of modules, as this may lead to conflicts or unexpected behavior.

Available Modules

Use the following table to view the modules available for loading with \nskUseModule:

ModuleDescription
bridgesManages arrow routing, bridging arcs, and line crossings.
coordsProvides precise anchor points and named coordinates.
groupsLogical grouping with transformations such as rotation and scaling.
containersStyled bounding boxes and groupings with automatic layout.
annotationsAutomatic, numbered annotations and referencing.
decorationsPath markers and custom decorations for enhanced visuals.
renderConditional rendering of content based on switch cases.
measureTools for precise dimension measurement between nodes.
zoomInteractive magnified callouts using TikZ's spy library.
iconsSupport for embedding and styling icons within diagrams.

Internal Behavior

Internally, \nskUseModule parses the comma-separated module names (or * for all), constructs the corresponding file names neural-sketch-<module>.sty, and attempts to load each with \RequirePackage. If any specified module cannot be found, compilation will halt with a clear error message indicating which module was missing.

Reference Table

PropTypeDefault
module_listchoice{}

On this page