texmf-dist/doc/lualatex/luahyperbolic/examples/export_capabilities.tex
raw| 1 | \documentclass[margin=.2cm,multi,tikz]{standalone} |
| 2 | \usepackage{luacode} |
| 3 | \usepackage{../luahyperbolic} |
| 4 | \begin{document} |
| 5 | \begin{luacode*} |
| 6 | local N=5 |
| 7 | local DEPTH=20 |
| 8 | for k=2,N do |
| 9 | for l=k, N do |
| 10 | if 1/k+1/l <1 then |
| 11 | hyper.tikzBegin("scale=5") |
| 12 | hyper.fillTilingFromAngles(math.pi/k,math.pi/l,0,DEPTH) |
| 13 | hyper.tikzEnd(string.format("tiling-triangle-%d-%d-inf.tikz",k,l)) |
| 14 | end |
| 15 | end |
| 16 | end |
| 17 | \end{luacode*} |
| 18 | \end{document} |