aboutsummaryrefslogtreecommitdiff
path: root/poster/format.tex
blob: c43ac562e353fa1deb0904f2186bd555d8b4f484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
\input color

\fboxsep=0pt %color.tex is stupid

\input palette

\pagecolor{page} %
\color{text} %text color

\long\def\colo#1{\colorbox{colo}{\vbox to 31.5in{#1\vfil}}}

\pdfpageheight=36in
\pdfpagewidth=48in
\newdimen\fullhsize\fullhsize=48in
\voffset=-1in\hoffset=-1in
\def\fullline{\hbox to \fullhsize}
\hsize=11in
\vsize=36in
\nopagenumbers

%gives ''\newfont myfont=cmr10@14pt''
\newcount\thespacing
\newdimen\size
\def\spacing{
  \afterassignment\adjs \thespacing}
\def\adjs{%adjust spacing
  \baselineskip=\size \multiply\baselineskip by \thespacing \divide\baselineskip by 100
}
\def\newfont#1=#2@#3pt{%name, base, size
  \expandafter\font\csname x#1\endcsname=#2 at #3pt
  \expandafter\edef\csname #1\endcsname{\size=#3pt \adjs \csname x#1\endcsname}
}

% font definitions
\spacing=120
\newfont title=cmss10@72pt
\newfont subtitle=cmss10@48pt
\newfont text=cmr10@18pt\text
\newfont bold=cmb10@18pt
\newfont ital=cmmi10@18pt
\newfont head=cmb10@24pt

\parindent=.5in

% sectioning
\def\section#1{%
  \noindent\colorbox{section}{%
    \vbox{%
      \vskip5pt%
      \centerline{\head\color{sectiontext}#1}
      \vskip10pt%
    }%
  }%
  \bigbreak
}

\def\include #1;#2 {
  \section{#1}
  {\leftskip=12pt\rightskip=\leftskip\input #2\par}
  \bigbreak
}

%% pictures
\newcount\pics
\def\pic#1#2{\pdfximage width #1{#2}\pdfrefximage\pdflastximage}
\def\caption#1{\def\a{#1}\ifx\a\empty\else\global\advance\pics by 1\line{\vbox{\baselineskip=18pt\smallskip\leftskip=0pt plus 1fill\rightskip=0pt plus 1fill\parindent=0pt\relax Fig \number\pics: #1\bigskip}}\fi}
\def\picture#1#2#3{\vbox{\pic{#3}{#1}\hsize=#3\caption{#2}}}

%% the godly `pre`

\def\pre#1{\par\leavevmode\llap{\hbox to \parindent{\hfil #1 \hfil}}}

%% gives image files infinite stretch

\def\image #1 {\vfil\input #1\vfil}