mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Draft article about fonts (#95)
Former-commit-id: 002f55748d12811f0c8bf0d9b3df9a6674274cdd
This commit is contained in:
parent
c45ba63e6c
commit
c8d9fa6204
4 changed files with 46 additions and 0 deletions
29
examples/fonts_latex.hs
Executable file
29
examples/fonts_latex.hs
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env stack
|
||||
-- stack runghc --package reanimate
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
module Main
|
||||
( main
|
||||
)
|
||||
where
|
||||
|
||||
import Reanimate
|
||||
import Reanimate.LaTeX
|
||||
import Reanimate.Builtin.Documentation
|
||||
|
||||
main :: IO ()
|
||||
main =
|
||||
reanimate
|
||||
$ docEnv
|
||||
$ staticFrame 1
|
||||
$ withFillColor "black"
|
||||
$ withFillOpacity 1
|
||||
$ mkGroup
|
||||
[ latex "Computer Modern"
|
||||
, translate 0 (-2)
|
||||
$ latexWithHeaders ["\\usepackage{calligra}"] "\\calligra\nGalligra"
|
||||
, translate (-6) (-2)
|
||||
$ latexWithHeaders ["\\usepackage{noto}"] "\\normalfont\nNoto"
|
||||
, translate (-6) 0
|
||||
$ latexWithHeaders ["\\usepackage{helvet}"] "Helvetica"
|
||||
]
|
||||
|
||||
Loading…
Reference in a new issue