%%
%%
%% $Id$
%%
%##noBuild

\expandafter\ifx\csname llncsStyle\endcsname\relax %
\let\llncsStyle\endinput %
\else
\llncsStyle
\fi

\lstdefinelanguage{JavaScript}{
   sensitive,%
   morecomment=[s]{/*}{*/},%
   morecomment=[l]//,%
   morestring=[b]",%
   morestring=[b]',%
   procnamekeys={function},%
   morekeywords={attributes, class, classend, do, empty, endif,%
     endwhile, fail, function, functionend, if, implements, in, inherit,%
     inout, not, of, operations, out, return, set, then, types, while, use,
     break,const,continue,delete,do,while,export,for,in,function,
     if,else,import,in,instanceOf,label,let,new,return,switch,this,
     throw,try,catch,typeof,var,void,with,yield},%
}[keywords,comments,strings]

%vvvvvvvvvv For the Listings Package vvvvvvvvvv%
\lstset{language=JavaScript,%
  basicstyle=\ttfamily\small,
  keywordstyle=\bfseries,
  stringstyle=\sffamily,
  commentstyle=\slshape,
  captionpos=b,
  showstringspaces=false,
  tabsize=4,
%  resetmargins=true,
%  frame=lines,
  upquote=true,
%  basewidth={0.57em,0.45em},
  extendedchars=true,
  breaklines=true,
%  aboveskip=\bigskipamount,
%  lineskip=.2ex,
%  escapechar=\,
}

% to indicate removed code
\newcommand{\coderem}{\sffamily\tiny[\ldots]}


%ednote
\let\SAVEDednoteshape\ednoteshape
\def\ednoteshape{\SAVEDednoteshape\color{red}}

\renewcommand*{\acsfont}[1]{{{\mdseries\scshape \MakeTextLowercase{#1}}}}

\makeatletter
\setlength\@fptop{0pt}
%\setlength\@fpsep{4pt}
\setlength\@fpbot{0pt}
\makeatother

\floatplacement{figure}{htbp}

\let\subsectionautorefname\sectionautorefname
\def\figureautorefname{figure}
\def\listingautorefname{listing}

\newcommand{\asterism}{\smash{% 
    \raisebox{-.5ex}{% 
      \setlength{\tabcolsep}{.2pt}% 
      \begin{tabular}{@{}cc@{}}% 
        \multicolumn2c*\\[-1.8ex]*&*% 
      \end{tabular}}}}
\newcommand{\ParSep}{\smallskip\noindent\centerline{\large\asterism}\smallskip}

\newcommand{\eg}{\mbox{e.\,g.}\xspace}
\newcommand{\Eg}{\mbox{E.\,g.}\xspace}
\newcommand{\Ie}{\mbox{I.\,e.}\xspace}
\newcommand{\ie}{\mbox{i.\,e.}\xspace}
\newcommand{\Th}{\textsuperscript{th}\xspace}

%%% Local Variables: 
%%% mode: latex
%%% coding: utf-8
%%% TeX-master: "../HirschfeldLincke_2010_WebbasedDevelopmentEnvironments"
%%% End: 
