diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-11 23:33:28 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-11 23:33:28 -0500 |
commit | 72d77712a91bb626c4927525215510ea0a122ff6 (patch) | |
tree | f7d300f44bc3bd2558a16336ab393b8591727adb | |
parent | 76fed7e008b230af2414292eaea78d15f543ab03 (diff) |
added picture and twopicture support to format
-rw-r--r-- | format.tex | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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}}}}}} |