Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. \documentclass{article}
  2.  
  3. \usepackage{verbatim}
  4. \newenvironment{code}{\verbatim}{\endverbatim}
  5.  
  6. \begin{document}
  7.  
  8. \section*{Latex $<$3 Haskell}
  9. Check it out: this file is both valid \LaTeX{}, and valid Haskell!
  10.  
  11. \begin{code}
  12. main = putStrLn "Check it out: this file is both valid LaTeX, and valid Haskell!"
  13. \end{code}
  14.  
  15. Compile with
  16. \begin{verbatim}
  17. latex latex-and-haskell.lhs # for latex
  18. ghc latex-and-haskell.lhs # for haskell
  19. \end{verbatim}
  20.  
  21. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement