aboutsummaryrefslogtreecommitdiff
path: root/fmt/com.h
diff options
context:
space:
mode:
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}