%------------------------------------------------------------------------------
%$Author: saulius $
%$Date: 2012-08-04 14:59:09 +0300 (Sat, 04 Aug 2012) $ 
%$Revision: 494 $
%$URL: svn+ssh://saulius-grazulis.lt/home/saulius/svn-repositories/seminarai/Bergen-2012/texinputs/commands.tex $
%------------------------------------------------------------------------------

\newcommand{\progname}[1]{\texttt{#1}}
\newcommand{\filename}[1]{\texttt{#1}}

\newcommand{\myhref}[2]{\href{#1}{\textcolor{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}
}

\newcommand{\dbcolumn}[1]{\Green{\texttt{#1}}}

% An environment to write an extended plan:

\definecolor{ForestGreen}{rgb}{0.13, 0.55, 0.13}

% How to set Beamer colors:
% http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf
% https://tex.stackexchange.com/questions/65702/beamer-change-color-of-items

% To change the color of the text in the itemize body, the command:
%     \setbeamercolor{itemize/enumerate body}{...}
% is needed (2020-07-26 S.G.).

\newenvironment{plan}{
  \itshape
  \color{ForestGreen}
  \setbeamercolor{normal text}{fg=ForestGreen}
  \setbeamercolor{itemize/enumerate body}{fg=ForestGreen}
  \setbeamercolor{item}{fg=ForestGreen}
  \addtolength{\leftskip}{2cm}
}

% File must have at least one empty line after the \newenvironment
% definition to compile correctly...
