summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xepersian/beamerthemexepersian-JLTree.sty
blob: 73af315036cc501c1a2f90f4fe5b2af1d76b5343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
%% This is beamerthemexepersian-JLTree.sty (Modified version of beamerthemeJLTree.sty)
%%
%% Copyright 2009 by Vafa Khalighi
%%
%%%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%%%% this is versin 1.1 2006/11/18
%%%%
%% Copyright Jerome LELONG <jerome.lelong@gmail.com> 2006
%% This program can be redistributed and/or modified under the terms
%% of the GNU Public License, version 2 or later.
\ProvidesPackage{beamerthemexepersian-JLTree}

\newif\ifbeamer@tree@showhooks
\beamer@tree@showhookstrue

\DeclareOptionBeamer{hooks}[true]{\csname beamer@tree@showhooks#1\endcsname}

\ProcessOptionsBeamer
\mode
<presentation>

\setbeamertemplate{navigation symbols}{}
\usecolortheme{rose} 
\useinnertheme[shadow=true]{rounded}% les block


\defbeamertemplate*{footline}{xepersian-JLTree theme}
{
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
  \end{beamercolorbox}
  \hbox{%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{date in head/foot}%
      \usebeamerfont{date in head/foot}
      \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}%
      \usebeamerfont{title in head/foot}\beginR\hspace*{2ex}\insertauthor \hspace*{1ex} (\insertshortinstitute) \hspace*{2ex} \insertdate\endR
    \end{beamercolorbox}}%
}


\defbeamertemplate*{sidebar right}{xepersian-JLTree theme}{}

\usesectionheadtemplate
{\hfil\insertsectionhead}
{\hfill\color{fg!50!bg}\insertsectionhead}


\usesubsectionheadtemplate
{\hfil\insertsubsectionhead}
{\hfill\color{fg!50!bg}\insertsubsectionhead}



\defbeamertemplate*{headline}{xepersian-JLTree theme}
{%
  \leavevmode%
  \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
  \end{beamercolorbox}
  \@tempdimb=3.625ex% 2.4375ex%
  \multiply\@tempdimb by\beamer@sectionmax%
%%  \advance\@tempdimb by 1.125ex%
  \advance\@tempdimb by -1.125ex%
  \ifdim\@tempdimb<10.9ex% 3*(2.5+1.125)
     \@tempdimb=10.9ex%
  \fi
  \begin{beamercolorbox}[wd=.45\paperwidth, ht=\@tempdimb]{left block}%
    \usebeamerfont{section in head/foot}%
    \vbox to\@tempdimb{\vfill\insertsectionnavigation{.45\paperwidth}\vfill}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=1.125ex,ht=\@tempdimb,dp=1.125ex]{middle separation line head}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.44\paperwidth]{middle block}%
    \vbox to\@tempdimb{\vfill%
    \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
      \usebeamerfont{title in head/foot}\insertshorttitle
    \end{beamercolorbox}
    \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
      \usebeamerfont{section in head/foot}%
      \ifbeamer@tree@showhooks
      \setbox\beamer@tempbox=\hbox{\insertsectionhead}%
      \ifdim\wd\beamer@tempbox>1pt%
      \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
      \hskip1pt%
      \fi%
      \else%
      \hskip6pt%
      \fi%
      \insertsectionhead
    \end{beamercolorbox}
    \begin{beamercolorbox}[wd=.44\paperwidth,ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
      \usebeamerfont{subsection in head/foot}%
      \ifbeamer@tree@showhooks
      \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
      \ifdim\wd\beamer@tempbox>1pt%
      \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
      \hskip1pt%
      \fi%
      \else%
      \hskip12pt%
      \fi%
      \insertsubsectionhead
    \end{beamercolorbox}%
    \vfill}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.1\paperwidth,ht=\@tempdimb,right]{right block}%
    \vbox to\@tempdimb{\vfill\insertlogo\vfill}
  \end{beamercolorbox}
  \vfill
  \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\setbeamercolor{separation line}{use=structure,bg=structure.fg!50!bg}


\mode
<all>