Less-extra-indentation.tex 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. \documentclass{article}
  2. \usepackage{agda}
  3. \usepackage{amsmath}
  4. \usepackage{newunicodechar}
  5. \newunicodechar{₁}{\ensuremath{{}_{\text{1}}}}
  6. \pagestyle{empty}
  7. \begin{document}
  8. \noindent Control:
  9. \begin{code}%
  10. %
  11. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  12. \AgdaSymbol{:}\AgdaSpace{}%
  13. \AgdaPrimitive{Set₁}\<%
  14. \\
  15. %
  16. \>[2]\AgdaSymbol{\AgdaUnderscore{}}\AgdaSpace{}%
  17. \AgdaSymbol{=}\AgdaSpace{}%
  18. \AgdaPrimitive{Set}\<%
  19. \end{code}
  20. \noindent No extra indentation (alignment):
  21. \begin{code}[hide]%
  22. %
  23. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  24. \AgdaSymbol{:}\AgdaSpace{}%
  25. \AgdaPrimitive{Set₁}\<%
  26. \\
  27. %
  28. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  29. \>[6I]\AgdaSymbol{=}\<%
  30. \end{code}
  31. \begin{code}%
  32. \>[.][@{}l@{}]\<[6I]%
  33. \>[4]\AgdaPrimitive{Set}\<%
  34. \end{code}
  35. \noindent No extra indentation (indentation):
  36. \begin{code}[hide]%
  37. %
  38. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  39. \AgdaSymbol{:}\AgdaSpace{}%
  40. \AgdaPrimitive{Set₁}\<%
  41. \\
  42. %
  43. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  44. \>[9I]\AgdaSymbol{=}\<%
  45. \end{code}
  46. \begin{code}%
  47. \>[9I][@{}l@{\AgdaIndent{1}}]%
  48. \>[5]\AgdaPrimitive{Set}\<%
  49. \end{code}
  50. \noindent No extra indentation (alignment):
  51. \begin{code}[hide]%
  52. %
  53. \>[2]\AgdaKeyword{postulate}\<%
  54. \\
  55. \>[2][@{}l@{\AgdaIndent{0}}]%
  56. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  57. \>[10I]\AgdaSymbol{:}\<%
  58. \end{code}
  59. \begin{code}%
  60. \>[.][@{}l@{}]\<[10I]%
  61. \>[6]\AgdaPrimitive{Set}\<%
  62. \end{code}
  63. \noindent No extra indentation (indentation):
  64. \begin{code}[hide]%
  65. %
  66. \>[2]\AgdaKeyword{postulate}\<%
  67. \\
  68. \>[2][@{}l@{\AgdaIndent{0}}]%
  69. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  70. \>[11I]\AgdaSymbol{:}\<%
  71. \end{code}
  72. \begin{code}%
  73. \>[11I][@{}l@{\AgdaIndent{1}}]%
  74. \>[7]\AgdaPrimitive{Set}\<%
  75. \end{code}
  76. \noindent No extra indentation (alignment, \texttt{AgdaMultiCode}):
  77. \begin{AgdaMultiCode}
  78. \begin{code}[hide]%
  79. %
  80. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  81. \AgdaSymbol{:}\AgdaSpace{}%
  82. \AgdaPrimitive{Set₁}\<%
  83. \\
  84. %
  85. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  86. \>[14I]\AgdaSymbol{=}\<%
  87. \end{code}
  88. \begin{code}%
  89. \>[.][@{}l@{}]\<[14I]%
  90. \>[4]\AgdaPrimitive{Set}\<%
  91. \end{code}
  92. \begin{code}[hide]%
  93. %
  94. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  95. \AgdaSymbol{:}\AgdaSpace{}%
  96. \AgdaPrimitive{Set₁}\<%
  97. \\
  98. %
  99. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  100. \>[17I]\AgdaSymbol{=}\<%
  101. \end{code}
  102. \begin{code}%
  103. \>[.][@{}l@{}]\<[17I]%
  104. \>[4]\AgdaPrimitive{Set}\<%
  105. \end{code}
  106. \end{AgdaMultiCode}
  107. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  108. \begin{AgdaMultiCode}
  109. \begin{code}[hide]%
  110. %
  111. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  112. \AgdaSymbol{:}\AgdaSpace{}%
  113. \AgdaPrimitive{Set₁}\<%
  114. \\
  115. %
  116. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  117. \>[20I]\AgdaSymbol{=}\<%
  118. \end{code}
  119. \begin{code}%
  120. \>[20I][@{}l@{\AgdaIndent{1}}]%
  121. \>[5]\AgdaPrimitive{Set}\<%
  122. \end{code}
  123. \begin{code}[hide]%
  124. %
  125. \>[2]\AgdaFunction{\AgdaUnderscore{}}\AgdaSpace{}%
  126. \AgdaSymbol{:}\AgdaSpace{}%
  127. \AgdaPrimitive{Set₁}\<%
  128. \\
  129. %
  130. \>[2]\AgdaSymbol{\AgdaUnderscore{}}%
  131. \>[23I]\AgdaSymbol{=}\<%
  132. \end{code}
  133. \begin{code}%
  134. \>[23I][@{}l@{\AgdaIndent{1}}]%
  135. \>[5]\AgdaPrimitive{Set}\<%
  136. \end{code}
  137. \end{AgdaMultiCode}
  138. \noindent No extra indentation (alignment, \texttt{AgdaMultiCode}):
  139. \begin{AgdaMultiCode}
  140. \begin{code}[hide]%
  141. %
  142. \>[2]\AgdaKeyword{postulate}\<%
  143. \\
  144. \>[2][@{}l@{\AgdaIndent{0}}]%
  145. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  146. \>[24I]\AgdaSymbol{:}\<%
  147. \end{code}
  148. \begin{code}%
  149. \>[.][@{}l@{}]\<[24I]%
  150. \>[6]\AgdaPrimitive{Set}\<%
  151. \end{code}
  152. \begin{code}[hide]%
  153. %
  154. \>[2]\AgdaKeyword{postulate}\<%
  155. \\
  156. \>[2][@{}l@{\AgdaIndent{0}}]%
  157. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  158. \>[25I]\AgdaSymbol{:}\<%
  159. \end{code}
  160. \begin{code}%
  161. \>[.][@{}l@{}]\<[25I]%
  162. \>[6]\AgdaPrimitive{Set}\<%
  163. \end{code}
  164. \end{AgdaMultiCode}
  165. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  166. \begin{AgdaMultiCode}
  167. \begin{code}[hide]%
  168. %
  169. \>[2]\AgdaKeyword{postulate}\<%
  170. \\
  171. \>[2][@{}l@{\AgdaIndent{0}}]%
  172. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  173. \>[26I]\AgdaSymbol{:}\<%
  174. \end{code}
  175. \begin{code}%
  176. \>[26I][@{}l@{\AgdaIndent{1}}]%
  177. \>[7]\AgdaPrimitive{Set}\<%
  178. \end{code}
  179. \begin{code}[hide]%
  180. %
  181. \>[2]\AgdaKeyword{postulate}\<%
  182. \\
  183. \>[2][@{}l@{\AgdaIndent{0}}]%
  184. \>[4]\AgdaPostulate{\AgdaUnderscore{}}%
  185. \>[27I]\AgdaSymbol{:}\<%
  186. \end{code}
  187. \begin{code}%
  188. \>[27I][@{}l@{\AgdaIndent{1}}]%
  189. \>[7]\AgdaPrimitive{Set}\<%
  190. \end{code}
  191. \end{AgdaMultiCode}
  192. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  193. \begin{AgdaMultiCode}
  194. \begin{code}[hide]%
  195. %
  196. \>[2]\AgdaKeyword{postulate}\<%
  197. \\
  198. \>[2][@{}l@{\AgdaIndent{0}}]%
  199. \>[4]\AgdaPostulate{Aaa}\AgdaSpace{}%
  200. \AgdaSymbol{:}\<%
  201. \end{code}
  202. \begin{code}%
  203. \>[4][@{}l@{\AgdaIndent{1}}]%
  204. \>[6]\AgdaPrimitive{Set}\<%
  205. \end{code}
  206. \begin{code}[hide]%
  207. %
  208. \>[2]\AgdaKeyword{postulate}\<%
  209. \\
  210. \>[2][@{}l@{\AgdaIndent{0}}]%
  211. \>[4]\AgdaPostulate{Bbb}\AgdaSpace{}%
  212. \AgdaSymbol{:}\<%
  213. \end{code}
  214. \begin{code}%
  215. \>[4][@{}l@{\AgdaIndent{1}}]%
  216. \>[6]\AgdaPrimitive{Set}\<%
  217. \end{code}
  218. \end{AgdaMultiCode}
  219. \end{document}