Grapheme-clusters.quick.tex 900 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \begin{document}
  4. \AgdaPostulate{A} and \AgdaPostulate{B} should be aligned:
  5. \begin{code}%
  6. %
  7. \>[2]\AgdaKeyword{postulate}\<%
  8. \\
  9. \>[2][@{}l@{\AgdaIndent{0}}]%
  10. \>[4]\AgdaPostulate{+̲+̲+̲+̲+̲+̲}%
  11. \>[12]\AgdaPostulate{A}\<%
  12. \\
  13. %
  14. \>[12]\AgdaPostulate{B}\AgdaSpace{}%
  15. \AgdaSymbol{:}\AgdaSpace{}%
  16. \AgdaPrimitive{Set}\<%
  17. \end{code}
  18. The two \AgdaKeyword{field} keywords should not be aligned:
  19. \begin{code}%
  20. %
  21. \>[2]\AgdaKeyword{record}\AgdaSpace{}%
  22. \AgdaRecord{+̲}\AgdaSpace{}%
  23. \AgdaSymbol{:}\AgdaSpace{}%
  24. \AgdaPrimitive{Set₁}\AgdaSpace{}%
  25. \AgdaKeyword{where}%
  26. \>[25]\AgdaKeyword{field}\AgdaSpace{}%
  27. \AgdaField{C}\AgdaSpace{}%
  28. \AgdaSymbol{:}\AgdaSpace{}%
  29. \AgdaPrimitive{Set}\<%
  30. \\
  31. \>[25][@{}l@{\AgdaIndent{0}}]%
  32. \>[26]\AgdaKeyword{field}\AgdaSpace{}%
  33. \AgdaField{D}\AgdaSpace{}%
  34. \AgdaSymbol{:}\AgdaSpace{}%
  35. \AgdaPrimitive{Set}\<%
  36. \end{code}
  37. \end{document}