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):
-
Single module:
-
Multiple modules (comma-separated):
-
All modules:
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
:
Module | Description |
---|---|
bridges | Manages arrow routing, bridging arcs, and line crossings. |
coords | Provides precise anchor points and named coordinates. |
groups | Logical grouping with transformations such as rotation and scaling. |
containers | Styled bounding boxes and groupings with automatic layout. |
annotations | Automatic, numbered annotations and referencing. |
decorations | Path markers and custom decorations for enhanced visuals. |
render | Conditional rendering of content based on switch cases. |
measure | Tools for precise dimension measurement between nodes. |
zoom | Interactive magnified callouts using TikZ's spy library. |
icons | Support 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
Prop | Type | Default |
---|---|---|
module_list | choice | {} |