1.hs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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. textblock' (vw 0.95) (vh 0.45) $ itemize $ do
  13. item $ Just $ large2 $ "table of contents"
  14. item $ Just "YOU ARE HERE"
  15. item $ Just "at peace"
  16. item $ Just "Echoes"
  17. item $ Just "crashing"
  18. item $ Just "The treachery of icosahedra"
  19. item $ Just "Footprints"
  20. item $ Just "a!"
  21. item $ Just "The Collapse"
  22. item $ Just "Symphony For Twenty Thousand Cats, Movement One"
  23. item $ Just "Symphony For Twenty Thousand Cats, Movement Two"
  24. item $ Just "Symphony For Twenty Thousand Cats, Movement Three"
  25. item $ Just "Symphony For Twenty Thousand Cats, Movement Four"
  26. mapM_ e [17 / 32, 35 / 64 .. 1]
  27. textblock' (vw 0.2) (vh 0.7) $ parbox Nothing (Em 15) "This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/."
  28. e x = textblock' (vw x) (vh $ 0.35 + x / 2) $ rotatebox' ((sin x * pi * 2) * (-180) / pi - 90) $ fontsize (vw 0.05) (vw 0) "YOU ARE HERE YOU ARE HERE YOU ARE HERE"