%%% XeLaTeX definitions for Shupashkar workshop
\ProvidesPackage{shupashkar}

\setbeamercolor{frametitle}{fg=lightred,bg=darkred}
\setbeamercolor{title}{fg=lightred,bg=darkred}

\usepackage[russian,english]{babel}

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{alltt}

\defaultfontfeatures{Mapping=tex-text} %PunctuationSpace=3,Scale=MatchLowercase,,Numbers=Lining}
\setmainfont[]{Nimbus Sans L}
%\setseriffont[]{Bitstream Vera Serif}
\setsansfont[]{Nimbus Sans L}
\setmonofont[]{FreeMono}
\newfontfamily{\smallermono}[Scale=0.8]{FreeMono}
%\setmonofont[]{Liberation Mono}
%\setbeamerfont{Bitstream Vera Sans}
%\setromanfont[Scale=1.6]{Bitstream Vera Sans}
%\setmonofont[]{}

%%%% To use PSTricks with xelatex, uncomment the following
%% \usepackage[xetex]{pstricks}


\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
%\usepackage[small,bf]{caption}
%\usepackage{tabularx}
\usepackage{tikz}
\usepackage{url}
\usepackage{gb4e}
\usepackage{linguex}
\usepackage{cgloss4e}
\usepackage{multirow}
\usepackage{ragged2e} 
\usepackage{wasysym}


\usetheme{Warsaw}

% Chuvash colours are 203,0,0 and 255,254,0
\definecolor{darkred}{RGB}{153,0,0}
\definecolor{lightred}{RGB}{226,200,200}
\definecolor{yellow}{RGB}{226,226,50}


\definecolor{ranis}{RGB}{ 128,128,128}

%\newcommand\cyrtext[1]{{\fontencoding{T2A}\selectfont #1}}
%\newcommand{\cyrtext}[1]{{\fontspec[Scale=MatchLowercase]{DejaVu Sans}#1}}
\newfontfamily\cyrtext[Scale=MatchLowercase]{Nimbus Sans L}
%\newcommand{\cyrtext}[1]{#1}
%\newcommand\grktext[1]{{\fontencoding{LGR}\fontfamily{pmt}\selectfont #1}}
\newfontfamily\grktext[]{DejaVu Sans}



\useoutertheme[subsection=false]{smoothbars}

%\usecolortheme{seahorse} %beetle, albatross, fly, default light, seahorse, crane, dove
\usecolortheme[named=darkred]{structure}

\setbeamertemplate{footline}[text line]{} % makes the footer EMPTY
\setbeamertemplate{headline}[text line]{} % header empty

\setbeamersize{text margin left=0.5cm}
\setbeamertemplate{navigation symbols}{}



\pgfdeclareimage[height=1.6cm]{logo}{../logo/logo.pdf}

\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}

\newcommand{\MyLogoCentred}{
\begin{textblock}{14}(57.2,10.5)
  \pgfuseimage{logo}
\end{textblock}
}

\newcommand{\MyLogoBottomRight}{
\begin{textblock}{14}(112.2,80.0)
  \pgfuseimage{logo}
\end{textblock}
}

\newcommand{\MyLogo}{
\begin{textblock}{14}(112.2,0.5)
  \pgfuseimage{logo}
\end{textblock}
}

\newcommand{\MyLogoBottomCentred}{
\begin{textblock}{14}(53.5,75)
  \pgfuseimage{logo}
\end{textblock}
}


\newenvironment{changemargin}[2]{%
  \begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\rightmargin}{#2}%
    \setlength{\listparindent}{\parindent}%
    \setlength{\itemindent}{\parindent}%
    \setlength{\parsep}{\parskip}%
  }%
  \item[]}{\end{list}}

