blob: 97866df4bb30271416dd6b012356f8e989990a0f (
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
|
%% This file is xepersian-presentation.cls
%%
%% 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.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{xepersian-presentation}[2009/01/05 class for plain Persian electronic presentations in XeLaTeX (Author: Vafa Khalighi)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage[foot=10.2pt,head=0pt,paperwidth=128mm,paperheight=96mm,left=5mm,top=5mm,right=7mm,bottom=8mm]{geometry}
\RequirePackage{fancyhdr}
\renewcommand{\headrulewidth}{0mm}
\renewcommand{\maketitle}%
{\ClassError{xepersian-presentation}{Caution: ``maketitle'' command not supported}%
{Please use ``titlepage'' environment instead}%
}
\fancypagestyle{pres}{%
\fancyhf{}%
\fancyfoot[RO,LE]{\footnotesize \thepage}%
}
\pagestyle{pres}
\newcommand{\distance}[1]{\vspace*{\stretch{#1}}}
\newcommand{\abstand}[1]{\vspace*{\stretch{#1}}}
\setlength{\parskip}{0.6ex}
\setlength{\parindent}{0mm}
\newenvironment{plainslide}[1][]%
{{\raggedleft \large\bfseries #1\par}\par\vspace*{\stretch{1}}}%
{\par\vspace*{\stretch{1}}\newpage}
\newenvironment{rawslide}{}{\newpage}%
\def\itemize{%
\ifnum \@itemdepth >\thr@@\@toodeep\else
\advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\expandafter
\list
\csname\@itemitem\endcsname
{\def\makelabel##1{\hss\llap{##1}}}%
\fi
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}%
}%
\let\enditemize =\endlist
\def\enumerate{%
\ifnum \@enumdepth >\thr@@\@toodeep\else
\advance\@enumdepth\@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\expandafter
\list
\csname label\@enumctr\endcsname
{\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
\fi
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}%
}%
\let\endenumerate =\endlist
\renewenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}
\setlength{\itemsep}{0ex}%
\setlength{\parskip}{0.1ex}%
\setlength{\parsep}{0ex}}
{\endlist}
\endinput
|