From 72d77712a91bb626c4927525215510ea0a122ff6 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sat, 11 Jan 2020 23:33:28 -0500 Subject: added picture and twopicture support to format --- format.tex | 5 +++++ 1 file changed, 5 insertions(+) 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}}}}}} -- cgit