Issue3322.lagda 680 B

123456789101112131415161718192021222324252627282930313233343536
  1. % Nisse, 2018-10-26
  2. % Testing that record field are already highlighted by scope checker.
  3. \documentclass{article}
  4. \usepackage{agda}
  5. % This redefinition of AgdaField,
  6. % in combination with the math-only command \bot,
  7. % will fail the LaTeX build if no highlighting
  8. % of fields has been performed.
  9. \renewcommand{\AgdaField}[1]{\ensuremath{#1}}
  10. \usepackage{amsmath}
  11. \usepackage{newunicodechar}
  12. \newunicodechar{₁}{\ensuremath{{}_{\text{1}}}}
  13. \newunicodechar{₂}{\ensuremath{{}_{\text{2}}}}
  14. \newunicodechar{⊥}{\bot}
  15. \pagestyle{empty}
  16. \begin{document}
  17. \begin{code}
  18. record R : Set₂ where
  19. field
  20. ⊥ : Set₁
  21. r : R
  22. r = record { ⊥ = Set }
  23. \end{code}
  24. \end{document}