12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- \documentclass{article}
- \usepackage{agda}
- % Make sure that cluster counting is activated.
- \begin{code}[hide]%
- %
- \>[2]\AgdaSymbol{\{-\#}\AgdaSpace{}%
- \AgdaKeyword{OPTIONS}\AgdaSpace{}%
- \AgdaPragma{--count-clusters}\AgdaSpace{}%
- \AgdaSymbol{\#-\}}\<%
- \end{code}
- \begin{document}
- \AgdaPostulate{A} and \AgdaPostulate{B} should be aligned:
- \begin{code}%
- %
- \>[2]\AgdaKeyword{postulate}\<%
- \\
- \>[2][@{}l@{\AgdaIndent{0}}]%
- \>[4]\AgdaPostulate{+̲+̲+̲+̲+̲+̲}%
- \>[12]\AgdaPostulate{A}\<%
- \\
- %
- \>[12]\AgdaPostulate{B}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\<%
- \end{code}
- The two \AgdaKeyword{field} keywords should not be aligned:
- \begin{code}%
- %
- \>[2]\AgdaKeyword{record}\AgdaSpace{}%
- \AgdaRecord{+̲}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set₁}\AgdaSpace{}%
- \AgdaKeyword{where}%
- \>[25]\AgdaKeyword{field}\AgdaSpace{}%
- \AgdaField{C}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\<%
- \\
- \>[25][@{}l@{\AgdaIndent{0}}]%
- \>[26]\AgdaKeyword{field}\AgdaSpace{}%
- \AgdaField{D}\AgdaSpace{}%
- \AgdaSymbol{:}\AgdaSpace{}%
- \AgdaPrimitive{Set}\<%
- \end{code}
- \end{document}
|