4.hs 542 B

12345678910111213141516171819
  1. {-# LANGUAGE OverloadedStrings #-}
  2. import Util
  3. import Text.LaTeX
  4. import Text.LaTeX.Base.Class
  5. import Text.LaTeX.Base.Syntax
  6. import Text.LaTeX.Packages.Graphicx
  7. import Text.LaTeX.Packages.Geometry
  8. main :: IO ()
  9. main = printdoc doc
  10. doc :: Monad m => LaTeXT_ m
  11. doc = do
  12. mapM_ (\y -> mapM (\x -> z x y) [0 :: Double, 0.1 .. y - 0.2]) [0.5 :: Double, 0.55 .. 1]
  13. z :: LaTeXC l => Double -> Double -> l
  14. z x y = textblock' (vw x) (vh y) $ rotatebox' ((x + y) * (-180) / pi - 90) $ fontsize (vh $ y * 0.05) (vw 0) "crashing crashing crashing"