aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-11 23:33:28 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-11 23:33:28 -0500
commit72d77712a91bb626c4927525215510ea0a122ff6 (patch)
treef7d300f44bc3bd2558a16336ab393b8591727adb
parent76fed7e008b230af2414292eaea78d15f543ab03 (diff)
added picture and twopicture support to format
-rw-r--r--format.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/format.tex b/format.tex
index 90a578b..1e3f41d 100644
--- a/format.tex
+++ b/format.tex
@@ -41,3 +41,8 @@ Kuhn
%% Bullet Points and Numbering
\def\pre#1{\par\leavevmode\llap{\hbox to \parindent{\hfil #1 \hfil}}}
+
+%% Pictures
+\newcount\pics \pics=0
+\def\picture#1#2{{\advance\pics by 1\vbox{\centerline{\pdfximage width 4in{#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}}}}}}