Initial release of Maemo 5 port of gnuplot
[gnuplot] / tutorial / header.tex
1
2 % Header file for tutorial.tex
3 %
4
5 % Spacing
6 \newcommand{\singlespace}
7   {\addtolength{\baselineskip}{-.333\baselineskip}}
8 \newcommand{\doublespace}
9   {\addtolength{\baselineskip}{.5\baselineskip}}
10
11 % Spacing for the whole document 
12 \newcommand{\currentspace}{} % use this for single space
13 % \newcommand{\currentspace}{\doubleespace} % use this for double space
14
15 % Common abbreviations
16 % (Remember to put '\ ' after if an interword space is
17 %  desired rather than end-of-sentence space. Same for '.etc)' ).
18 \newcommand{\eg}{{\em e.g.}}            % e.g.
19 \newcommand{\ie}{{\em i.e.}}            % i.e.
20 \newcommand{\etc}{{\em etc.}}           % etc.
21 \newcommand{\vs}{{\em vs.}}             % vs.
22 \newcommand{\usec}{{$\mu$}sec}  % microseconds
23
24 % \boxfigure{pos}{wid}{text}:  A figure with a box around it
25 %
26 % pos   the usual figure placement arg: eg. htbp
27 % wid   the width of the figure, in some units: eg. 5in
28 % text  the contents of the figure, including picture/caption/label/etc
29 %
30 \newlength{\boxwidth}
31 \newcommand{\boxfigure}[3]{
32         \begin{figure}[#1]
33                 \setlength{\boxwidth}{#2}
34                 \addtolength{\boxwidth}{.1in}
35
36                 \centering
37                 \framebox[\boxwidth]{
38                         \begin{minipage}{#2}
39                         #3
40                         \end{minipage}
41                 }
42         \end{figure}  
43 }
44
45 % use \fullboxwidth for arg 2 of boxfigure to get box of size \textwidth
46
47 % To show a syntax for a gnutex command
48 \newenvironment{syntax}{\begin{quote}\tt}{\end{quote}}
49
50 \ifx\LaTeXe\undefined
51 % old LaTeX version
52 % add `,a4' to `toc_entry' to load settings for A4-paper
53 % see below if you add 11pt or 12pt
54 \documentstyle[titlepage,a4]{article}
55 \else
56 % LaTeX2e version
57 % add `[a4paper]' before `{article}' to load settings for A4-paper
58 % see below if you add 11pt or 12pt
59 \documentclass[titlepage,a4paper]{article} % DSL 24 May 1995
60 \usepackage{latexsym}
61 % If you are concerned about
62 % LaTeX Warning: \oval, \circle, or \line size unavailable on input line
63 % warnings, uncomment one of the following lines. You'll need to create
64 % tutorial.ps then.
65 %\usepackage{eepic}
66 %\usepackage{pspicture}
67 \fi
68
69 % Other packages
70 \usepackage{url}
71
72 % Only needed for epslatex driver
73 \usepackage{graphicx}
74 \usepackage{color}
75
76 % Margins
77 \sloppy
78 \setlength{\textwidth}{6.5in}
79 \setlength{\textheight}{9in}
80 \setlength{\topmargin}{-0.5in}
81 \setlength{\oddsidemargin}{0pt}
82 \setlength{\evensidemargin}{0pt}
83
84 % see above
85 \newlength{\fullboxwidth}
86 \setlength{\fullboxwidth}{\textwidth}
87 \addtolength{\fullboxwidth}{-0.1in}
88