Omikhleia / resilient.sile

Advanced book classes and packages for the SILE typesetting system
MIT License
21 stars 4 forks source link

Default folio style introduces a paragraph indent on even pages #30

Closed Omikhleia closed 1 year ago

Omikhleia commented 1 year ago

Oops.

An unnoticed side effect of having switched from SILE's ragged environments to our own via paragraph styling in 3a16ef1f96949fe7460ce004d347972ceef67f51 The former don't support nesting, but cancel parindent; the latter support (r/l skip) nesting but doesn't touch the parindent (by design, on purpose!)... And see details further below.

image

Workaround:

Override the default style in the document's style file:

folio-even:
  inherit: "folio-base"
  origin: "resilient.book"
  style:
    paragraph:
      align: "left"
      before:
        indent: false

folio-odd:
  inherit: "folio-base"
  origin: "resilient.book"
  style:
    paragraph:
      align: "right"
      before:
        indent: false

Note

There might be more than meets the eye, here (wrong default?), to check.

EDIT: And we also have to check how SILE issue 1699 gets addressed, because we are also in that situation (temporary environment), with parindent scoping issues.