Doc kit command

equation.edit

Edit Equation

Puts the caret into the equation at the selection, optionally at a position inside it.

Kit
Doc 0.1.0 (.docx)
Changes the document
no

Parameters

Parameters of equation.edit
NameTypeRequiredDescription
posobjectno

Call through doc_run

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

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

Result

Result of equation.edit
NameTypeRequiredDescription
displaybooleanno
editingbooleanno
linearstringno
posobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "display": {
      "type": "boolean"
    },
    "editing": {
      "type": "boolean"
    },
    "linear": {
      "type": "string"
    },
    "pos": {
      "additionalProperties": true,
      "properties": {
        "off": {
          "type": "number"
        },
        "path": {
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "pos": {
      "additionalProperties": true,
      "properties": {
        "off": {
          "type": "integer"
        },
        "path": {
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "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.