decker-edu / decker

A markdown based tool for slide deck creation.
GNU General Public License v3.0
53 stars 13 forks source link

LaTeX Textsizes and Scaling #99

Open salbeira opened 5 months ago

salbeira commented 5 months ago

This merge adds a chunk of classes that are equal to the names of LaTeX Font Size modifying environments to the default css ruleset. These shrink or enlarge the font size of the object they are attached to:

[Large Text]{.large}

::: LARGE

Larger Text

:::

In addition it adds a mechanism that allows a user to "scale" any DOM element:

::: {scale=2}

Content

:::

Because in HTML, using the transform scale mechanism does not scale the DOM element's bounding box, a wrapping mechanism is used to put a DOM element in place that has the exact size of the inner, scaled element. Thus the rest of the page's content is adjusted in a similar way LaTeX's scalebox does its thing.

Please review if the later mechanism is even desirable. Documentation about the mechanism is in the new test-deck.