Layout kit command
footnote.options
Document Footnote Options
Sets footnote numbering, styles, spacing and layout options.
- Kit
- Layout 0.1.0 (.klayout)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
affixIn | "none" | "reference" | "text" | "both" | no | |
firstBaseline | string | no | |
firstBaselineMin | number | no | points |
paraStyle | string | no | a paragraph style name |
prefix | string | no | |
refCharStyle | string | no | a character style name |
refPosition | "superscript" | "subscript" | "normal" | "otSuperscript" | no | |
restart | "never" | "page" | "spread" | "section" | no | |
rule | object | no | {on, weight, color, tint, width, offset, leftIndent} |
separator | string | no | |
spaceBefore | number | no | |
spaceBetween | number | no | points |
spanColumns | boolean | no | |
startAt | integer | no | |
style | "arabic" | "upperRoman" | "lowerRoman" | "upperLetters" | "lowerLetters" | "symbols" | no | |
suffix | string | no | |
text | string | no | read by the command beside its listed parameters |
Call through layout_run
text
layout_run {
"path": "<file>.klayout",
"steps": [{ "command": "footnote.options" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: affixIn, firstBaseline, firstBaselineMin, paraStyle, prefix, refCharStyle, refPosition, restart, rule, separator, spaceBefore, spaceBetween, spanColumns, startAt, style, suffix, text. layout_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": {
"affixIn": {
"enum": [
"none",
"reference",
"text",
"both"
],
"type": "string"
},
"firstBaseline": {
"type": "string"
},
"firstBaselineMin": {
"description": "points",
"type": "number"
},
"paraStyle": {
"description": "a paragraph style name",
"type": "string",
"x-khp-name": "paragraphName",
"x-khp-types": [
"Style"
]
},
"prefix": {
"type": "string"
},
"refCharStyle": {
"description": "a character style name",
"type": "string",
"x-khp-name": "characterName",
"x-khp-types": [
"Style"
]
},
"refPosition": {
"enum": [
"superscript",
"subscript",
"normal",
"otSuperscript"
],
"type": "string"
},
"restart": {
"enum": [
"never",
"page",
"spread",
"section"
],
"type": "string"
},
"rule": {
"additionalProperties": true,
"description": "{on, weight, color, tint, width, offset, leftIndent}",
"properties": {
"color": {
"type": "string",
"x-khp-name": "name",
"x-khp-role": "object",
"x-khp-types": [
"Swatch"
]
},
"leftIndent": {},
"offset": {
"type": "number"
},
"on": {},
"tint": {},
"weight": {
"type": "number"
},
"width": {
"type": "number"
}
},
"type": "object"
},
"separator": {
"type": "string"
},
"spaceBefore": {
"type": "number"
},
"spaceBetween": {
"description": "points",
"type": "number"
},
"spanColumns": {
"type": "boolean"
},
"startAt": {
"type": "integer"
},
"style": {
"enum": [
"arabic",
"upperRoman",
"lowerRoman",
"upperLetters",
"lowerLetters",
"symbols"
],
"type": "string"
},
"suffix": {
"type": "string"
},
"text": {
"description": "read by the command beside its listed parameters",
"type": "string"
}
},
"returns": "the options (no params: just read them)",
"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.