Debian Codegraph @

lib/mlrisc-lib/MLRISC/Doc/latex/mltex.sty

raw
1 %
2 % This is derived from alltt.sty
3 %
4 \NeedsTeXFormat{LaTeX2e}
5 \ProvidesPackage{mltex}[2000/2/12 defines mltex environment]
6
7 \usepackage{latexsym}
8 %\usepackage{psfig}
9 \usepackage{fancyheadings}
10 \usepackage{sml}
11 \usepackage{color}
12 \usepackage{verbatim}
13
14
15 % Sectioning
16
17 \newcommand{\Chapter}[1]{\chapter{#1}}
18 \newcommand{\Section}[1]{\section{#1}}
19 \newcommand{\Subsection}[1]{\subsection{#1}}
20 \newcommand{\Subsubsection}[1]{\subsubsection{#1}}
21 \newcommand{\Paragraph}[1]{\paragraph{#1}}
22 \newcommand{\majorsection}[1]{}
23
24 % Frames
25 \newsavebox{\savepar}
26 \newenvironment{boxit}{\begin{lrbox}{\savepar}
27 \begin{minipage}[b]{\columnwidth}}
28 {\end{minipage}\end{lrbox}\begin{center}\framebox[\columnwidth]{\usebox{\savepar}}\end{center}}
29 \newenvironment{Boxit}{\begin{tabular}{|c|}\hline}{\\\hline\end{tabular}}
30
31
32 % Table
33 \newenvironment{Table}[2]{\begin{tabular}{#1}}{\end{tabular}}
34
35 % Images and Figures
36 \newcommand{\image}[3]{}
37 %\newcommand{\cpsfig}[1]{\centerline{\psfig{#1}}}
38
39 % Formatting
40 \newenvironment{Bold}{\begingroup\bf}{\endgroup}
41 \newenvironment{Italics}{\begingroup\it}{\endgroup}
42 \newenvironment{Emph}{\begingroup\em}{\endgroup}
43
44 \newcommand{\italics}[1]{{\it #1}}
45 \newcommand{\bold}[1]{{\bf #1}}
46 %\newcommand{\emph}[1]{{\em #1}}
47
48 % New definitions
49 \newcommand{\newdef}[1]{{\em #1}}
50 \newcommand{\newtype}[1]{{\tt #1}}
51
52 % Enviroments
53 \newenvironment{SML}{\begin{smldisplay}}{\end{smldisplay}}
54 \newenvironment{methods}{\begin{center}\begin{tabular}{@{\tt}ll}}%
55 {\end{tabular}\end{center}}
56 \newenvironment{address}{}{}
57
58 % HTML
59 \newcommand{\href}[2]{#2\footnote{url: \tt #1}}
60 \newcommand{\externhref}[2]{#2\footnote{url: \tt #1}}
61 \newcommand{\mlrischref}[2]{\sml{#2}\footnote{{\bf file:} {\tt #1}}}
62
63 \newcommand{\br}[1]{}
64 \newcommand{\hr}{\rule{1em}{\textwidth}}
65
66 % Color
67 \renewenvironment{color}[1]{}{}
68
69 % Misc
70 \newcommand{\MLRISC}{MLRISC}
71 \newcommand{\MLTeX}{\mbox{$\mbox{MLT}_{\mbox{E}}\mbox{X}$}}
72
73 \endinput