User:Garulfoo
Jump to navigation
Jump to search
Contents
- 1 January 2025 Wiki before / after
- 1.1 quadrant organization for each of the 12 topics, with dedicated library of manuals
- 1.2 Lighter red and sans font
- 1.3 shadow to better distinguish ConTeXt rendering
- 1.4 improved quality of pdf to png image conversion
- 1.5 source=sidebyside available for context tag and corner radius for code
- 1.6 img visibles in mobile view + css improvement update
- 2 Just to reproduce https://github.com/typst/typst?tab=readme-ov-file#example
January 2025 Wiki before / after
quadrant organization for each of the 12 topics, with dedicated library of manuals
Lighter red and sans font
shadow to better distinguish ConTeXt rendering
improved quality of pdf to png image conversion
source=sidebyside available for context tag and corner radius for code
img visibles in mobile view + css improvement update
Just to reproduce https://github.com/typst/typst?tab=readme-ov-file#example
\setupTABLE[r][each][align=center, width=8mm] \setuplabeltext [section={{},{.}}] \setuphead [section] [style=\bfb] \setupbodyfont [pagella, 10pt] \setupwhitespace[big] \startframed[frame=off, align=normal, width=10cm] \startsection[title=Fibonacci sequence] The Fibonacci sequence is defined through the recurrence relation $F_n =F_{n-1} + F_{n-2}$. It can also be expressed in \emph{closed form}: \startformula F_n = \left⌊ \frac{1}{\sqrt{5}} \phi^n \right⌉, \quad \phi = \frac{1+ \sqrt{5}}{2} \stopformula \startluacode u = userdata u.fibcount = 8 function u.fib(n) if n < 3 then return 1 else return u.fib(n-1) + u.fib(n-2) end end function u.map(string) context.bTR() for j = 1, u.fibcount do context("\\bTD" .. string .. "\\eTD" ,j) end context.eTR() end \stopluacode The first \ctxlua{context(u.fibcount)} numbers of the sequence are:\\ \startalignment[center] \bTABLE \startluacode u.map("$ F_{%s} $", function(item) return item end) u.map("$ %s $", function(item) return u.fib(item) end) \stopluacode \eTABLE \stopalignment \stopframed
\setuppapersize[A7, landscape] \setupTABLE[r][each][align=center, width=8mm] \setuplabeltext [section={{},{.}}] \setuphead [section] [style=\bfb] \setupbodyfont [pagella, 10pt] \setupwhitespace[big] \setuplayout[ header=0pt, footer=0pt, topspace=8mm, backspace=10mm, height=fit, width=fit] \starttext \startsection[title=Fibonacci sequence] The Fibonacci sequence is defined through the recurrence relation $F_n =F_{n-1} + F_{n-2}$. It can also be expressed in \emph{closed form}: \startformula F_n = \left⌊ \frac{1}{\sqrt{5}} \phi^n \right⌉, \quad \phi = \frac{1+ \sqrt{5}}{2} \stopformula \startluacode u = userdata u.fibcount = 8 function u.fib(n) if n < 3 then return 1 else return u.fib(n-1) + u.fib(n-2) end end function u.map(string) context.bTR() for j = 1, u.fibcount do context("\\bTD" .. string .. "\\eTD" ,j) end context.eTR() end \stopluacode The first \ctxlua{context(u.fibcount)} numbers of the sequence are:\\ \startalignment[center] \bTABLE \startluacode u.map("$ F_{%s} $", function(item) return item end) u.map("$ %s $", function(item) return u.fib(item) end) \stopluacode \eTABLE \stopalignment \stopsection \stoptext