diff options
author | Karl Berry <karl@freefriends.org> | 2018-02-14 00:08:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-02-14 00:08:02 +0000 |
commit | f3053926fd6a7a8d04cb2619f23990a06bbd6efa (patch) | |
tree | 4108f57217b9259d5d86f036254fdfce2e9fb65c /Master/texmf-dist/tex/xelatex/sexam | |
parent | 1bf53a1df338cff0bfd274cd81f5fe2c4b64ad6e (diff) |
sexam (13feb18)
git-svn-id: svn://tug.org/texlive/trunk@46628 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/sexam')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/sexam/bacex.sty | 106 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/sexam/sexam.sty | 79 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/sexam/wexam.sty | 100 |
3 files changed, 285 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/sexam/bacex.sty b/Master/texmf-dist/tex/xelatex/sexam/bacex.sty new file mode 100644 index 00000000000..630d2678ec7 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/sexam/bacex.sty @@ -0,0 +1,106 @@ +\usepackage{amsmath,amsfonts,amssymb,mathrsfs} +\usepackage{fouriernc} +\usepackage{fmtcount} +\usepackage{etoolbox} +\usepackage[margin=1.6cm]{geometry} +\usepackage{setspace} +\usepackage{listings} +\usepackage{ean13isbn} +\usepackage{tikz} +\usepackage{fancybox} +\usepackage[tikz]{bclogo} +\usetikzlibrary{patterns,snakes} + \usepackage{multicol} +\usetikzlibrary{shapes,calc,snakes,arrows,shadows} +\usetikzlibrary{shadows.blur} +\usetikzlibrary{shapes.symbols} +\definecolor{blue}{rgb}{0.1,0.5,0.4} +\usepackage{moreenum} +\usepackage{yagusylo} +\usepackage{wasysym} +\usepackage{pifont} +\usepackage{polyglossia} +%\usepackage{mathpple} +\usepackage{ulem} +%=============================================================== +\setdefaultlanguage[calendar=gregorian,,locale=algeria]{arabic} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Simplified Arabic} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.3]{Simplified Arabic} +\newfontfamily\arabicfonttt[Script=Arabic,Scale=0.8]{Simplified Arabic} +%----------------------------------------------------------------------------- +%--------------------------------------------------------------------------------------- +\renewcommand{\thequestion}{\words{question}} +\newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname} +\def\xwords#1{\ifcase#1\or +الأول\or +الثاني\or +الثالث\or +الرابع\or +الخامس\or +السادس\or +السابع\or +الثامن\or +التاسع\or +العاشر\or +\else +I need more words\fi} +%*** +%------------------------------------------------------------------------------ +\singlespacing +\parindent 0ex +%\baselineskip = 1.2cm +% +\renewcommand{\baselinestretch}{1.3} +%------------------------------ +\pointsinmargin +%\pointsinrightmargin +\marginpointname{ن} +\pointformat{\fbox{\bfseries\boldmath\themarginpoints}} +\setlength{\marginpointssep}{1.8cm} +\setlength{\rightpointsmargin}{4.5cm} +\renewcommand{\thepartno}{\arabic{partno}} +\renewcommand{\thesubpart}{\Alph{subpart}} +\renewcommand\subpartlabel{\thesubpart)} +\renewcommand\partlabel{\thepartno)} +\renewcommand{\partshook}{\setlength{\topsep}{-0.2in}} +\setlength{\headsep}{8pt} +\pointpoints{نقطة}{نقاط} +\qformat{\textbf{\uline{\sffamily{التمرين \thequestion :}}}\quad \bf{(\thepoints)}\hfill } +%--------------------------------------- +\runningheadrule +\firstpagefootrule +\firstpageheadrule +%\footer{}{Page \thepage\ of \numpages}{} +\footer{}{\bf صفحة \thepage\ من \numpages} +\runningheadrule +\runningfootrule +%\cfoot{} +\lfoot{} +\rfoot{} +%------------------------- +\def\barcode#1#2#3#4#5#6#7{\begingroup% + \dimen0=0.1em + \def\stack##1##2{\oalign{##1\cr\hidewidth##2\hidewidth}}% + \def\0##1{\kern##1\dimen0}% + \def\1##1{\vrule height5ex width##1\dimen0}% + \def\L##1{\ifcase##1\bc3211##1\or\bc2221##1\or\bc2122##1\or\bc1411##1% + \or\bc1132##1\or\bc1231##1\or\bc1114##1\or\bc1312##1\or\bc1213##1% + \or\bc3112##1\fi}% + \def\R##1{\bgroup\let\next\1\let\1\0\let\0\next\L##1\egroup}% + \def\G##1{\bgroup\let\bc\bcg\L##1\egroup}% reverse + \def\bc##1##2##3##4##5{\stack{\0##1\1##2\0##3\1##4}##5}% + \def\bcg##1##2##3##4##5{\stack{\0##4\1##3\0##2\1##1}##5}% + \def\bcR##1##2##3##4##5##6{\R##1\R##2\R##3\R##4\R##5\R##6\11\01\11\09% + \endgroup}% + \stack{\09}#1\11\01\11\L#2% + \ifcase#1\L#3\L#4\L#5\L#6\L#7\or\L#3\G#4\L#5\G#6\G#7% + \or\L#3\G#4\G#5\L#6\G#7\or\L#3\G#4\G#5\G#6\L#7% + \or\G#3\L#4\L#5\G#6\G#7\or\G#3\G#4\L#5\L#6\G#7% + \or\G#3\G#4\G#5\L#6\L#7\or\G#3\L#4\G#5\L#6\G#7% + \or\G#3\L#4\G#5\G#6\L#7\or\G#3\G#4\L#5\G#6\L#7% + \fi\01\11\01\11\01\bcR} + +\chead{\LR{\tiny \barcode 2046260812017}} +\newcommand{ \one }{\centering{\uline{\textbf{الموضوع الأوّل :}}}} +\newcommand{ \two }{\centering{\uline{\textbf{الموضوع الثّاني :}}}} +\newcommand{ \choi }{\centering{\bf على المترشح أن يختار أحد الموضوعين التاليين :}} diff --git a/Master/texmf-dist/tex/xelatex/sexam/sexam.sty b/Master/texmf-dist/tex/xelatex/sexam/sexam.sty new file mode 100644 index 00000000000..13d42020334 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/sexam/sexam.sty @@ -0,0 +1,79 @@ +\usepackage{amsmath,amsfonts,amssymb,mathtools} +\usepackage{fmtcount} +\usepackage{etoolbox} +\usepackage[margin=1.8cm]{geometry} +\usepackage{setspace} +\usepackage{listings} +\usepackage{tikz} +\usepackage{fancybox} +\usepackage[tikz]{bclogo} +\usetikzlibrary{patterns,snakes} + \usepackage{multicol} +\usetikzlibrary{shapes,calc,snakes,arrows,shadows} +\usetikzlibrary{shadows.blur} +\usetikzlibrary{shapes.symbols} +\definecolor{blue}{rgb}{0.1,0.5,0.4} +\usepackage{moreenum} +\usepackage{yagusylo} +\usepackage{wasysym} +\usepackage{pifont} +\usepackage{polyglossia} +\usepackage{mathpple} +\usepackage{ulem} +%=============================================================== +\setdefaultlanguage[calendar=gregorian,,locale=algeria]{arabic} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.2]{Aljazeera} +\newfontfamily\arabicfonttt[Script=Arabic,Scale=1.1]{Simplified Arabic} +%----------------------------------------------------------------------------- +%--------------------------------------------------------------------------------------- +\renewcommand{\thequestion}{\words{question}} +\newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname} +\def\xwords#1{\ifcase#1\or +الأول\or +الثاني\or +الثالث\or +الرابع\or +الخامس\or +السادس\or +السابع\or +الثامن\or +التاسع\or +العاشر\or +\else +I need more words\fi} +%*** +%------------------------------------------------------------------------------ +\singlespacing +\parindent 0ex +%------------------------------ +\pointsinmargin +%\pointsinrightmargin +\marginpointname{ن} +\pointformat{\fbox{\bfseries\boldmath\themarginpoints}} +\setlength{\marginpointssep}{1.8cm} +\setlength{\rightpointsmargin}{4.5cm} +\renewcommand{\thepartno}{\arabic{partno}} +\renewcommand{\thesubpart}{\Alph{subpart}} +\renewcommand\subpartlabel{\thesubpart)} +\renewcommand\partlabel{\thepartno)} +\renewcommand{\partshook}{\setlength{\topsep}{-0.2in}} +\setlength{\headsep}{1pt} +\baselineskip = 0.9cm +\pointpoints{نقطة}{نقاط} +\qformat{\textbf{\uline{\sffamily{ التـمرين \thequestion :}}}\quad (\thepoints)\hfill} +%--------------------------------------- +\runningheadrule +\firstpagefootrule +%\footer{}{Page \thepage\ of \numpages}{} +\footer{}{\sffamily صفحه \thepage\ من \numpages} +\runningheadrule +\runningfootrule +%\cfoot{} +\lfoot{ +{\iflastpage{\sffamily انتهى الامتحان}{\sffamily اقلب الورقة% +}}} + +\rfoot{ +{\iflastpage{\sffamily بالتوفــيق}{\sffamily ركز جيدا% +}}}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/xelatex/sexam/wexam.sty b/Master/texmf-dist/tex/xelatex/sexam/wexam.sty new file mode 100644 index 00000000000..b9fe2a4fa0b --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/sexam/wexam.sty @@ -0,0 +1,100 @@ +\usepackage{amsmath,amsfonts,amssymb,mathtools} +\usepackage{fmtcount} +\usepackage{etoolbox} +\usepackage[margin=1.8cm]{geometry} +\usepackage{setspace} +\usepackage{listings} +\usepackage{tikz} +\usepackage{fancybox} +\usepackage[tikz]{bclogo} +\usepackage[color=black,opacity=1,angle=0,scale=1]{background} +\usetikzlibrary{patterns,snakes} + \usepackage{multicol} +\usetikzlibrary{shapes,calc,snakes,arrows,shadows} +\usetikzlibrary{shadows.blur} +\usetikzlibrary{shapes.symbols} +\definecolor{blue}{rgb}{0.1,0.5,0.4} +\usepackage{moreenum} +\usepackage{yagusylo} +\usepackage{wasysym} +\usepackage{pifont} +\usepackage{polyglossia} +%\usepackage{eulervm} +\usepackage{mathpple} +\usepackage{ulem} +%=============================================================== +\setdefaultlanguage[calendar=gregorian,,locale=algeria]{arabic} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.2]{Aljazeera} +\newfontfamily\arabicfonttt[Script=Arabic,Scale=1.1]{Simplified Arabic} +%----------------------------------------------------------------------------- +%----------------------- +\backgroundsetup{ +contents={% + \begin{tikzpicture} + \draw[fill=white,,shade, + top color=white, + bottom color=white, + rounded corners=3pt, + blur shadow={shadow blur steps=5},double,thick] ($(current page.south west)+(1cm,1cm)$) rectangle ($(current page.north east)+(-1cm,-1cm)$); + \node[fill=white,,shade, + top color=white!40, + bottom color=white!5, + rounded corners=1pt, rotate=0, anchor=west, font=\small\scshape] at ($(current page.south)+(-0.9cm,0.4cm)$) {\shadowbox{ +\RL{\sffamily صفحة \thepage\ من \numpages}}}; + \node[fill=white,,shade, + top color=white!40, + bottom color=white!5, + rounded corners=1pt, rotate=0, anchor=west, font=\scshape] at ($(current page.south west)+(1.2cm,0.4cm)$) { + \shadowbox{ \RL{ + {\iflastpage{\sffamily انتهى الامتحان}{\sffamily +اقلب الورقة +}}}}}; + \node[fill=white,,shade, + top color=white!40, + bottom color=white!5, + rounded corners=1pt, rotate=0, anchor=west, font=\small\scshape] at ($(current page.south west)+(18.3cm,0.4cm)$) { + \shadowbox{ \RL{\sffamily\iflastpage{بالتوفيق}{ركز جيدا}} + }}; + \end{tikzpicture} +}} +% + +%--------------------------------------------------------------------------------------- +\renewcommand{\thequestion}{\words{question}} +\newcommand\words[1]{\expandafter\xwords\csname c@#1\endcsname} +\def\xwords#1{\ifcase#1\or +الأول\or +الثاني\or +الثالث\or +الرابع\or +الخامس\or +السادس\or +السابع\or +الثامن\or +التاسع\or +العاشر\or +\else +I need more words\fi} +%*** +%------------------------------------------------------------------------------ +\singlespacing +\parindent 0ex +%------------------------------ +\pointsinmargin +%\pointsinrightmargin +\marginpointname{ن} +\pointformat{\fbox{\bfseries\boldmath\themarginpoints}} +\setlength{\marginpointssep}{1.8cm} +\setlength{\rightpointsmargin}{4.5cm} +\setlength{\headsep}{1pt} +\renewcommand{\thepartno}{\arabic{partno}} +\renewcommand{\thesubpart}{\Alph{subpart}} +\renewcommand\subpartlabel{\thesubpart)} +\renewcommand\partlabel{\thepartno)} +\renewcommand{\partshook}{\setlength{\topsep}{-0.2in}} + +\baselineskip = 0.9cm +\pointpoints{نقطة}{نقاط} +\qformat{\textbf{\uline{\sffamily{ التـمرين \thequestion :}}}\quad (\thepoints)\hfill} +\pagestyle{empty} |