figure tikz
Create editable TikZ from a generated or supplied SVG reference.
Invocation#
lem-cli figure tikz <id-or-title> [--label <label>] [--caption <caption>] [--output-name <name>] [--source-image <path>]Inputs and options#
- --label and --caption override the automatic brief. --output-name controls the TikZ output stem.
- --source-image <path> uses an existing reference; without it, Lem first writes a generated SVG preview.
Output and state#
Writes the TikZ result in the paper's figures directory and prints JSON including asset_path and tikz_path. When installed Probierz evaluates a reference, the result also carries quality_report_path, quality_attempts, and quality_passed.
A Probierz rejection triggers bounded revisions; exhausting the attempt limit returns a failed result instead of approving the candidate.
Refusals#
- Any unknown argument is refused with “figure tikz does not take a description; unexpected argument: <value>”. Each supported option requires a value.
- No automatic brief, no local source directory, a failed preview, conversion failure, or exhausted Probierz loop yields a failed result and nonzero exit.
- Paper lookup refuses an empty or unmatched selector.