Typesetting controls¶
TeXSmith bundles a ts-typesetting fragment that tweaks basic paragraph layout, line spacing, and optional line numbers. By default it stays silent—nothing is injected unless you set one of its options.
Configuration¶
All keys live under press.typesetting (short aliases also work: press.paragraph, paragraph, etc.).
press:
typesetting:
paragraph:
indent: auto # true | false | auto
spacing: 1cm # any TeX length; omit to keep the template default
leading: onehalf # single | onehalf | double | <length> | <number factor>
lineno: true # turn on margin line numbers
paragraph.indentcontrols\parindentplus the memoir/article\@afterindent…switches.autoleaves the first paragraph flush and indents the following ones;truealways indents;falsedisables indentation.paragraph.spacingsets\parskipto your length (leave empty for the template’s original value).leadingsets line spacing.single,onehalf, anddoublecall the usual spacing commands. A numeric value applies a stretch factor (1.2→ 1.2×). A length sets\baselineskipdirectly (1em,14pt, etc.).lineno: trueloads thelinenopackage and enables\linenumbersfor the whole document.
Class-aware spacing¶
- On
memoir, the fragment uses the class-provided\SingleSpacing,\OnehalfSpacing, and\DoubleSpacingwhen available, falling back to\baselinestretchupdates. - On other classes (article, report…), it loads
setspaceand uses\singlespacing,\onehalfspacing, or\doublespacing.
Templates¶
The built-in article and book templates inject ts-typesetting directly (no \usepackage file to manage). If you don’t set any of the options above, the fragment emits nothing and the templates’ stock spacing stays unchanged.