Issue3322.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE HTML>
  2. <html><head><meta charset="utf-8"><title>Issue3322</title><link rel="stylesheet" href="Agda.css"></head><body><pre class="Agda"><a id="1" class="Background">% Nisse, 2018-10-26
  3. % Testing that record field are already highlighted by scope checker.
  4. \documentclass{article}
  5. \usepackage{agda}
  6. % This redefinition of AgdaField,
  7. % in combination with the math-only command \bot,
  8. % will fail the LaTeX build if no highlighting
  9. % of fields has been performed.
  10. \renewcommand{\AgdaField}[1]{\ensuremath{#1}}
  11. \usepackage{amsmath}
  12. \usepackage{newunicodechar}
  13. \newunicodechar{₁}{\ensuremath{{}_{\text{1}}}}
  14. \newunicodechar{₂}{\ensuremath{{}_{\text{2}}}}
  15. \newunicodechar{⊥}{\bot}
  16. \pagestyle{empty}
  17. \begin{document}
  18. </a><a id="553" class="Markup">\begin{code}</a>
  19. <a id="566" class="Keyword">record</a> <a id="R"></a><a id="573" href="Issue3322.html#573" class="Record">R</a> <a id="575" class="Symbol">:</a> <a id="577" href="Agda.Primitive.html#311" class="Primitive">Set₂</a> <a id="582" class="Keyword">where</a>
  20. <a id="590" class="Keyword">field</a>
  21. <a id="R.⊥"></a><a id="600" href="Issue3322.html#600" class="Field">⊥</a> <a id="602" class="Symbol">:</a> <a id="604" href="Agda.Primitive.html#311" class="Primitive">Set₁</a>
  22. <a id="r"></a><a id="610" href="Issue3322.html#610" class="Function">r</a> <a id="612" class="Symbol">:</a> <a id="614" href="Issue3322.html#573" class="Record">R</a>
  23. <a id="617" href="Issue3322.html#610" class="Function">r</a> <a id="619" class="Symbol">=</a> <a id="621" class="Keyword">record</a> <a id="628" class="Symbol">{</a> <a id="630" href="Issue3322.html#600" class="Field">⊥</a> <a id="632" class="Symbol">=</a> <a id="634" href="Agda.Primitive.html#311" class="Primitive">Set</a> <a id="638" class="Symbol">}</a>
  24. <a id="640" class="Markup">\end{code}</a><a id="650" class="Background">
  25. \end{document}
  26. </a></pre></body></html>