aboutsummaryrefslogtreecommitdiff
path: root/bige/test.tex
diff options
context:
space:
mode:
authorHolden Rohrer <hdawg7797@yahoo.com>2019-06-20 22:53:38 -0400
committerHolden Rohrer <hdawg7797@yahoo.com>2019-06-20 22:53:38 -0400
commit75421bde5d5c5f3cd52fbb52c0624c8954970b56 (patch)
treeb02b41c2dd758dbaf7c00de81996a0faa758c6bf /bige/test.tex
parentbdbc8e35cc7a7b21d0093cc100c5cedbafbeb05a (diff)
i've done a lot of work
Diffstat (limited to 'bige/test.tex')
-rw-r--r--bige/test.tex24
1 files changed, 16 insertions, 8 deletions
diff --git a/bige/test.tex b/bige/test.tex
index ebae558..7b7efe7 100644
--- a/bige/test.tex
+++ b/bige/test.tex
@@ -1,10 +1,18 @@
-\def\maketable#1{
- \halign{## & ## \cr
- \gdef\endlinex{\cr \noalign{\hrule}}
- line1 & column2 \endlinex
- continuing & test \endlinex
- #1
- }
+\count1=4 \countdef\columns=1
+\def\subpre{
+ & ##
+ \advance\columns by -1 \ifnum\columns>0 \span\subpre \fi
+}
+\def\preamb{
+ ##
+ \advance \columns by -1
+ \the\columns
+ \ifnum\columns>0 \span\subpre \fi
+ \cr
+}
+\halign{\span\preamb
+ first line \cr
+ second line \cr
+ third line \cr
}
-\maketable{this line & inserted column\endlinex}
\bye