summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-03-11 21:14:53 +0000
committerKarl Berry <karl@freefriends.org>2023-03-11 21:14:53 +0000
commit3c87631320d19f79abd7239fa752454978f37ce6 (patch)
treea1d11272a60372dd97c71ddc782c4b582299de82 /Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4
parentb07ff8c82713eb8f4a519d581381555700235e46 (diff)
circuit-macros (11mar23) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2022.final@66556 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4')
-rw-r--r--Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4 b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4
new file mode 100644
index 00000000000..c70fa8fc74d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Wheat.m4
@@ -0,0 +1,21 @@
+.PS
+# `Wheat.m4'
+gen_init
+
+boxwid = boxht
+
+[ for j = 0 to 7 do {
+ for i = 0 to 7 do {
+ x = 2^(j+8*i)
+ box fill_((i+j)%2) at (j*boxwid,-i*boxwid)
+ k = ((i+j)%2==0); setrgb(k,k,k)
+ if x < 10000 then { sprintf("\Large$%g$",x) at last box } \
+ else { y = int(log(x))
+ sprintf("{\Large$%g$}$\cdot 10^{%g}$",round_(x/(10^y)),y) at last box }
+ resetrgb
+ }
+ }
+ ]
+box wid 8*boxwid ht 8*boxwid at last []
+
+.PE