beamer-pdflatex.tex 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. \documentclass{beamer}
  2. % Use the input encoding UTF-8 and the font encoding T1.
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[T1]{fontenc}
  5. % Support for Agda code.
  6. \usepackage{agda}
  7. % Decrease the indentation of code.
  8. \setlength{\mathindent}{1em}
  9. % Customised setup for certain characters.
  10. \usepackage{newunicodechar}
  11. \newunicodechar{∀}{\ensuremath{\mathnormal{\forall}}}
  12. \newunicodechar{→}{\ensuremath{\mathnormal{\to}}}
  13. \newunicodechar{₁}{\ensuremath{{}_1}}
  14. % Support for Greek letters.
  15. \usepackage{alphabeta}
  16. % Disable ligatures that start with '-'. Note that this affects the
  17. % entire document!
  18. \usepackage{microtype}
  19. \DisableLigatures[-]{encoding=T1}
  20. \begin{document}
  21. \begin{frame}
  22. Some code:
  23. \begin{code}%
  24. %
  25. \>[2]\AgdaSymbol{\{-\#}\AgdaSpace{}%
  26. \AgdaKeyword{OPTIONS}\AgdaSpace{}%
  27. \AgdaPragma{--without-K}\AgdaSpace{}%
  28. \AgdaPragma{--count-clusters}\AgdaSpace{}%
  29. \AgdaSymbol{\#-\}}\<%
  30. \\
  31. %
  32. \\[\AgdaEmptyExtraSkip]%
  33. %
  34. \>[2]\AgdaKeyword{open}\AgdaSpace{}%
  35. \AgdaKeyword{import}\AgdaSpace{}%
  36. \AgdaModule{Agda.Builtin.String}\<%
  37. \\
  38. %
  39. \\[\AgdaEmptyExtraSkip]%
  40. %
  41. \>[2]\AgdaComment{--\ A\ comment\ with\ some\ TeX\ ligatures:}\<%
  42. \\
  43. %
  44. \>[2]\AgdaComment{--\ --,\ ---,\ ?`,\ !`,\ `,\ ``,\ ',\ '',\ <<,\ >>.}\<%
  45. \\
  46. %
  47. \\[\AgdaEmptyExtraSkip]%
  48. %
  49. \>[2]\AgdaFunction{Θ₁}\AgdaSpace{}%
  50. \AgdaSymbol{:}\AgdaSpace{}%
  51. \AgdaPrimitive{Set}\AgdaSpace{}%
  52. \AgdaSymbol{→}\AgdaSpace{}%
  53. \AgdaPrimitive{Set}\<%
  54. \\
  55. %
  56. \>[2]\AgdaFunction{Θ₁}\AgdaSpace{}%
  57. \AgdaSymbol{=}\AgdaSpace{}%
  58. \AgdaSymbol{λ}\AgdaSpace{}%
  59. \AgdaBound{A}\AgdaSpace{}%
  60. \AgdaSymbol{→}\AgdaSpace{}%
  61. \AgdaBound{A}\<%
  62. \\
  63. %
  64. \\[\AgdaEmptyExtraSkip]%
  65. %
  66. \>[2]\AgdaFunction{a-name-with--hyphens}\AgdaSpace{}%
  67. \AgdaSymbol{:}\AgdaSpace{}%
  68. \AgdaSymbol{∀}\AgdaSpace{}%
  69. \AgdaSymbol{\{}\AgdaBound{A}\AgdaSpace{}%
  70. \AgdaSymbol{:}\AgdaSpace{}%
  71. \AgdaPrimitive{Set}\AgdaSymbol{\}}\AgdaSpace{}%
  72. \AgdaSymbol{→}\AgdaSpace{}%
  73. \AgdaBound{A}\AgdaSpace{}%
  74. \AgdaSymbol{→}\AgdaSpace{}%
  75. \AgdaBound{A}\<%
  76. \\
  77. %
  78. \>[2]\AgdaFunction{a-name-with--hyphens}\AgdaSpace{}%
  79. \AgdaBound{ff--fl}\AgdaSpace{}%
  80. \AgdaSymbol{=}\AgdaSpace{}%
  81. \AgdaBound{ff--fl}\<%
  82. \\
  83. %
  84. \\[\AgdaEmptyExtraSkip]%
  85. %
  86. \>[2]\AgdaFunction{ffi}\AgdaSpace{}%
  87. \AgdaSymbol{:}\AgdaSpace{}%
  88. \AgdaPostulate{String}\<%
  89. \\
  90. %
  91. \>[2]\AgdaFunction{ffi}\AgdaSpace{}%
  92. \AgdaSymbol{=}\AgdaSpace{}%
  93. \AgdaString{"--"}\<%
  94. \end{code}
  95. Note that the code is indented.
  96. \end{frame}
  97. \end{document}