aboutsummaryrefslogtreecommitdiff
path: root/format.tex
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-12 00:48:11 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-13 12:45:31 -0500
commite1c4003d893514fcca9ab0a3e1b8f02bce9e05c1 (patch)
tree1515604a5758bc094491175ace16036eec1cf237 /format.tex
parentc97bdb5a5369557477984b1ac321465697dfdf7d (diff)
format.tex allows optional captions for pictures
Diffstat (limited to 'format.tex')
-rw-r--r--format.tex4
1 files changed, 2 insertions, 2 deletions
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}}}}}