diff options
Diffstat (limited to 'fmt/com.h')
-rw-r--r-- | fmt/com.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fmt/com.h b/fmt/com.h new file mode 100644 index 0000000..0363798 --- /dev/null +++ b/fmt/com.h @@ -0,0 +1,25 @@ +%% links + +\def\link#1{% + \penalty-500% + \pdfstartlink + user{/Subtype /Link + /Border [ 0 0 0 ] + /A << + /Type /Action + /S /URI + /URI (#1) + >>}% + {\tt \color{blue} #1}% + \pdfendlink +} + +%% the godly `pre` + +\def\pre#1{\par\leavevmode\llap{\hbox to \parindent{\hfil #1 \hfil}}} + +%% gives image files surrounding stretch +\newskip\imgskipamount +\def\imgskip{\vskip\imgskipamount} +\imgskipamount=0pt plus 48pt +\def\image #1 {\imgskip\input #1\imgskip} |