Quantcast
Channel: Rectangular table with consecutive integers using foreach - TeX - LaTeX Stack Exchange
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

Answer 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


Image may be NSFW.
Clik here to view.

Answer 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 Article


Answer 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 Article

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 Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>