%------------------------------------------------------------------------------
%$Author$
%$Date$ 
%$Revision$
%$URL$
%------------------------------------------------------------------------------

\newcommand{\entity}[1]{\textit{#1}}
\newcommand{\filename}[1]{\texttt{#1}}
\newcommand{\cmd}[1]{\texttt{#1}}
\newcommand{\prompt}[1]{\cmd{\Gray{#1}}}
\newcommand{\shprompt}{\prompt{sh>}}
\newcommand{\command}[2]{\cmd{\prompt{#1} #2}}
\newcommand{\shcommand}[1]{\cmd{\shprompt{} #1}}
\newcommand{\cmdcolor}[1]{\Red{#1}}
\newcommand{\argcolor}[1]{\Green{#1}}
\newcommand{\optcolor}[1]{\Blue{#1}}
\newcommand{\outcolor}[1]{\Cyan{#1}}
\newcommand{\inpcolor}[1]{\Magenta{#1}}

\newcommand{\myhref}[2]{\href{#1}{\Blue{#2}}}
\newcommand{\mywebref}[1]{\myhref{#1}{#1}}
\newcommand{\quoteauthor}[1]{\rightline{\em #1}}
\newcommand{\websource}[2]{
    {\scriptsize
    \setlength{\baselineskip}{1ex}
    \rightline{\myhref{#1}{#1}}
    \rightline{#2}}
}
\newcommand{\papersource}[1]{
    {\scriptsize
    \setlength{\baselineskip}{3ex}
    \rightline{#1}}
}

\newcommand{\showfile}[2][showspaces=false]{
    \filename{#2}:
    \lstinputlisting[frame=trBL,#1]{#2}
}
