nsk@MarkPath
Comprehensive reference for the `\nskMarkPath` command in Neural Sketch.
Overview
The \nskMarkPath
command introduces an elegant and precise mechanism to decorate or mark paths within Neural Sketch diagrams. Extending TikZ's powerful decoration library, \nskMarkPath
allows users to place custom markings—such as arrows, dots, or custom symbols—at regular intervals, specific positions, or segments along a defined path.
This functionality is particularly beneficial for illustrating directions, emphasizing critical sections, or annotating significant transitions within complex diagrams.
Syntax
Basic usage follows the structure:
Detailed Usage
Defining Paths
Paths can be provided directly in TikZ syntax, or by referencing an existing path:
Optional Parameters
The command accepts a variety of optional parameters to refine decorations:
Parameter | Type | Default | Description |
---|---|---|---|
start | float | 0 | Starting fractional position along the path (0 beginning). |
end | float | 1 | Ending fractional position along the path (1 path end). |
at | float | — | Specific fractional position to place a single decoration. |
step | dimension | 10mm | Interval between repeated decorations along the path. |
color | color | nskFg | Color of decoration elements. |
path-width | dimension | 0pt | Width of the underlying path, used in skip calculations. |
skip-first | boolean | false | Skip placing decoration at the very start of the path. |
skip-last | boolean | false | Skip placing decoration at the very end of the path. |
Examples
Regularly Spaced Decorations
Place arrows at regular intervals along a path:
Specific Single Decoration
Decorate at a specific location:
Skipping Path Ends
Exclude decorations from endpoints, useful for arrows or terminal indicators:
Error Handling
- Unrecognized optional parameters are gracefully ignored but generate warnings to help users diagnose potential typographical or conceptual issues.
Verify all provided parameters and path definitions to avoid unexpected behaviors.
See Also
- Mark Path for advance usage.
Reference Table
Prop | Type | Default |
---|---|---|
start? | float | 0 |
end? | float | 1 |
at? | float |
|
step? | dimension | 10mm |
color? | color | nskFg |
path-width? | dimension | 0pt |
skip-first? | boolean | false |
skip-last? | boolean | false |
With \nskMarkPath
, Neural Sketch users can precisely and elegantly articulate important nuances and directional flows, elevating the clarity and professional quality of their diagrams.