decker-edu / decker

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

Add LaTeX-esque font-size modifiers #92

Open salbeira opened 7 months ago

salbeira commented 7 months ago

It was requested that we add font-size modifiers akin to the usual LaTeX font-size altering environments and makros.

I also found that some rare document classes also have:

and

Check out the text-and-scale branch for the test deck text-styling-deck to review. Sadly, the LaTeX references I found specify the sizes of each of these modifications in direct pt values and not % values relative to normalsize but if you have any feedback please feel free to comment.

marcerich commented 7 months ago

In the nwburg template this is already included like this (see wburg.css:

  /* Calculate all font size variables depending on the base font size accessible 
   via yaml config */
  --font-size-medium: calc(var(--font-size-base) * 1);
  --font-size-normal: calc(var(--font-size-base) * 1);
  --font-size-xx-small: calc(var(--font-size-base) * 0.4);
  --font-size-x-small: calc(var(--font-size-base) * 0.6);
  --font-size-small: calc(var(--font-size-base) * 0.8);
  --font-size-large: calc(var(--font-size-base) * 1.2);
  --font-size-x-large: calc(var(--font-size-base) * 1.4);
  --font-size-xx-large: calc(var(--font-size-base) * 1.6);