# Style sheet for MATLAB 4.x (matlab4.ssh)
# Copyright (c) 1998-1999 Akim Demaille, Miguel Santana, Marco De la Cruz
# $Id: c.ssh 1.2 Mon, 14 Sep 1998 17:18:49 +0200 demaille $
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

style "MATLAB 4" is

written by "Marco De la Cruz <marco@atmosp.physics.utoronto.ca>"
version is 1.2
requires a2ps version 4.9.9

####################################################################

documentation is
   "Note that comments in the code should have a space after the %."
end documentation

####################################################################

first alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
second alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789"

case sensitive

keywords in Label_strong are
   function
end keywords

keywords in Keyword_strong are
   eval, feval, global, nargchk, break, else, elseif, "end",
   error, for, if, return, while, input, keyboard, menu,
   pause, dbclear, dbcont, dbdown, dbquit, dbstack,
   dbstatus, dbstep, dbstop, dbtype, dbup, mexdebug
end keywords

keywords in Keyword are
   demo, expo, help, info, lasterr, lookfor, path,
   subscribe, type, ver, "version", what, whatsnew, which,
   clear, disp, length, load, pack, save, size, who, whos,
   cd, cedit, delete, diary, dir, getenv, hostid, ls,
   matlabroot, pwd, tempdir, tempname, terminal, unix,
   clc, echo, format, home, more, matlabrc, quit, startup,
   all, any, exist, find, finite, isempty, ishold,
   isieee, isinf, isletter, isnan, isreal, issparse, isstr,
   eye, gallery, linspace, logspace, meshgrid, ones, rand,
   randn, zeros, ans, computer, flops, nargin, nargout,
   realmax, realmin, clock, cputime, date, etime,
   tic, toc, diag, fliplr, flipud, isreal, reshape, rot90,
   tril, triu, compan, hadamard, hankel, hilb, invhilb, magic,
   pascal, rosser, toeplitz, vander, wilkinson, abs, acos,
   acosh, acot, acoth, acsc, acsch, angle, asec, asech, asin,
   asinh, atan, atan2, atanh, ceil, conj, cos, cosh, cot, coth,
   csc, csch, exp, fix, floor, gcd, imag, lcm, log, log10,
   real, rem, round, sec, sech, sign, sin, sinh, sqrt, tan,
   tanh, bessel, besseli, besselj, besselk, bessely, beta,
   betainc, betaln, ellipj, ellipke, erfcx, erfinv, expint,
   gamma, gammainc, gammaln, legendre, log2, pow2, rat, erf,
   erfc, rats, cond, det, norm, null, orth, rcond, rank,
   rref, subspace, trace, chol, inv, lscov, lu, nnls, pinv,
   qr, balance, cdf2rdf, eig, hess, poly, qz, rsf2csf, schur,
   svd, expm, funm, logm, sqrtm, qrdelete, qrinsert, cross,
   dot, cumprod, cumsum, max, mean, median, min, prod, sort,
   std, sum, trapz, del2, diff, gradient, corrcoef, cov,
   conv, conv2, deconv, filter, filter2, abs, angle,
   cplxpair, fft, fft2, fftshift, ifft, ifft2, nextpow2,
   unwrap, polyder, polyeig, polyfit, polyval, polyvalm,
   residue, roots, griddata, interp1, interp2, interpft,
   fmin, fmins, fplot, fzero, ode23, ode45, quad, quad8,
   spdiags, speye, sprandn, sprandsym, find, full, sparse,
   spconvert, issparse, nnz, nonzeros, nzmax, spalloc, spfun,
   spones, gplot, spy, colperm, dmperm, randperm, colmmd,
   symmmd, symrcm, condest, normest, sprank, entree,
   spaugment, spparms, symbfact, fill, loglog, plot,
   semilogx, semilogy, bar, comet, hist, polar, compass,
   errorbar, feather, fplot, rose, stairs, stem, grid,
   gtext, legend, text, title, xlabel, ylabel, cart2pol,
   pol2cart, zoom, comet3, fill3, plot3, clabel, contour,
   contour3, contourc, image, imagesc, pcolor, quiver,
   slice, mesh, meshc, meshz, slice, surf, surfc, surfl,
   waterfall, axis, caxis, colormap, hidden, shading,
   view, viewmtx, zlabel, cylinder, sphere, cart2sph,
   sph2cart, capture, clf, close, figure, gcf, graymon,
   newplot, refresh, whitebg, axes, cla, gca, hold,
   ishold, subplot, line, patch, surface, uicontrol,
   uimenu, drawnow, gco, get, reset, rotate, set,
   uigetfile, uiputfile, orient, print, printopt,
   getframe, movie, moviein, ginput, rbbox, bone,
   contrast, cool, copper, flag, gray, hsv, hot, jet,
   pink, prism, white, brighten, colorbar, hsv2rgb,
   rgb2hsv, rgbplot, spinmap, diffuse, specular,
   surfnorm, saxis, sound, auread, auwrite, lin2mu,
   mu2lin, wavread, wavwrite, blanks, deblank,
   findstr, setstr, str2mat, string, strrep, strtok,
   isletter, lower, strcmp, upper, int2str, num2str,
   sprintf, sscanf, str2num, dec2hex, hex2dec, hex2num,
   fclose, fopen, fread, fwrite, fgetl, fgets, fprintf,
   fscanf, feof, ferror, frewind, fseek, ftell,
   csvread, csvwrite, wk1read, wk1write, kron, xor,
   ButtonDownFcn, Clipping, Interruptible, Parent,
   Userdata, Visible, CaptureRect, CurrentFigure,
   Diary, DiaryFile, Echo, Format, FormatSpacing,
   PointerLocation, ScreenDepth, TerminalOneWindow,
   TerminalProtocol, Units, BackingStore, Color,
   Colormap, CurrentAxes, CurrentObject,
   InvertHardcopy, KeyPressFcn, MenuBar,
   MinColormap, Name, NextPlot, NumberTitle,
   PaperUnits, PaperOrientation, PaperPosition,
   PaperType, Pointer, Position, Resize,
   ShareColors, WindowButtonDownFcn,
   WindowButtonMotionFcn, WindowButtonUpFcn,
   AspectRatio, Box, CLim, CLimMode, ColorOrder,
   DrawMode, FontAngle, FontName, FontSize,
   FontWeight, GridLineStyle, LineStyleOrder,
   LineWidth, NextPlot, TickLength, TickDir,
   Title, View, XColor, XDir, Xform, XGrid,
   XLabel, XLim, XLimMode, XScale, XTick,
   XTickLabels, XTickLabelMode, XTickMode,
   YColor, YDir, YGrid, YLabel, YLim,
   YLimMode, YScale, YTick, YTickLabels,
   YTickLabelMode, YTickMode, ZColor, ZDir,
   ZGrid, ZLabel, ZLim, ZLimMode, ZScale,
   ZTick, ZTickLabels, ZTickLabelMode,
   ZTickMode, BackgroundColor, CallBack,
   ForegroundColor, HorizontalAlignment,
   Max, Min, "String", Style, Value,
   Accelerator, Checked, Enable, "Label",
   Separator, EraseMode, LineStyle,
   LineWidth, MarkerSize, Xdata, Ydata, Zdata,
   Rotation, VerticalAlignment, CData,
   EdgeColor, FaceColor, MeshStyle, XData,
   YData, ZData
end keywords

optional operators are
   ~  \not,
   |  \vee,
   &  \wedge,
   ~= \neq,
   <= \leq,
   >= \geq,
   == \equiv,
   xor \oplus
end operators

sequences are
   "% " Comment,
   "disp" Keyword Plain "')",
   "error" Keyword Plain "')",
   "fprintf" Keyword Plain "',"
end sequences

end style
