Debian Codegraph @

contrib/mgp-el/mgp.sty

raw
1 %%% mgp.sty --- style file for a LaTeX file created by mgp.el
2 %%% Copyright (C) 1999 Electrotechnical Lab., JAPAN
3
4 %% Author: K.Handa <[email protected]>
5 %% Created: 1999/04/28
6
7 %% This file is not part of GNU Emacs, but the same permissions apply.
8 %%
9 %% GNU Emacs is free software; you can redistribute it and/or modify
10 %% it under the terms of the GNU General Public License as published by
11 %% the Free Software Foundation; either version 2, or (at your option)
12 %% any later version.
13 %%
14 %% GNU Emacs is distributed in the hope that it will be useful,
15 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
16 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 %% GNU General Public License for more details.
18 %%
19 %% You should have received a copy of the GNU General Public License
20 %% along with GNU Emacs; see the file COPYING. If not, write to the
21 %% Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 %% Boston, MA 02111-1307, USA.
23
24 %% Disable special handling of `@'.
25 \makeatletter
26 %% Copied from slides.cls and modified slightly.
27 \def\rmdefault{lcmss} % no roman
28 \def\sfdefault{lcmss}
29 \def\ttdefault{lcmtt}
30 \def\itdefault{sl}
31 \def\sldefault{sl}
32 \def\bfdefault{bx}
33 \def\ifourteenpt{13.82}
34 \def\iseventeenpt{16.59}
35 \def\itwentypt{19.907}
36 \def\itwentyfourpt{23.89}
37 \def\itwentyninept{28.66}
38 \def\ithirtyfourpt{34.4}
39 \def\ifortyonept{41.28}
40 \def\@setfontsize@parms#1{%
41 \lineskip #1\relax%
42 \parskip #1\relax%
43 \baselineskip\baselinestretch\baselineskip%
44 \normalbaselineskip\baselineskip}
45 \def\normalsize{%
46 \@setfontsize\normalsize\itwentypt{22\p@}%
47 \@setfontsize@parms{\z@}}
48 \def\small{\@setfontsize\small\iseventeenpt{19\p@ plus3\p@}%
49 \@setfontsize@parms{2\p@}}
50 \let\footnotesize=\small
51 \let\scriptsize=\small
52 \def\tiny{\@setfontsize\tiny\ifourteenpt{16\p@ plus2\p@}%
53 \@setfontsize@parms{2pt}}
54 \def\large{\@setfontsize\large\itwentyfourpt{26\p@ plus8\p@}%
55 \@setfontsize@parms{2\p@}}
56 \def\Large{\@setfontsize\Large\itwentyninept{31\p@ plus10\p@}%
57 \@setfontsize@parms{2\p@}}
58 \def\LARGE{\@setfontsize\LARGE\ithirtyfourpt{36\p@ plus10\p@}%
59 \@setfontsize@parms{2\p@}}
60 \def\huge{\@setfontsize\huge\ifortyonept{43\p@ plus10\p@}%
61 \@setfontsize@parms{2\p@}}
62 \let\Huge\huge
63 %% Put 1cm margin at top and bottom.
64 \setlength\topmargin{-1in}
65 \advance\topmargin by1cm
66 \textheight\paperheight\advance\textheight by-2cm
67 %% Put 1cm margin at left and right
68 \setlength\oddsidemargin{-1in}
69 \advance\oddsidemargin by1cm
70 \textwidth\paperwidth\advance\textwidth by-2cm
71 %% No surplus spaces.
72 \setlength\headheight{0pt}
73 \setlength\headsep {0pt}
74 \setlength\topskip {0pt}
75 \setlength\footskip {0pt}
76 \setlength\parindent {0pt}
77 \pagestretch20mm
78 \pagestyle{empty}
79 %% Special command for line breaking.
80 \def\nl{\hskip0pt minus10mm\nopagebreak[4]\\}
81 \newdimen\mgpdimenx
82 \newdimen\mgpdimeny
83 \newbox\mgpbox
84 %% Hanging indent
85 \def\mgpi#1#2{\setbox\mgpbox=\hbox{#2\hskip.5mm}%
86 \mgpdimenx#1em\divide\mgpdimenx by2\advance\mgpdimenx by\wd\mgpbox%
87 \parindent\mgpdimenx\hangindent\mgpdimenx\indent\llap{\box\mgpbox}\ignorespaces}
88 %% Horizontal skip
89 \def\mgps#1{\mgpdimenx#1em\divide\mgpdimenx by2\hskip\mgpdimenx}
90 %% Draw horizontal bar.
91 \def\mgpb#1#2#3{%
92 \mgpdimeny\textheight\divide\mgpdimeny by1000#1\multiply\mgpdimeny by#1%
93 \mgpdimenx\textwidth\divide\mgpdimenx by100\multiply\mgpdimenx by#2%
94 \makebox[\mgpdimenx]{}%
95 \mgpdimenx\textwidth\divide\mgpdimenx by100\multiply\mgpdimenx by#3%
96 \rule{\mgpdimenx}{\mgpdimeny}\\\vskip-10pt minus10pt}
97 %% Enable special handling of `@'.
98 \makeatother
99 %% Some other packages
100 \usepackage{latexsym}
101 \usepackage{graphics}