Layout kit command

toc.entries

Table of Contents Entries

Answers the table-of-contents entries for styles (level, text, page) without changing the document.

Kit
Layout 0.1.0 (.klayout)
Changes the document
no

Parameters

Parameters of toc.entries
NameTypeRequiredDescription
entriesanynoone of several alternative parameters
stylesanynoone of several alternative parameters

Call through layout_run

text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "toc.entries" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: entries, styles. layout_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "items": {
    "additionalProperties": true,
    "properties": {
      "level": {
        "type": "number"
      },
      "page": {
        "type": "string"
      },
      "text": {
        "type": "string"
      }
    },
    "type": "object"
  },
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "entries": {
      "description": "one of several alternative parameters"
    },
    "styles": {
      "description": "one of several alternative parameters"
    }
  },
  "returns": "[{level, text, page}] without changing the document",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). As data: commands.jsonl.