CellLabelTemplate

CellLabelTemplate

is an option for Cell that specifies string templates to use for formatting the default labels used for marking inputs and outputs

Details

  • CellLabelTemplate is not used if ShowCellLabelTrue or CellLabelAutoDeleteAutomatic is set.
  • CellLabelTemplate-><||> uses the default cell labels provided by the kernel.
  • CellLabelTemplate-><|"In"template1,"Out"template2|> specifies a StringTemplate to use for input and output labels, respectively.
  • CellLabelTemplate takes an association with the following elements:
  • "In"Nonestring template to use for input labels
    "InExpired""In[]:="string template to use for labels of inputs that no longer correspond to a running kernel
    "Out"Nonestring template to use for output labels
    "OutExpired""Out[]="string template to use for labels of outputs that no longer correspond to a running kernel
  • The templatei are typically specified as a raw string that is interpreted as StringTemplate with two positional arguments. `1` represents the position line number and `2` represents a form qualifier, if present, such as //InputForm.

Examples

Basic Examples  (1)

Change the cell label of the input cell:

Wolfram Research (2022), CellLabelTemplate, Wolfram Language function, https://reference.wolfram.com/language/ref/CellLabelTemplate.html.

Text

Wolfram Research (2022), CellLabelTemplate, Wolfram Language function, https://reference.wolfram.com/language/ref/CellLabelTemplate.html.

CMS

Wolfram Language. 2022. "CellLabelTemplate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellLabelTemplate.html.

APA

Wolfram Language. (2022). CellLabelTemplate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellLabelTemplate.html

BibTeX

@misc{reference.wolfram_2024_celllabeltemplate, author="Wolfram Research", title="{CellLabelTemplate}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/CellLabelTemplate.html}", note=[Accessed: 16-July-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_celllabeltemplate, organization={Wolfram Research}, title={CellLabelTemplate}, year={2022}, url={https://reference.wolfram.com/language/ref/CellLabelTemplate.html}, note=[Accessed: 16-July-2024 ]}