Less-extra-indentation.lagda.tex 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. _ : Set₁
  11. _ = Set
  12. \end{code}
  13. \noindent No extra indentation (alignment):
  14. \begin{code}[hide]
  15. _ : Set₁
  16. _ =
  17. \end{code}
  18. \begin{code}
  19. Set
  20. \end{code}
  21. \noindent No extra indentation (indentation):
  22. \begin{code}[hide]
  23. _ : Set₁
  24. _ =
  25. \end{code}
  26. \begin{code}
  27. Set
  28. \end{code}
  29. \noindent No extra indentation (alignment):
  30. \begin{code}[hide]
  31. postulate
  32. _ :
  33. \end{code}
  34. \begin{code}
  35. Set
  36. \end{code}
  37. \noindent No extra indentation (indentation):
  38. \begin{code}[hide]
  39. postulate
  40. _ :
  41. \end{code}
  42. \begin{code}
  43. Set
  44. \end{code}
  45. \noindent No extra indentation (alignment, \texttt{AgdaMultiCode}):
  46. \begin{AgdaMultiCode}
  47. \begin{code}[hide]
  48. _ : Set₁
  49. _ =
  50. \end{code}
  51. \begin{code}
  52. Set
  53. \end{code}
  54. \begin{code}[hide]
  55. _ : Set₁
  56. _ =
  57. \end{code}
  58. \begin{code}
  59. Set
  60. \end{code}
  61. \end{AgdaMultiCode}
  62. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  63. \begin{AgdaMultiCode}
  64. \begin{code}[hide]
  65. _ : Set₁
  66. _ =
  67. \end{code}
  68. \begin{code}
  69. Set
  70. \end{code}
  71. \begin{code}[hide]
  72. _ : Set₁
  73. _ =
  74. \end{code}
  75. \begin{code}
  76. Set
  77. \end{code}
  78. \end{AgdaMultiCode}
  79. \noindent No extra indentation (alignment, \texttt{AgdaMultiCode}):
  80. \begin{AgdaMultiCode}
  81. \begin{code}[hide]
  82. postulate
  83. _ :
  84. \end{code}
  85. \begin{code}
  86. Set
  87. \end{code}
  88. \begin{code}[hide]
  89. postulate
  90. _ :
  91. \end{code}
  92. \begin{code}
  93. Set
  94. \end{code}
  95. \end{AgdaMultiCode}
  96. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  97. \begin{AgdaMultiCode}
  98. \begin{code}[hide]
  99. postulate
  100. _ :
  101. \end{code}
  102. \begin{code}
  103. Set
  104. \end{code}
  105. \begin{code}[hide]
  106. postulate
  107. _ :
  108. \end{code}
  109. \begin{code}
  110. Set
  111. \end{code}
  112. \end{AgdaMultiCode}
  113. \noindent Extra indentation (indentation, \texttt{AgdaMultiCode}):
  114. \begin{AgdaMultiCode}
  115. \begin{code}[hide]
  116. postulate
  117. Aaa :
  118. \end{code}
  119. \begin{code}
  120. Set
  121. \end{code}
  122. \begin{code}[hide]
  123. postulate
  124. Bbb :
  125. \end{code}
  126. \begin{code}
  127. Set
  128. \end{code}
  129. \end{AgdaMultiCode}
  130. \end{document}