1%----------------------------------------------------------------------------
2% Magic Tcl tutorial number 5
3%----------------------------------------------------------------------------
4
5\NeedsTeXFormat{LaTeX2e}[1994/12/01]
6\documentclass[letterpaper,twoside,12pt]{article}
7\usepackage{epsfig,times}
8
9\setlength{\textwidth}{8.5in}
10\addtolength{\textwidth}{-2.0in}
11\setlength{\textheight}{11.0in}
12\addtolength{\textheight}{-2.0in}
13\setlength{\oddsidemargin}{0in}
14\setlength{\evensidemargin}{0pt}
15\setlength{\topmargin}{-0.5in}
16\setlength{\headheight}{0.2in}
17\setlength{\headsep}{0.3in}
18\setlength{\topskip}{0pt}
19
20\def\hinch{\hspace*{0.5in}}
21\def\starti{\begin{center}\begin{tabbing}\hinch\=\hinch\=\hinch\=hinch\hinch\=\kill}
22\def\endi{\end{tabbing}\end{center}}
23\def\ig{\>}
24\def\ih{\>\>}
25\def\ii{\>\>\>}
26\def\mytitle{Magic Tcl Tutorial \#5: Writing Tcl Scripts for Magic}
27
28%----------------------------------------------------------------------------
29
30\begin{document}
31
32\makeatletter
33\newcommand{\ps@magic}{%
34	\renewcommand{\@oddhead}{\mytitle\hfil\today}%
35	\renewcommand{\@evenhead}{\today\hfil\mytitle}%
36	\renewcommand{\@evenfoot}{\hfil\textrm{--{\thepage}--}\hfil}%
37	\renewcommand{\@oddfoot}{\@evenfoot}}
38\newcommand{\ps@mplain}{%
39	\renewcommand{\@oddhead}{}%
40	\renewcommand{\@evenhead}{}%
41	\renewcommand{\@evenfoot}{\hfil\textrm{--{\thepage}--}\hfil}%
42	\renewcommand{\@oddfoot}{\@evenfoot}}
43\makeatother
44\pagestyle{magic}
45\thispagestyle{mplain}
46
47
48\begin{center}
49  {\bfseries \Large \mytitle} \\
50  \vspace*{0.5in}
51  {\itshape R. Timothy Edwards} \\
52  \vspace*{0.5in}
53   Space Department \\
54   Johns Hopkins University \\
55   Applied Physics Laboratory \\
56   Laurel, MD  20723 \\
57  \vspace*{0.25in}
58  This tutorial corresponds to Tcl-based Magic version 7.2 \\
59\end{center}
60\vspace*{0.5in}
61
62\section{Scripting in Magic}
63
64\end{document}
65