LineIndent

LineIndent

is an option for Style and Cell that specifies how many ems of indentation to add at the beginnings of lines for each level of nesting in an expression.

Details

  • The typical default setting is LineIndent->1.
  • The setting for LineIndent determines the amount of indentation that will be inserted after any explicit newline is entered when AutoIndent->True.

Examples

open allclose all

Basic Examples  (2)

Specify the size of indentation:

No indentation:

Scope  (1)

Create a cell with AutoIndent->True with specific line indent:

When you press the TemplateBox[{return}, Key0, BaseStyle -> {ExampleText, FontWeight -> Plain, FontFamily -> Source Sans Pro}] key, the Wolfram System inserts the indentation according to LineIndent:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2023_lineindent, author="Wolfram Research", title="{LineIndent}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/LineIndent.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_lineindent, organization={Wolfram Research}, title={LineIndent}, year={1996}, url={https://reference.wolfram.com/language/ref/LineIndent.html}, note=[Accessed: 19-March-2024 ]}