Skip to content

TextCell ​

A block of prose in a cell style: Text, Section, Item, DisplayFormula, Program, …

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageTextCell✓
TextCell(content, style)A block of prose in a cell style: Text, Section, Item, DisplayFormula, Program, …
Typed signatures
TypePackageApplies
(boxes, string, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • What a markdown block reads as: a paragraph is Text, a heading Title to Subsubsubsubsection, a list item Item/Subitem/Subsubitem (…Numbered in a numbered list), a $$ block DisplayFormula, a fenced block Program with its Language, a block quote Quote.
  • A document is a sequence of them, as a notebook's cells are.
  • The web draws a heading style as h1 to h6, Quote as a block quote, Program as pre, and any other as a paragraph that keeps its style in data-cell-style.

Examples

Basic #

a box is inert: it evaluates to itself

live ↗
InTextCell(TextData([Hello,world]),Text)\mathrm{TextCell}(\mathrm{TextData}(\bigl\lbrack\text{Hello}, \text{world}\bigr\rbrack), \text{Text})OutTextCell(TextData([Hello,world]),Text)\mathrm{TextCell}(\mathrm{TextData}(\bigl\lbrack\text{Hello}, \text{world}\bigr\rbrack), \text{Text})
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: TextData, FormBox