Browsing index pages (4 articles)
↧
Rectangular table with consecutive integers using foreach
I'd like to have a rectangular table with integers (like a lottery ticket), let's say 4x9, numbers from 1 to 36.I assumed that it is easy with tikz, two foreach loops. Like this:\foreach \i in...
View ArticleAnswer by Péter Juhász for Rectangular table with consecutive integers using...
\pgfmathprintnumber solves the problem.I really don't know why this is so complicated.
View ArticleAnswer by Mico for Rectangular table with consecutive integers using foreach
Here's a LuaLaTeX-based solution. It employs two for loops.\documentclass{article}\usepackage{array} % for \extrarowheight length parameter and 'w' column type\usepackage{luacode} % for \luaexec...
View ArticleAnswer by Ignasi for Rectangular table with consecutive integers using foreach
\documentclass[tikz, border=2mm]{standalone}\begin{document}\begin{tikzpicture}\foreach \i in {0,1,2,...,8}{ \foreach \j [evaluate=\j as \num using int(9*(4-\j)+\i+1)] in {1,2,3,4} \node[fill=blue!15,...
View Article
Browsing index pages (4 articles)