% TikZ syntax demonstration: three boxes generated by one loop. % This example explores later syntax coverage, outside the initial explicit subset. \documentclass{article} \usepackage[paperwidth=7cm,paperheight=3cm,margin=0.5cm]{geometry} % TinyTeX latex uses pdfTeX in DVI mode. Select the PGF driver for dvipdfmx. % PDF-mode compilation retains the normal automatically selected PDF driver. \ifdefined\pdfoutput \ifnum\pdfoutput=0 \def\pgfsysdriver{pgfsys-dvipdfmx.def} \fi \fi \usepackage{tikz} \pagestyle{empty} \setlength{\parindent}{0pt} \begin{document} \begin{tikzpicture} \foreach \x in {0,2,4} { \draw (\x,0) rectangle ++(1,1); } \end{tikzpicture} \end{document}