Skip to content

v0.3.0: Styling overhaul

Choose a tag to compare

@nleanba nleanba released this 27 Dec 16:42
· 10 commits to main since this release
11a3d3f

Styling Changes

The old fmt-prefix and fmt-body have been removed, instead there is now more fine-grained control available.

There are now styled presets: basic, corners, columns, fancy, bar, colorbox. These can be controlled by a variant parameter on the theorem (e.g. variant: "important" adds a frame around the theorem in most presets), and a fine-grained options dictionary.

The basic style closely mimics the "amsthm" style, and there is similar options available: e.g. remove the . after the title by using options: (head-punct: none).

For full control and defining custom styles, there is a show-theorem parameter which allows for completely custom rendering.

Other Changes

  • title and label arguments can now be passed as positional or named arguments
  • solution is now a named argument
  • It now takes a piece of content as suffix (qed), instead of a function (fmt-suffix)
  • Nested proofs are now supported (with correct QED placement)
  • There is a new qed-in-equation() helper function to help with manually placed QEDs after block equations.
  • Restated theorems now use the same style as the original automatically.
  • Solutions section: You can now customize what environment/style to use for the solutions.

Please see the manual for full documentation.

Full Changelog: v0.2.0...v0.3.0