aboutsummaryrefslogtreecommitdiff
path: root/bige/test.tex
diff options
context:
space:
mode:
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