Doc kit command

page.columns

Columns

Sets the number of text columns (1 to 12) of the current section, with spacing, a separator line or set widths.

Kit
Doc 0.1.0 (.docx)
Changes the document
yes

Parameters

Parameters of page.columns
NameTypeRequiredDescription
apply"section" | "document" | "forward"no
countintegerno1 to 12
preset"left" | "right"no
separatorbooleanno
spacenumbernopoints
widthsany[]no[[width pt, space after pt], …] (unequal columns; sets the count); unequal columns; sets the count

Call through doc_run

text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "page.columns" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: apply, count, preset, separator, space, widths. doc_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "apply": {
      "enum": [
        "section",
        "document",
        "forward"
      ],
      "type": "string"
    },
    "count": {
      "description": "1 to 12",
      "type": "integer"
    },
    "preset": {
      "enum": [
        "left",
        "right"
      ],
      "type": "string"
    },
    "separator": {
      "type": "boolean"
    },
    "space": {
      "description": "points",
      "type": "number"
    },
    "widths": {
      "description": "[[width pt, space after pt], …] (unequal columns; sets the count); unequal columns; sets the count",
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (doc_commands through @kition/[email protected], built from KitionAI/kition-doc@41e14a8). As data: commands.jsonl.