acmart-pdflatex.quick.tex 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. \documentclass[acmsmall]{acmart}
  2. % Use the UTF-8 encoding.
  3. \usepackage[utf8]{inputenc}
  4. % Support for Agda code.
  5. \usepackage{agda}
  6. % Code should be indented.
  7. \setlength{\mathindent}{1em}
  8. % Customised setup for certain characters.
  9. \usepackage{newunicodechar}
  10. \newunicodechar{∀}{\ensuremath{\mathnormal{\forall}}}
  11. \newunicodechar{₁}{\ensuremath{{}_{\textsf{1}}}}
  12. % Support for Greek letters.
  13. \usepackage{alphabeta}
  14. % Disable ligatures that start with '-'. Note that this affects the
  15. % entire document! Note also that if all you want to do is to ensure
  16. % that the comment starter '--' is typeset with two characters, then
  17. % you do not need this command, because '--' is not typeset as an en
  18. % dash (–) when the typewriter font is used.
  19. \DisableLigatures[-]{encoding=T1}
  20. \begin{document}
  21. \acmConference{Some conference}
  22. \maketile
  23. Some code:
  24. \begin{code}%
  25. \>[0]\AgdaSymbol{\{-\#}\AgdaSpace{}%
  26. \AgdaKeyword{OPTIONS}\AgdaSpace{}%
  27. \AgdaPragma{--without-K}\AgdaSpace{}%
  28. \AgdaPragma{--count-clusters}\AgdaSpace{}%
  29. \AgdaSymbol{\#-\}}\<%
  30. \\
  31. %
  32. \\[\AgdaEmptyExtraSkip]%
  33. \>[0]\AgdaKeyword{open}\AgdaSpace{}%
  34. \AgdaKeyword{import}\AgdaSpace{}%
  35. \AgdaModule{Agda.Builtin.String}\<%
  36. \\
  37. %
  38. \\[\AgdaEmptyExtraSkip]%
  39. \>[0]\AgdaComment{--\ A\ comment\ with\ some\ TeX\ ligatures:}\<%
  40. \\
  41. \>[0]\AgdaComment{--\ --,\ ---,\ ?`,\ !`,\ `,\ ``,\ ',\ '',\ <<,\ >>.}\<%
  42. \\
  43. %
  44. \\[\AgdaEmptyExtraSkip]%
  45. \>[0]\AgdaFunction{Θ₁}\AgdaSpace{}%
  46. \AgdaSymbol{:}\AgdaSpace{}%
  47. \AgdaPrimitive{Set}\AgdaSpace{}%
  48. \AgdaSymbol{→}\AgdaSpace{}%
  49. \AgdaPrimitive{Set}\<%
  50. \\
  51. \>[0]\AgdaFunction{Θ₁}\AgdaSpace{}%
  52. \AgdaSymbol{=}\AgdaSpace{}%
  53. \AgdaSymbol{λ}\AgdaSpace{}%
  54. \AgdaBound{A}\AgdaSpace{}%
  55. \AgdaSymbol{→}\AgdaSpace{}%
  56. \AgdaBound{A}\<%
  57. \\
  58. %
  59. \\[\AgdaEmptyExtraSkip]%
  60. \>[0]\AgdaFunction{a-name-with--hyphens}\AgdaSpace{}%
  61. \AgdaSymbol{:}\AgdaSpace{}%
  62. \AgdaSymbol{∀}\AgdaSpace{}%
  63. \AgdaSymbol{\{}\AgdaBound{A}\AgdaSpace{}%
  64. \AgdaSymbol{:}\AgdaSpace{}%
  65. \AgdaPrimitive{Set}\AgdaSymbol{\}}\AgdaSpace{}%
  66. \AgdaSymbol{→}\AgdaSpace{}%
  67. \AgdaBound{A}\AgdaSpace{}%
  68. \AgdaSymbol{→}\AgdaSpace{}%
  69. \AgdaBound{A}\<%
  70. \\
  71. \>[0]\AgdaFunction{a-name-with--hyphens}\AgdaSpace{}%
  72. \AgdaBound{ff--fl}\AgdaSpace{}%
  73. \AgdaSymbol{=}\AgdaSpace{}%
  74. \AgdaBound{ff--fl}\<%
  75. \\
  76. %
  77. \\[\AgdaEmptyExtraSkip]%
  78. \>[0]\AgdaFunction{ffi}\AgdaSpace{}%
  79. \AgdaSymbol{:}\AgdaSpace{}%
  80. \AgdaPostulate{String}\<%
  81. \\
  82. \>[0]\AgdaFunction{ffi}\AgdaSpace{}%
  83. \AgdaSymbol{=}\AgdaSpace{}%
  84. \AgdaString{"--"}\<%
  85. \end{code}
  86. Note that the code is indented.
  87. \end{document}