diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-12 00:48:11 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-13 12:45:31 -0500 |
commit | e1c4003d893514fcca9ab0a3e1b8f02bce9e05c1 (patch) | |
tree | 1515604a5758bc094491175ace16036eec1cf237 /format.tex | |
parent | c97bdb5a5369557477984b1ac321465697dfdf7d (diff) |
format.tex allows optional captions for pictures
Diffstat (limited to 'format.tex')
-rw-r--r-- | format.tex | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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}}}}} |