From e1c4003d893514fcca9ab0a3e1b8f02bce9e05c1 Mon Sep 17 00:00:00 2001
From: Holden Rohrer <hr@hrhr.dev>
Date: Sun, 12 Jan 2020 00:48:11 -0500
Subject: format.tex allows optional captions for pictures

---
 format.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'format.tex')

diff --git a/format.tex b/format.tex
index 1b3a3b4..ea270e3 100644
--- a/format.tex
+++ b/format.tex
@@ -44,5 +44,5 @@ Kuhn
 
 %% Pictures
 \newcount\pics \pics=0
-\def\picture#1#2{{\advance\pics by 1\vbox{\centerline{\pdfximage width 6in{#1}\pdfrefximage\pdflastximage}\centerline{\vbox{\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #2}}}}}
-\def\twopicture#1#2#3{{\advance\pics by 1\line{\vbox{\centerline{\pdfximage width 4in{#1}\pdfrefximage\pdflastximage\pdfximage width 4in{#2}\pdfrefximage\pdflastximage}\centerline{\vbox{\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #3}}}}}}
+\def\picture#1#2{{\advance\pics by 1\vbox{\centerline{\pdfximage width 6in{#1}\pdfrefximage\pdflastximage}\centerline{\def\a{#3}\ifx\a\empty\else\vbox{\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #2}\fi}}}}
+\def\twopicture#1#2#3{{\advance\pics by 1\line{\vbox{\centerline{\pdfximage width 4in{#1}\pdfrefximage\pdflastximage\pdfximage width 4in{#2}\pdfrefximage\pdflastximage}\centerline{\def\a{#3}\ifx\a\empty\else\vbox{\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #3}\fi}}}}}
-- 
cgit 

