aboutsummaryrefslogtreecommitdiff
path: root/fmt/com.h
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-05 22:39:41 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-06 18:42:06 -0400
commita397704baca9c18aed7575006703e9880b9e27e0 (patch)
treee9fa1068628978d92058cdb793cb6d44ecd0f747 /fmt/com.h
parent7fb897a5dce7c3c3af4b432366967132e7c5a06c (diff)
cleanup, extension, and table improvements
Diffstat (limited to 'fmt/com.h')
-rw-r--r--fmt/com.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fmt/com.h b/fmt/com.h
index adcbcf8..e8388ae 100644
--- a/fmt/com.h
+++ b/fmt/com.h
@@ -22,3 +22,8 @@
\def\imgskip{\vskip\imgskipamount}
\imgskipamount=0pt plus 48pt
\def\image #1 {\imgskip\input #1\imgskip}
+
+\newcount\pics
+\def\caption#1{\def\a{#1}\ifx\a\empty\else\global\advance\pics by
+1\smallskip\line{\vbox{\leftskip=0pt plus 1fill\rightskip=0pt plus
+1fill\parindent=0pt\relax Fig \number\pics: #1}}\smallskip\fi}